#include <cWebshots.h>
Collaboration diagram for cWebshots::cWebshotsTXT:
Definition at line 156 of file cWebshots.h.
Public Member Functions | |
cWebshotsTXT (void) | |
Constructor. | |
cWebshotsTXT (string directory) | |
Constructor. | |
~cWebshotsTXT (void) | |
Destructor. | |
void | Load (string directory) |
Load photos.txt and/or album.txt from a directory. | |
sPhotosTXT & | Picture (int index) |
Return a record, given its index. | |
int | PictureCount () |
Return the number of records. | |
int | IndexFromFileName (string filename, bool case_sensitive=false) |
Return the index of a record, given the filename. | |
Public Attributes | |
sAlbumTXT | Album |
sAlbumTXT structure which contains informations about the collection | |
Static Public Attributes | |
static const int | IndexNotFound = -1 |
Returned by IndexFromFileName when the index is not found. | |
Private Attributes | |
sPhotosTXT * | Pictures |
Pointer to an array of sPhotosTXT sturctures which contains informations about pictures. | |
int | Count |
Number of picture information records. |
|
Constructor.
Definition at line 37 of file cWebshotsTXT.cpp. References Count. |
|
Constructor.
Definition at line 47 of file cWebshotsTXT.cpp. |
|
Destructor.
Definition at line 56 of file cWebshotsTXT.cpp. |
|
Return the index of a record, given the filename.
Definition at line 286 of file cWebshotsTXT.cpp. References Count, IndexNotFound, and Pictures. |
|
Load photos.txt and/or album.txt from a directory.
Definition at line 68 of file cWebshotsTXT.cpp. References Album, cWebshots::sPhotosTXT::caption, Count, cWebshots::sAlbumTXT::create_date, cWebshots::sPhotosTXT::credit, cWebshots::sAlbumTXT::description, cWebshots::sAlbumTXT::edit_date, cWebshots::sPhotosTXT::id, cWebshots::sAlbumTXT::id, cWebshots::sAlbumTXT::in_use, cWebshots::sAlbumTXT::photo_count, Pictures, cWebshots::sPhotosTXT::position, cWebshots::sPhotosTXT::source, cWebshots::sPhotosTXT::title, cWebshots::sAlbumTXT::title, cWebshots::sAlbumTXT::topic_name, cWebshots::sPhotosTXT::url_photo, and cWebshots::sPhotosTXT::url_thumb. Referenced by cWebshotsTXT(), and cWebshots::cWebshotsCollection::LoadFromFolder(). |
|
Return a record, given its index.
Definition at line 261 of file cWebshotsTXT.cpp. References Pictures. Referenced by cWebshots::cWebshotsCollection::LoadFromFolder(). |
|
Return the number of records.
Definition at line 271 of file cWebshotsTXT.cpp. References Count. Referenced by cWebshots::cWebshotsCollection::LoadFromFolder(). |
|
sAlbumTXT structure which contains informations about the collection
Definition at line 174 of file cWebshots.h. Referenced by Load(), and cWebshots::cWebshotsCollection::LoadFromFolder(). |
|
Number of picture information records.
Definition at line 160 of file cWebshots.h. Referenced by cWebshotsTXT(), IndexFromFileName(), Load(), PictureCount(), and ~cWebshotsTXT(). |
|
Returned by IndexFromFileName when the index is not found.
Definition at line 176 of file cWebshots.h. Referenced by IndexFromFileName(). |
|
Pointer to an array of sPhotosTXT sturctures which contains informations about pictures.
Definition at line 159 of file cWebshots.h. Referenced by IndexFromFileName(), Load(), Picture(), and ~cWebshotsTXT(). |