..
Classes | |
class | cWebshotsPicture |
Contains a webshots picture and its meta informations. More... | |
struct | sPhotosTXT |
Contains informations about a picture. More... | |
struct | sAlbumTXT |
Contains informations about a collection. More... | |
class | cWebshotsTXT |
Contains informations about a collection and its pictures, read from photos.txt / album.txt files. More... | |
class | cWebshotsCollection |
Contains a collection of cWebshotsPicture and some informations about the collection. More... | |
struct | sWBC_Header |
WBC header structure. More... | |
struct | sWBC_Index |
WBC index structure. More... | |
struct | sWBC_Unit_Header |
WBC unit header structure. More... | |
struct | sWBZ_Header |
WBZ file header structure. More... | |
struct | sWBZ_Element_Header |
WBZ element header structure. More... | |
Namespaces | |
namespace | Exceptions |
Contains all exceptions thrown by cWebshots. | |
Enumerations | |
enum | Webshots_Formats { WB1, WBC, WBZ, JPG, Folder, Unknown } |
Webshots file formats. More... | |
Functions | |
string | GetFileName (string path) |
Extracts the file name from a path. | |
string | GetDirectory (string path) |
Extracts the directory from a path. | |
Webshots_Formats | IdentifyFile (string File) |
Identifies the type of a file. | |
Webshots_Formats | IdentifyFile (ifstream &in_file) |
Identifies the type of a file. | |
void | Tokenize (const string &str, vector< string > &tokens, const string &delimiters=" ") |
Explode a string into a vector of strings, according to a delimiter. | |
string | GetINI (const string &Data, const string &Section, const string &Field) |
Extracts the value of a couple section+field of an INI-like string. | |
string | IntToStr (const int &i) |
Converts an integer into a string. | |
long | StrToLong (const string &s) |
Converts a string into a long integer. | |
cWebshotsCollection | operator+ (const cWebshotsCollection &col1, const cWebshotsCollection &col2) |
Operator +, to merge two collections together. | |
cWebshotsCollection | operator+ (const cWebshotsPicture &pic, const cWebshotsCollection &col) |
Operator +, to merge a picture (left) and a collection (right). | |
cWebshotsCollection | operator+ (const cWebshotsCollection &col, const cWebshotsPicture &pic) |
Operator +, to merge a collection (left) and a picture (right). | |
cWebshotsCollection | operator+ (const cWebshotsPicture &pic1, const cWebshotsPicture &pic2) |
Operator +, to merge two pictures together. | |
Variables | |
const unsigned long | WBC_File_Marker = 0x95FA16AB |
First 4 bytes of a WBC file. | |
const unsigned long | WBC_Unit_Marker = 0xF071CDE2 |
First 4 bytes of a WBC unit. | |
const unsigned long | WBZ_File_Marker = 0x6791AB43 |
First 4 bytes of a WBZ file. | |
const unsigned long | WBZ_Element_Marker = 0x1082CDE1 |
First 4 bytes of a WBZ element. | |
const unsigned long | JFIF_File_Marker = 0xE0FFD8FF |
First 4 bytes of a JPEG JFIF File. | |
const unsigned long | EXIF_File_Marker = 0xE1FFD8FF |
First 4 bytes of a JPEG EXIF File. | |
const unsigned long | WB1_File_Marker = 0x42425757 |
First 4 bytes of a webshots encrypted JPG file ("WWBB"). | |
const unsigned long | TXT_File_Marker = 0x6E756F63 |
First 4 bytes of an album.txt / photos.txt file (="coun"). |
|
Webshots file formats.
Definition at line 56 of file cWebshots.h. |
|
Extracts the directory from a path. This function assumes that in the path, a directory always ends with a "\"
Definition at line 58 of file cWebshotsMisc.cpp. |
|
Extracts the file name from a path. This function assumes that in the path, a directory always ends with a "\"
Definition at line 44 of file cWebshotsMisc.cpp. |
|
Extracts the value of a couple section+field of an INI-like string.
Definition at line 168 of file cWebshotsMisc.cpp. References Tokenize(). Referenced by cWebshots::cWebshotsCollection::LoadWBZFile(). |
|
Identifies the type of a file.
Definition at line 95 of file cWebshotsMisc.cpp. References EXIF_File_Marker, JFIF_File_Marker, Unknown, WB1, WB1_File_Marker, WBC, WBC_File_Marker, WBZ, and WBZ_File_Marker. |
|
Identifies the type of a file.
Definition at line 70 of file cWebshotsMisc.cpp. Referenced by cWebshots::cWebshotsCollection::LoadFromFile(), and main(). |
|
Converts an integer into a string.
Definition at line 213 of file cWebshotsMisc.cpp. Referenced by cWebshots::cWebshotsCollection::LoadWBZFile(). |
|
Operator +, to merge two pictures together.
Definition at line 913 of file cWebshotsCollection.cpp. |
|
Operator +, to merge a collection (left) and a picture (right).
Definition at line 898 of file cWebshotsCollection.cpp. |
|
Operator +, to merge a picture (left) and a collection (right).
Definition at line 883 of file cWebshotsCollection.cpp. |
|
Operator +, to merge two collections together.
Definition at line 868 of file cWebshotsCollection.cpp. |
|
Converts a string into a long integer.
Definition at line 227 of file cWebshotsMisc.cpp. Referenced by cWebshots::cWebshotsCollection::LoadWBZFile(). |
|
Explode a string into a vector of strings, according to a delimiter.
Definition at line 139 of file cWebshotsMisc.cpp. Referenced by GetINI(). |
|
First 4 bytes of a JPEG EXIF File.
Definition at line 51 of file cWebshots.h. Referenced by IdentifyFile(). |
|
First 4 bytes of a JPEG JFIF File.
Definition at line 50 of file cWebshots.h. Referenced by IdentifyFile(). |
|
First 4 bytes of an album.txt / photos.txt file (="coun").
Definition at line 53 of file cWebshots.h. |
|
First 4 bytes of a webshots encrypted JPG file ("WWBB").
Definition at line 52 of file cWebshots.h. Referenced by IdentifyFile(). |
|
First 4 bytes of a WBC file.
Definition at line 46 of file cWebshots.h. Referenced by IdentifyFile(), cWebshots::cWebshotsCollection::LoadWBCFile(), and cWebshots::cWebshotsCollection::SaveWBCFile(). |
|
First 4 bytes of a WBC unit.
Definition at line 47 of file cWebshots.h. Referenced by cWebshots::cWebshotsCollection::SaveWBCFile(). |
|
First 4 bytes of a WBZ element.
Definition at line 49 of file cWebshots.h. Referenced by cWebshots::cWebshotsCollection::LoadWBZFile(), and cWebshots::cWebshotsCollection::SaveWBZFile(). |
|
First 4 bytes of a WBZ file.
Definition at line 48 of file cWebshots.h. Referenced by IdentifyFile(), cWebshots::cWebshotsCollection::LoadWBZFile(), and cWebshots::cWebshotsCollection::SaveWBZFile(). |