16 #include <vlutil/vlString.h>
17 #include <vlutil/vlSmartPointers.h>
46 static const char *
const theLgrDomainStrings[];
65 static const char* theLgrProtocolsStrings[];
91 static const char* domainToString(
int domainValue);
92 static const char* protocolToString(
int protocolValue);
116 const char* parametersBuffer=0);
149 void serializeParameters(
DtString& parameterBuffer)
const;
152 void deserializeParameters(
const char* parameterBuffer);
178 #define DT_FACTORY_COMMAND(commandName,createParams,decodeParams)\
179 static DtCommandDefinition define##commandName##Command();\
180 static DtCommand create##commandName##Command createParams;\
181 static void decode##commandName##Command decodeParams;
184 #define DT_FACTORY_COMMAND_EXT(commandId,commandName,createParams,decodeParams)\
185 static const DtLgrCommandId Command_##commandName = commandId;\
186 static DtCommandDefinition define##commandName##Command();\
187 static DtCommand create##commandName##Command createParams;\
188 static void decode##commandName##Command decodeParams;
192 #define DT_FACTORY_RESPONSE(responseName,createParams,decodeParams)\
193 static DtResponse create##responseName##Response createParams;\
194 static void decode##responseName##Response decodeParams;
199 #define DT_FACTORY_RESPONSE_EXT(responseId,responseName,createParams,decodeParams)\
200 static const DtLgrCommandId Response_##responseName = responseId;\
201 static DtResponse create##responseName##Response createParams;\
202 static void decode##responseName##Response decodeParams;
206 template <
typename ValueType>
210 template <
typename ValueType>
213 #define lgrCommand_INC_
214 #include "lgrCommand.inl"
215 #undef lgrCommand_INC_
The logger command which contains the command type and its parameters.
Definition: lgrCommand.h:110
The command type structure.
Definition: lgrCommand.h:29
void DtGetResponseParameter(const DtResponse response, const DtString &name, ValueType &value)
Template utility functions for getting the type.
Definition: lgrCommand.h:40
static const int theLgrDomainStringsCount
Definition: lgrCommand.h:45
Contains MAKLogger::DtAnyValue and MAKLogger::DtValue and MAKLogger::DtValueList classes.
DtLgrCommandId myCommand
Definition: lgrCommand.h:167
#define DT_DLL_LGR_CMDS
Definition: lgrCmds.h:18
Contains Logger exceptions.
unsigned char DtLgrDomainId
Definition: lgrCommand.h:23
static int theTypeId()
Static function which defines the type.
void DtGetCommandParameter(const DtCommand &command, const DtString &name, ValueType &value)
Template utility functions for getting the type.
Definition: lgrCommand.h:15
DtAnyValue is a base class for Any Value type.
Definition: runtimeValue.h:30
DtCommandParamsSP myParameters
Definition: lgrCommand.h:168
std::shared_ptr< DtAnyValue > DtAnyValueSP
Definition: lgrCommand.h:104
DtLgrCommandType myType
Definition: lgrCommand.h:166
std::shared_ptr< DtCommandParams > DtCommandParamsSP
Definition: lgrCommand.h:106
Contains lgrCmds library definitions.
std::map< DtString, DtAnyValueSP > DtCommandParams
Definition: lgrCommand.h:105
unsigned char DtLgrProtocolId
Definition: lgrCommand.h:24
std::shared_ptr< const DtCommand > DtResponse
Definition: lgrCommand.h:175
static const int theLgrProtocolsStringsCount
Definition: lgrCommand.h:64
short DtLgrCommandId
Definition: lgrCommand.h:25
DtLgrDomainId myDomain
Definition: lgrCommand.h:95
DtString * myUnknownCommandName
Definition: lgrCommand.h:169
std::shared_ptr< DtCommand > DtCommandSP
Makes it much easier with additional typedefs in other classes.
Definition: lgrCommand.h:173
DtLgrProtocolId myProtocol
Definition: lgrCommand.h:96