|
PARTONS
|
PARtonic Tomography Of Nucleon Software
|
![]() |
Base class for those representing files in database. More...
Public Member Functions | |
| DatabaseFileObject (const std::string &className) | |
| Constructor. More... | |
| DatabaseFileObject (const std::string &className, const int indexId, const time_t storeDate, const std::string &filePath, const std::string &hashSum, const std::string &file) | |
| Constructor. More... | |
| DatabaseFileObject (const DatabaseFileObject &other) | |
| Copy constructor. More... | |
| virtual | ~DatabaseFileObject () |
| Destructor. More... | |
| virtual std::string | toString () const |
| Return a pre-formatted characters string for output visualization of class member's values. More... | |
| const std::string & | getFile () const |
| Get reference to DatabaseFileObject::m_file. More... | |
| void | setFile (const std::string &file) |
| Set DatabaseFileObject::m_file. More... | |
| const std::string & | getHashSum () const |
| Get reference to DatabaseFileObject::m_hashSum. More... | |
| void | setHashSum (const std::string &hashSum) |
| Set DatabaseFileObject::m_hashSum. More... | |
| time_t | getStoreDate () const |
| Get DatabaseFileObject::m_storeDate. More... | |
| void | setStoreDate (time_t storeDate) |
| Set DatabaseFileObject::m_storeDate. More... | |
| const std::string & | getFilePath () const |
| Get reference to DatabaseFileObject::m_filePath. More... | |
| void | setFilePath (const std::string &filePath) |
| Set DatabaseFileObject::m_filePath. More... | |
Public Member Functions inherited from PARTONS::BaseObject | |
| BaseObject (const std::string &className) | |
| Constructor. More... | |
| virtual | ~BaseObject () |
| Default destructor. More... | |
| virtual BaseObject * | clone () const |
| Virtual clone function to allow the factory to clone all derived members object stored in the BaseObjectRegistry. More... | |
| virtual void | resolveObjectDependencies () |
| Because of the initialization step order of the program, objects are registered in a total random order and some objects depend on others. More... | |
| void | serialize (ElemUtils::Packet &packet) const |
| Used to split a complex C++ object into a concatenation of simple types. More... | |
| void | unserialize (ElemUtils::Packet &packet) |
| Used to rebuild a complex C++ object from a concatenation of simple type. More... | |
| bool | operator< (const BaseObject &other) const |
| Overload of < operator to sort BaseObject object by its indexId value. More... | |
| const std::string & | getClassName () const |
| unsigned int | getObjectId () const |
| int | getIndexId () const |
| void | setIndexId (int indexId) |
Protected Member Functions | |
| virtual std::string | fillFile () const =0 |
| Fill file from database. More... | |
Protected Member Functions inherited from PARTONS::BaseObject | |
| BaseObject (const BaseObject &other) | |
| Copy constructor. More... | |
| void | info (const std::string &functionName, const std::string &message) const |
| Print info message into logger. More... | |
| void | debug (const std::string &functionName, const std::string &message) const |
| Print debug message into logger. More... | |
| void | warn (const std::string &functionName, const std::string &message) const |
| Print warning message into logger. More... | |
| void | errorMissingParameter (const std::string ¶meterName) const |
| Use in automation process to throw exception when a parameter is missing from the XML scenario file. More... | |
Private Member Functions | |
| void | setCryptographicHashService () |
| Set m_pCryptographicHashService pointer. More... | |
Private Attributes | |
| CryptographicHashService * | m_pCryptographicHashService |
| Pointer to CryptographicHashService. More... | |
| time_t | m_storeDate |
| Time of insertion into the database. More... | |
| std::string | m_file |
| String containing file content. More... | |
| std::string | m_hashSum |
| Hash sum of file content. More... | |
| std::string | m_filePath |
| Path to file. More... | |
Base class for those representing files in database.
It is the base class for those representing files that can be stored in the database. It provides a set of useful tools for those objects.
| PARTONS::DatabaseFileObject::DatabaseFileObject | ( | const std::string & | className | ) |
Constructor.
| className | Name of class. |
| PARTONS::DatabaseFileObject::DatabaseFileObject | ( | const std::string & | className, |
| const int | indexId, | ||
| const time_t | storeDate, | ||
| const std::string & | filePath, | ||
| const std::string & | hashSum, | ||
| const std::string & | file | ||
| ) |
Constructor.
| className | Name of class. |
| indexId | Unique id used when object is created from the database, see BaseObject::m_indexId. |
| storeDate | Time of insertion into the database. |
| filePath | Path to file. |
| hashSum | Hash sum of file content. |
| file | String containing file content. |
| PARTONS::DatabaseFileObject::DatabaseFileObject | ( | const DatabaseFileObject & | other | ) |
Copy constructor.
| other | Object to be copied. |
|
virtual |
Destructor.
|
protectedpure virtual |
Fill file from database.
Implemented in PARTONS::EnvironmentConfiguration, and PARTONS::Scenario.
| const std::string & PARTONS::DatabaseFileObject::getFile | ( | ) | const |
Get reference to DatabaseFileObject::m_file.
| const std::string & PARTONS::DatabaseFileObject::getFilePath | ( | ) | const |
Get reference to DatabaseFileObject::m_filePath.
| const std::string & PARTONS::DatabaseFileObject::getHashSum | ( | ) | const |
Get reference to DatabaseFileObject::m_hashSum.
| time_t PARTONS::DatabaseFileObject::getStoreDate | ( | ) | const |
Get DatabaseFileObject::m_storeDate.
|
private |
Set m_pCryptographicHashService pointer.
| void PARTONS::DatabaseFileObject::setFile | ( | const std::string & | file | ) |
Set DatabaseFileObject::m_file.
| file | Object to be set. |
| void PARTONS::DatabaseFileObject::setFilePath | ( | const std::string & | filePath | ) |
Set DatabaseFileObject::m_filePath.
| filePath | Object to be set. |
| void PARTONS::DatabaseFileObject::setHashSum | ( | const std::string & | hashSum | ) |
Set DatabaseFileObject::m_hashSum.
| hashSum | Object to be set. |
| void PARTONS::DatabaseFileObject::setStoreDate | ( | time_t | storeDate | ) |
Set DatabaseFileObject::m_storeDate.
| storeDate | Value to be set. |
|
virtual |
Return a pre-formatted characters string for output visualization of class member's values.
Reimplemented from PARTONS::BaseObject.
Reimplemented in PARTONS::Scenario.
|
mutableprivate |
String containing file content.
|
private |
Path to file.
|
mutableprivate |
Hash sum of file content.
|
private |
Pointer to CryptographicHashService.
|
private |
Time of insertion into the database.