Public Member Functions | Static Public Attributes | Protected Attributes
MAKLogger::DtCommand Class Reference

The logger command which contains the command type and its parameters. More...

+ Collaboration diagram for MAKLogger::DtCommand:

List of all members.

Public Member Functions

 DtCommand (DtLgrDomainId domain, DtLgrProtocolId protocol, DtLgrCommandId command, const char *parametersBuffer=0)
 Pass in values for type and optional serialized parameters.
 DtCommand (DtLgrDomainId domain, DtLgrProtocolId protocol, const DtString &commandName)
 Pass in name of command.
 DtCommand (const DtLgrCommandType &type, DtLgrCommandId command)
 Simple command, no parameters.
 DtCommand (const DtCommand &type)
 Simple command, no parameters.
 ~DtCommand ()
 Complex command, with base parameter class.
DtLgrCommandType type () const
 Get the type.
DtLgrCommandId id () const
 Get the command id.
void setId (DtLgrCommandId id)
 Set the id.
const DtStringname () const
 Get the name, this is null if not specified.
void setParameter (const DtString &name, DtAnyValue *)
 Set a parameter.
const DtAnyValueparameter (const DtString &name) const
 Get a parameter.
void serializeParameters (DtString &parameterBuffer) const
 Serialize the parameters into the given string buffer.
void deserializeParameters (const char *parameterBuffer)
 Deserialize the parameters from the given string buffer.
bool operator== (const DtCommand &) const
 Comparison operators, function only on myType and myCommand, Will compare myUnknownCommandName if myCommand is theUnknownCommand; NOT myParameters.
bool operator!= (const DtCommand &) const
bool operator< (const DtCommand &) const
bool operator> (const DtCommand &) const

Static Public Attributes

static const DtLgrCommandId theUnknownCommand = 0
 Unknown command, specific if commandName is used.

Protected Attributes

DtLgrCommandType myType
DtLgrCommandId myCommand
DtCommandParamsSP myParameters
DtStringmyUnknownCommandName

Detailed Description

The logger command which contains the command type and its parameters.


Member Function Documentation

bool MAKLogger::DtCommand::operator== ( const DtCommand ) const

Comparison operators, function only on myType and myCommand, Will compare myUnknownCommandName if myCommand is theUnknownCommand; NOT myParameters.


The documentation for this class was generated from the following file:

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)