Abstract base class to store the parameter for a DtVrfDatabaseEvent.
| DtVrfDatabaseEventParam::DtVrfDatabaseEventParam |
( |
| ) |
|
| virtual DtVrfDatabaseEventParam::~DtVrfDatabaseEventParam |
( |
| ) |
|
|
virtual |
| virtual std::string DtVrfDatabaseEventParam::paramName |
( |
unsigned |
subParamIndex = 0 | ) |
const |
|
pure virtual |
Returns the name of the parameter. The subParamIndex is not necessary for most parameters, but some params end up translating into multiple parameters in the database. If numberOfSubParams() returns a value greater than 0, then specifying this will return the name of that specific sub-parameter.
Implemented in DtTemplatedDatabaseEventParam< T >.
| virtual std::string DtVrfDatabaseEventParam::paramType |
( |
unsigned |
subParamIndex = 0 | ) |
const |
|
pure virtual |
Returns the string of the type of this parameter. The subParamIndex is not necessary for most parameters, but some params end up translating into multiple parameters in the database. If numberOfSubParams() returns a value greater than 0, then specifying this will return the type of that specific sub-parameter.
Implemented in DtTemplatedDatabaseEventParam< T >.
| virtual std::string DtVrfDatabaseEventParam::paramValueString |
( |
unsigned |
subParamIndex = 0 | ) |
const |
|
pure virtual |
Returns a stringified version of the value of this parameter. The subParamIndex is not necessary for most parameters, but some params end up translating into multiple parameters in the database. If numberOfSubParams() returns a value greater than 0, then specifying this will return the vale of that specific sub-parameter.
Implemented in DtTemplatedDatabaseEventParam< T >.
| virtual unsigned DtVrfDatabaseEventParam::numberOfSubParams |
( |
| ) |
const |
|
inlinevirtual |
| virtual bool DtVrfDatabaseEventParam::isPrimaryKey |
( |
| ) |
const |
|
pure virtual |
| static void DtVrfDatabaseEventParam::setSqlEscapeStringFcn |
( |
std::function< std::string(std::string)> |
fcn | ) |
|
|
static |
Sets a function called by sqlEscapeString to produce the escaped string. Handles SQL implementation specific escaping.
| static std::string DtVrfDatabaseEventParam::escapeString |
( |
std::string |
str | ) |
|
|
inlinestaticprotected |
Creates a string that escapes characters as necessary in the given string. Default implementation simply returns the original string, but can be replaced by SQL connections using setSqlEscapeStringFcn.
| std::function<std::string(std::string)> DtVrfDatabaseEventParam::theEscapeStrFcn |
|
staticprotected |
The documentation for this class was generated from the following file: