#include <cWebshots.h>
Definition at line 75 of file cWebshots.h.
Public Member Functions | |
| ~cWebshotsPicture (void) | |
| Destructor. | |
| cWebshotsPicture (void) | |
| Constructor. | |
| cWebshotsPicture (const cWebshotsPicture &source) | |
| Copy Constructor. | |
| cWebshotsPicture & | operator= (const cWebshotsPicture &source) |
| Operator =. | |
| void | Clear () |
| Clears the picture. | |
| void | LoadFromFile (string File) |
| Loads a picture from a file (WBZ/WB1/JPG). | |
| void | LoadFromMemory (const char *data, long size) |
| Loads a picture from memory (WB1/JPG). | |
| void | SaveToFile (string file, Webshots_Formats format=JPG) const |
| Saves the JPEG picture to a file. | |
| char * | PicturePtr () const |
| Returns a pointer to the picture in memory (jpeg). | |
| long | PictureSize () const |
| Returns the size of the picture. | |
| char * | ThumbnailPtr () const |
| Returns a pointer to the thumbnail (bitmap). | |
| long | ThumbnailSize () const |
| Returns the size of the thumbnail. | |
Public Attributes | |
| long | ID |
| Picture ID. | |
| string | Original_Filename |
| Picture original filename. | |
| string | Title |
| Picture Title. | |
| string | Caption |
| Picture caption. | |
| string | Credits |
| Picture Credits. | |
| string | Category |
| Picture Category. | |
| string | Album |
| Picture Album. | |
| string | AlbumID |
| Category ID. | |
| string | Source |
| Picture source. | |
| long | DailyDate |
| Date when the picture was published as the daily picture on the Webshots website. | |
| long | AdditionDate |
| Date when the picture was added to the collection (if the picture is a part of a collection). | |
Private Member Functions | |
| void | LoadWB1 (ifstream &in_file) |
| Loads a WB1/JPG file. | |
| void | LoadMetaDataTXT (string file) |
| Loads metadata about a WB1 file from photos.txt. | |
Private Attributes | |
| char * | JPGFile |
| Pointer to an array containing the JPG picture (if avaible). | |
| long | JPGFile_Size |
| Size of the JPG picture. | |
| char * | BMPThumbnail |
| Pointer to an array containing the BMP thumbnail (if avaible). | |
| long | BMPThumbnail_Size |
| Size of the BMP thumbnail. | |
|
|
Destructor.
Definition at line 83 of file cWebshotsPicture.cpp. |
|
|
Constructor.
Definition at line 70 of file cWebshotsPicture.cpp. |
|
|
Copy Constructor.
Definition at line 98 of file cWebshotsPicture.cpp. |
|
|
Clears the picture.
Definition at line 433 of file cWebshotsPicture.cpp. Referenced by cWebshots::cWebshotsCollection::LoadFromFolder(). |
|
|
Loads a picture from a file (WBZ/WB1/JPG).
Definition at line 212 of file cWebshotsPicture.cpp. Referenced by cWebshots::cWebshotsCollection::LoadFromFile(), and cWebshots::cWebshotsCollection::LoadFromFolder(). |
|
||||||||||||
|
Loads a picture from memory (WB1/JPG).
Definition at line 298 of file cWebshotsPicture.cpp. Referenced by cWebshots::cWebshotsCollection::LoadWBCFile(), and cWebshots::cWebshotsCollection::LoadWBZFile(). |
|
|
Loads metadata about a WB1 file from photos.txt.
Definition at line 354 of file cWebshotsPicture.cpp. |
|
|
Loads a WB1/JPG file.
Definition at line 261 of file cWebshotsPicture.cpp. |
|
|
Operator =.
Definition at line 110 of file cWebshotsPicture.cpp. |
|
|
Returns a pointer to the picture in memory (jpeg).
Definition at line 165 of file cWebshotsPicture.cpp. |
|
|
Returns the size of the picture.
Definition at line 175 of file cWebshotsPicture.cpp. Referenced by cWebshots::cWebshotsCollection::SaveWBZFile(). |
|
||||||||||||
|
Saves the JPEG picture to a file.
Definition at line 390 of file cWebshotsPicture.cpp. |
|
|
Returns a pointer to the thumbnail (bitmap).
Definition at line 185 of file cWebshotsPicture.cpp. |
|
|
Returns the size of the thumbnail.
Definition at line 195 of file cWebshotsPicture.cpp. |
|
|
Date when the picture was added to the collection (if the picture is a part of a collection).
Definition at line 117 of file cWebshots.h. Referenced by cWebshots::cWebshotsCollection::LoadWBCFile(). |
|
|
Picture Album.
Definition at line 112 of file cWebshots.h. Referenced by cWebshots::cWebshotsCollection::LoadFromFolder(), cWebshots::cWebshotsCollection::LoadWBCFile(), and cWebshots::cWebshotsCollection::SaveWBZFile(). |
|
|
Category ID.
Definition at line 113 of file cWebshots.h. Referenced by cWebshots::cWebshotsCollection::LoadFromFolder(), and cWebshots::cWebshotsCollection::SaveWBZFile(). |
|
|
Pointer to an array containing the BMP thumbnail (if avaible).
Definition at line 80 of file cWebshots.h. |
|
|
Size of the BMP thumbnail.
Definition at line 81 of file cWebshots.h. |
|
|
Picture caption.
Definition at line 108 of file cWebshots.h. Referenced by cWebshots::cWebshotsCollection::LoadFromFolder(), and cWebshots::cWebshotsCollection::LoadWBCFile(). |
|
|
Picture Category.
Definition at line 111 of file cWebshots.h. Referenced by cWebshots::cWebshotsCollection::LoadFromFolder(), cWebshots::cWebshotsCollection::LoadWBCFile(), and cWebshots::cWebshotsCollection::SaveWBZFile(). |
|
|
Picture Credits.
Definition at line 109 of file cWebshots.h. Referenced by cWebshots::cWebshotsCollection::LoadFromFolder(), cWebshots::cWebshotsCollection::LoadWBCFile(), and cWebshots::cWebshotsCollection::SaveWBZFile(). |
|
|
Date when the picture was published as the daily picture on the Webshots website.
Definition at line 116 of file cWebshots.h. Referenced by cWebshots::cWebshotsCollection::LoadWBCFile(), and cWebshots::cWebshotsCollection::SaveWBZFile(). |
|
|
Picture ID.
Definition at line 105 of file cWebshots.h. Referenced by cWebshots::cWebshotsCollection::LoadFromFolder(), cWebshots::cWebshotsCollection::LoadWBCFile(), and cWebshots::cWebshotsCollection::SaveWBZFile(). |
|
|
Pointer to an array containing the JPG picture (if avaible).
Definition at line 78 of file cWebshots.h. |
|
|
Size of the JPG picture.
Definition at line 79 of file cWebshots.h. |
|
|
Picture original filename.
Definition at line 106 of file cWebshots.h. Referenced by cWebshots::cWebshotsCollection::LoadFromFolder(), cWebshots::cWebshotsCollection::LoadWBCFile(), and cWebshots::cWebshotsCollection::SaveWBZFile(). |
|
|
Picture source.
Definition at line 115 of file cWebshots.h. Referenced by cWebshots::cWebshotsCollection::LoadFromFolder(), cWebshots::cWebshotsCollection::LoadWBCFile(), and cWebshots::cWebshotsCollection::SaveWBZFile(). |
|
|
Picture Title.
Definition at line 107 of file cWebshots.h. Referenced by cWebshots::cWebshotsCollection::LoadFromFolder(), cWebshots::cWebshotsCollection::LoadWBCFile(), and cWebshots::cWebshotsCollection::SaveWBZFile(). |
1.4.5