16 #include <vlutil/vlString.h>
17 #include <vlutil/vlSmartPointers.h>
46 static const char *
const theLgrDomainStrings[];
64 static const char* theLgrProtocolsStrings[];
90 static const char* domainToString(
int domainValue);
91 static const char* protocolToString(
int protocolValue);
115 const char* parametersBuffer=0);
139 const DtString* name()
const;
142 void setParameter(
const DtString& name,
DtAnyValue*);
145 const DtAnyValue* parameter(
const DtString& name)
const;
148 void serializeParameters(DtString& parameterBuffer)
const;
151 void deserializeParameters(
const char* parameterBuffer);
177 #define DT_FACTORY_COMMAND(commandName,createParams,decodeParams)\
178 static DtCommandDefinition define##commandName##Command();\
179 static DtCommand create##commandName##Command createParams;\
180 static void decode##commandName##Command decodeParams;
183 #define DT_FACTORY_COMMAND_EXT(commandId,commandName,createParams,decodeParams)\
184 static const DtLgrCommandId Command_##commandName = commandId;\
185 static DtCommandDefinition define##commandName##Command();\
186 static DtCommand create##commandName##Command createParams;\
187 static void decode##commandName##Command decodeParams;
191 #define DT_FACTORY_RESPONSE(responseName,createParams,decodeParams)\
192 static DtResponse create##responseName##Response createParams;\
193 static void decode##responseName##Response decodeParams;
198 #define DT_FACTORY_RESPONSE_EXT(responseId,responseName,createParams,decodeParams)\
199 static const DtLgrCommandId Response_##responseName = responseId;\
200 static DtResponse create##responseName##Response createParams;\
201 static void decode##responseName##Response decodeParams;
205 template <
typename ValueType>
209 template <
typename ValueType>
212 #define lgrCommand_INC_
213 #include "lgrCommand.inl"
214 #undef lgrCommand_INC_
The logger command which contains the command type and its parameters.
Definition: lgrCommand.h:109
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:166
DtBoost::shared_ptr< DtAnyValue > DtAnyValueSP
Definition: lgrCommand.h:103
#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.
DtBoost::shared_ptr< const DtCommand > DtResponse
Definition: lgrCommand.h:174
DtBoost::shared_ptr< DtCommandParams > DtCommandParamsSP
Definition: lgrCommand.h:105
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:167
DtLgrCommandType myType
Definition: lgrCommand.h:165
Contains lgrCmds library definitions.
std::map< DtString, DtAnyValueSP > DtCommandParams
Definition: lgrCommand.h:104
unsigned char DtLgrProtocolId
Definition: lgrCommand.h:24
static const int theLgrProtocolsStringsCount
Definition: lgrCommand.h:63
short DtLgrCommandId
Definition: lgrCommand.h:25
DtLgrDomainId myDomain
Definition: lgrCommand.h:94
DtBoost::shared_ptr< DtCommand > DtCommandSP
Makes it much easier with additional typedefs in other classes.
Definition: lgrCommand.h:172
DtString * myUnknownCommandName
Definition: lgrCommand.h:168
DtLgrProtocolId myProtocol
Definition: lgrCommand.h:95