SumFile
class that the application knows.
More...
#include <checksumfactory.hpp>
Public Types | |
enum | SumFileType { ftSFV = 0, ftMD5 } |
Enumeration of the types of the checksums' files. More... | |
Static Public Member Functions | |
bool | exists (const int sumFileType) |
Returns true if the given identifer of checksums' file type exists. | |
wxArrayInt | getAvailableSumFiles () |
Gets all the identifers of the available checksums' file types. | |
wxString | getSumFileDescription (const int sumFileType) |
Gives the description of the specified checksums' file type. | |
wxString | getSumFileExtension (const int sumFileType) |
Gives the file's extension of the specified checksums' file type. | |
wxString | getSumFileName (const int sumFileType) |
Gives the name of the specified checksums' file type. | |
SumFile * | getSumFileNewInstance (const int sumFileType) |
Gives a pointer on a new instance of the specified checksums' file type. | |
int | getSumFilesCount () |
Gets the number of available identifers of checksums' file types. | |
void | initialize () |
Initializes the static members of the class. | |
Private Member Functions | |
SumFileFactory () | |
Default constructor. Don't use it. | |
WX_DECLARE_HASH_MAP (int, SumFileEntry, wxIntegerHash, wxIntegerEqual, SumFileEntries) | |
A hashmap of string keys and SumFileEntry values. | |
Static Private Attributes | |
SumFileEntries | sumFilesTypes |
All the checksums' file types that the application knows. |
SumFile
class that the application knows.
Known classes are registered in the Initialize
static member. Call it at the start of the program.
The enumeration of known checksums' file types begin from 0
to getSumFilesCount() - 1
.
Definition at line 63 of file checksumfactory.hpp.
|
Enumeration of the types of the checksums' files.
Definition at line 151 of file checksumfactory.hpp. |
|
Default constructor. Don't use it.
Definition at line 122 of file checksumfactory.hpp. |
|
Returns
Definition at line 137 of file checksumfactory.cpp. References exists(), and sumFilesTypes. Referenced by exists(), getSumFileDescription(), getSumFileExtension(), getSumFileName(), and getSumFileNewInstance(). |
|
Gets all the identifers of the available checksums' file types.
Definition at line 105 of file checksumfactory.cpp. References sumFilesTypes. |
|
Gives the description of the specified checksums' file type.
Definition at line 194 of file checksumfactory.cpp. References exists(), getSumFileDescription(), and sumFilesTypes. Referenced by getSumFileDescription(). |
|
Gives the file's extension of the specified checksums' file type.
Definition at line 212 of file checksumfactory.cpp. References exists(), getSumFileExtension(), and sumFilesTypes. Referenced by getSumFileExtension(). |
|
Gives the name of the specified checksums' file type.
Definition at line 176 of file checksumfactory.cpp. References exists(), getSumFileName(), and sumFilesTypes. Referenced by getSumFileName(). |
|
Gives a pointer on a new instance of the specified checksums' file type.
The caller is responsible of the deletion of the instance with the
Definition at line 158 of file checksumfactory.cpp. References exists(), getSumFileNewInstance(), and sumFilesTypes. Referenced by getSumFileNewInstance(). |
|
Gets the number of available identifers of checksums' file types.
Definition at line 123 of file checksumfactory.cpp. References sumFilesTypes. Referenced by dlgBatchCreationConf::btnOKClick(), dlgBatchCreationConf::createControls(), dlgBatchCreationConf::getCkFileTypeCreateConfigKey(), getFilterForKnownTypesOfChecksumsFiles(), and frmSums::itmFileSaveAsClick(). |
|
Initializes the static members of the class.
The name the type of the checksums' file should be the same as the one returned by Definition at line 92 of file checksumfactory.cpp. References sumFilesTypes. Referenced by CkSumsApp::OnInit(). |
|
A hashmap of string keys and SumFileEntry values.
|
|
All the checksums' file types that the application knows.
Definition at line 82 of file checksumfactory.cpp. Referenced by exists(), getAvailableSumFiles(), getSumFileDescription(), getSumFileExtension(), getSumFileName(), getSumFileNewInstance(), getSumFilesCount(), and initialize(). |