#include <StreamProtocol.h>
Data Structures |
class | Client |
class | Protocol |
Public Types |
enum | Codes {
eos = 0,
skip,
whitespace,
format,
format_field,
last_function_code
} |
Public Member Functions |
void | report () |
Static Public Member Functions |
static Protocol * | getProtocol (const char *file, const StreamBuffer &protocolAndParams) |
static void | free () |
static const char * | printString (StreamBuffer &, const char *string) |
Static Public Attributes |
static const char * | path |
Protected Member Functions |
| ~StreamProtocolParser () |
Private Member Functions |
| StreamProtocolParser (FILE *file, const char *filename) |
Protocol * | getProtocol (const StreamBuffer &protocolAndParams) |
bool | isGlobalContext (const StreamBuffer *commands) |
bool | isHandlerContext (Protocol &, const StreamBuffer *commands) |
bool | parseProtocol (Protocol &, StreamBuffer *commands) |
int | readChar () |
bool | readToken (StreamBuffer &buffer, const char *specialchars=NULL, bool eofAllowed=false) |
bool | parseAssignment (const char *variable, Protocol &) |
bool | parseValue (StreamBuffer &buffer, bool lazy=false) |
Static Private Member Functions |
static StreamProtocolParser * | readFile (const char *file) |
Private Attributes |
StreamBuffer | filename |
FILE * | file |
int | line |
int | quote |
Protocol | globalSettings |
Protocol * | protocols |
StreamProtocolParser * | next |
bool | valid |
Static Private Attributes |
static StreamProtocolParser * | parsers |
Detailed Description
Definition at line 29 of file StreamProtocol.h.
Member Enumeration Documentation
- Enumerator:
eos |
|
skip |
|
whitespace |
|
format |
|
format_field |
|
last_function_code |
|
Definition at line 33 of file StreamProtocol.h.
Constructor & Destructor Documentation
StreamProtocolParser::StreamProtocolParser |
( |
FILE * |
file, |
|
|
const char * |
filename | |
|
) |
| | [private] |
StreamProtocolParser::~StreamProtocolParser |
( |
|
) |
[protected] |
Member Function Documentation
static void StreamProtocolParser::free |
( |
|
) |
[static] |
static Protocol* StreamProtocolParser::getProtocol |
( |
const char * |
file, |
|
|
const StreamBuffer & |
protocolAndParams | |
|
) |
| | [static] |
bool StreamProtocolParser::isGlobalContext |
( |
const StreamBuffer * |
commands |
) |
[private] |
bool StreamProtocolParser::isHandlerContext |
( |
Protocol & |
, |
|
|
const StreamBuffer * |
commands | |
|
) |
| | [private] |
bool StreamProtocolParser::parseAssignment |
( |
const char * |
variable, |
|
|
Protocol & |
| |
|
) |
| | [private] |
bool StreamProtocolParser::parseValue |
( |
StreamBuffer & |
buffer, |
|
|
bool |
lazy = false | |
|
) |
| | [private] |
static const char* StreamProtocolParser::printString |
( |
StreamBuffer & |
, |
|
|
const char * |
string | |
|
) |
| | [static] |
int StreamProtocolParser::readChar |
( |
|
) |
[private] |
bool StreamProtocolParser::readToken |
( |
StreamBuffer & |
buffer, |
|
|
const char * |
specialchars = NULL , |
|
|
bool |
eofAllowed = false | |
|
) |
| | [private] |
void StreamProtocolParser::report |
( |
|
) |
|
Field Documentation
The documentation for this class was generated from the following file: