Definition in file cWebshots.h.
#include <vector>
#include <string>
#include <fstream>
Include dependency graph for cWebshots.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | cWebshots |
namespace | cWebshots::Exceptions |
namespace | std |
Classes | |
class | cWebshots::cWebshotsPicture |
Contains a webshots picture and its meta informations. More... | |
struct | cWebshots::sPhotosTXT |
Contains informations about a picture. More... | |
struct | cWebshots::sAlbumTXT |
Contains informations about a collection. More... | |
class | cWebshots::cWebshotsTXT |
Contains informations about a collection and its pictures, read from photos.txt / album.txt files. More... | |
class | cWebshots::cWebshotsCollection |
Contains a collection of cWebshotsPicture and some informations about the collection. More... | |
struct | cWebshots::sWBC_Header |
WBC header structure. More... | |
struct | cWebshots::sWBC_Index |
WBC index structure. More... | |
struct | cWebshots::sWBC_Unit_Header |
WBC unit header structure. More... | |
struct | cWebshots::sWBZ_Header |
WBZ file header structure. More... | |
struct | cWebshots::sWBZ_Element_Header |
WBZ element header structure. More... | |
class | cWebshots::Exceptions::Exception |
Serves as the base for all exceptions thrown by cWebshots. More... | |
class | cWebshots::Exceptions::FileSystemError |
Exception thrown when an error with a file occurs. More... | |
class | cWebshots::Exceptions::DataError |
Exception thrown when there is a problem with a data in a Webshots file. More... | |
class | cWebshots::Exceptions::UnknownFormat |
Exception thrown when a file format is unknown by cWebshots. More... | |
class | cWebshots::Exceptions::CorruptedData |
Exception thrown when a corrupted data is found in a Webshots file. More... | |
class | cWebshots::Exceptions::OutOfRange |
Exception thrown when a value is out of range. More... | |
Enumerations | |
enum | cWebshots::Webshots_Formats { cWebshots::WB1, cWebshots::WBC, cWebshots::WBZ, cWebshots::JPG, cWebshots::Folder, cWebshots::Unknown } |
Webshots file formats. More... | |
Functions | |
string | cWebshots::GetFileName (string path) |
Extracts the file name from a path. | |
string | cWebshots::GetDirectory (string path) |
Extracts the directory from a path. | |
Webshots_Formats | cWebshots::IdentifyFile (string File) |
Identifies the type of a file. | |
Webshots_Formats | cWebshots::IdentifyFile (ifstream &in_file) |
Identifies the type of a file. | |
void | cWebshots::Tokenize (const string &str, vector< string > &tokens, const string &delimiters=" ") |
Explode a string into a vector of strings, according to a delimiter. | |
string | cWebshots::GetINI (const string &Data, const string &Section, const string &Field) |
Extracts the value of a couple section+field of an INI-like string. | |
string | cWebshots::IntToStr (const int &i) |
Converts an integer into a string. | |
long | cWebshots::StrToLong (const string &s) |
Converts a string into a long integer. | |
Variables | |
const unsigned long | cWebshots::WBC_File_Marker = 0x95FA16AB |
First 4 bytes of a WBC file. | |
const unsigned long | cWebshots::WBC_Unit_Marker = 0xF071CDE2 |
First 4 bytes of a WBC unit. | |
const unsigned long | cWebshots::WBZ_File_Marker = 0x6791AB43 |
First 4 bytes of a WBZ file. | |
const unsigned long | cWebshots::WBZ_Element_Marker = 0x1082CDE1 |
First 4 bytes of a WBZ element. | |
const unsigned long | cWebshots::JFIF_File_Marker = 0xE0FFD8FF |
First 4 bytes of a JPEG JFIF File. | |
const unsigned long | cWebshots::EXIF_File_Marker = 0xE1FFD8FF |
First 4 bytes of a JPEG EXIF File. | |
const unsigned long | cWebshots::WB1_File_Marker = 0x42425757 |
First 4 bytes of a webshots encrypted JPG file ("WWBB"). | |
const unsigned long | cWebshots::TXT_File_Marker = 0x6E756F63 |
First 4 bytes of an album.txt / photos.txt file (="coun"). |