GCBM
|
#include <record.h>
Public Member Functions | |
ErrorRecord (std::string module, std::string error) | |
~ErrorRecord () | |
bool | operator== (const ErrorRecord &other) const |
size_t | hash () const |
ErrorRow | asPersistable () const |
StdErrorRow | asTuple () const |
void | merge (const ErrorRecord &other) |
void | setId (Int64 id) |
Int64 | getId () const |
Private Attributes | |
size_t | _hash = -1 |
Int64 | _id |
std::string | _module |
std::string | _error |
ErrorRecord | ( | std::string | module, |
std::string | error | ||
) |
Constructor.
Initialise variables ErrorRecord._module as parameter module and ErrorRecord._error as parameter error.
module | string |
error | string |
~ErrorRecord | ( | ) |
ErrorRow asPersistable | ( | ) | const |
Return ErrorRow using ErrorRecord._id,ErrorRecord._module and ErrorRecord._error as parameters.
StdErrorRow asTuple | ( | ) | const |
Return StdErrorRow using ErrorRecord._id,ErrorRecord._module and ErrorRecord._error as parameters.
Int64 getId | ( | ) | const |
size_t hash | ( | ) | const |
If ErrorRecord._hash is equal to -1,
assign ErrorRecord._hash as moja::hash::hash_combine() using ErrorRecord._module and ErrorRecord._error.
return ErrorRecord._hash.
void merge | ( | const ErrorRecord & | other | ) |
bool operator== | ( | const ErrorRecord & | other | ) | const |
Check if ErrorRecord._module is equal parameter other ErrorRecord._module and ErrorRecord._error is equal to parameter other ErrorRecord._error.
return the boolean value.
other | ErrorRecord& |
void setId | ( | Int64 | id | ) |
|
private |
|
mutableprivate |
|
private |
|
private |