#include <StreamProtocol.h>
Public Member Functions |
| bool | getNumberVariable (const char *varname, unsigned long &value, unsigned long max=0xFFFFFFFF) |
| bool | getEnumVariable (const char *varname, unsigned short &value, const char **enumstrings) |
| bool | getStringVariable (const char *varname, StreamBuffer &value, bool *defined=NULL) |
| bool | getCommands (const char *handlername, StreamBuffer &code, Client *) |
| bool | compileNumber (unsigned long &number, const char *&source, unsigned long max=0xFFFFFFFF) |
| bool | compileString (StreamBuffer &buffer, const char *&source, FormatType formatType=NoFormat, Client *=NULL, int quoted=false) |
| bool | checkUnused () |
| | ~Protocol () |
| void | report () |
Data Fields |
| const StreamBuffer | filename |
Private Member Functions |
| | Protocol (const char *filename) |
| | Protocol (const Protocol &p, StreamBuffer &name, int line) |
| StreamBuffer * | createVariable (const char *name, int line) |
| bool | compileFormat (StreamBuffer &, const char *&source, FormatType, Client *) |
| bool | compileCommands (StreamBuffer &, const char *&source, Client *) |
| bool | replaceVariable (StreamBuffer &, const char *varname) |
| const Variable * | getVariable (const char *name) |
Private Attributes |
| Protocol * | next |
| Variable * | variables |
| const StreamBuffer | protocolname |
| StreamBuffer * | commands |
| int | line |
| const char * | parameter [10] |
Friends |
| class | StreamProtocolParser |
Detailed Description
Definition at line 40 of file StreamProtocol.h.
Constructor & Destructor Documentation
| StreamProtocolParser::Protocol::Protocol |
( |
const char * |
filename |
) |
[private] |
| StreamProtocolParser::Protocol::Protocol |
( |
const Protocol & |
p, |
|
|
StreamBuffer & |
name, |
|
|
int |
line | |
|
) |
| | [private] |
| StreamProtocolParser::Protocol::~Protocol |
( |
|
) |
|
Member Function Documentation
| bool StreamProtocolParser::Protocol::checkUnused |
( |
|
) |
|
| bool StreamProtocolParser::Protocol::compileCommands |
( |
StreamBuffer & |
, |
|
|
const char *& |
source, |
|
|
Client * |
| |
|
) |
| | [private] |
| bool StreamProtocolParser::Protocol::compileNumber |
( |
unsigned long & |
number, |
|
|
const char *& |
source, |
|
|
unsigned long |
max = 0xFFFFFFFF | |
|
) |
| | |
| bool StreamProtocolParser::Protocol::compileString |
( |
StreamBuffer & |
buffer, |
|
|
const char *& |
source, |
|
|
FormatType |
formatType = NoFormat, |
|
|
Client * |
= NULL, |
|
|
int |
quoted = false | |
|
) |
| | |
| StreamBuffer* StreamProtocolParser::Protocol::createVariable |
( |
const char * |
name, |
|
|
int |
line | |
|
) |
| | [private] |
| bool StreamProtocolParser::Protocol::getCommands |
( |
const char * |
handlername, |
|
|
StreamBuffer & |
code, |
|
|
Client * |
| |
|
) |
| | |
| bool StreamProtocolParser::Protocol::getEnumVariable |
( |
const char * |
varname, |
|
|
unsigned short & |
value, |
|
|
const char ** |
enumstrings | |
|
) |
| | |
| bool StreamProtocolParser::Protocol::getNumberVariable |
( |
const char * |
varname, |
|
|
unsigned long & |
value, |
|
|
unsigned long |
max = 0xFFFFFFFF | |
|
) |
| | |
| bool StreamProtocolParser::Protocol::getStringVariable |
( |
const char * |
varname, |
|
|
StreamBuffer & |
value, |
|
|
bool * |
defined = NULL | |
|
) |
| | |
| const Variable* StreamProtocolParser::Protocol::getVariable |
( |
const char * |
name |
) |
[private] |
| bool StreamProtocolParser::Protocol::replaceVariable |
( |
StreamBuffer & |
, |
|
|
const char * |
varname | |
|
) |
| | [private] |
| void StreamProtocolParser::Protocol::report |
( |
|
) |
|
Friends And Related Function Documentation
Field Documentation
The documentation for this class was generated from the following file: