32 virtual std::string paramName(
unsigned subParamIndex = 0)
const = 0;
39 virtual std::string paramType(
unsigned subParamIndex = 0)
const = 0;
46 virtual std::string paramValueString(
unsigned subParamIndex = 0)
const = 0;
55 virtual bool isPrimaryKey()
const = 0;
62 static void setSqlEscapeStringFcn(std::function<std::string(std::string)> fcn);
69 static inline std::string escapeString(std::string str);
99 inline virtual std::string
paramName(
unsigned subParamIndex = 0)
const override;
102 inline virtual std::string
paramType(
unsigned subParamIndex = 0)
const override;
105 inline virtual std::string
paramValueString(
unsigned subParamIndex = 0)
const override;
123 #include <vrfMsgTransport/vrfDatabaseEventParam.inl>
DtString myName
Definition: vrfDatabaseEventParam.h:117
static std::function< std::string(std::string)> theEscapeStrFcn
Definition: vrfDatabaseEventParam.h:71
virtual unsigned numberOfSubParams() const override
For most parameters, this is just one, as there is one DtVrfDatabaseEventParam per database parameter...
Stores the parameter for a DtVrfDatabaseEvent.
Definition: vrfDatabaseEventParam.h:76
virtual T paramValue() const
The stored value for this parameter.
virtual std::string paramName(unsigned subParamIndex=0) const override
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.
virtual bool isPrimaryKey() const override
Returns true if this parameter is the primary key of the table.
Abstract base class to store the parameter for a DtVrfDatabaseEvent.
Definition: vrfDatabaseEventParam.h:11
T myVal
Definition: vrfDatabaseEventParam.h:118
virtual unsigned numberOfSubParams() const
For most parameters, this is just one, as there is one DtVrfDatabaseEventParam per database parameter...
Definition: vrfDatabaseEventParam.h:52
DtTemplatedDatabaseEventParam< T > & operator=(const DtTemplatedDatabaseEventParam< T > &)
Assignment operator.
virtual std::string paramValueString(unsigned subParamIndex=0) const override
Returns a stringified version of the value of this parameter. The subParamIndex is not necessary for ...
#define DT_DLL_vrfMsgTransport
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfCommunicationManagerDefines.h:26
virtual std::string paramType(unsigned subParamIndex=0) const override
Returns the string of the type of this parameter. The subParamIndex is not necessary for most paramet...
bool myIsPrimaryKey
Definition: vrfDatabaseEventParam.h:119
virtual DtVrfDatabaseEventParam * clone() override
Makes a new copy of this parameter.