47#ifndef CCXX_MISSING_H_
77 enum { TAG, CDATA, COMMENT, DTD, AMP, NONE} state;
80 bool parseChunk(
const char *chunk,
size_t len);
99 virtual bool open(
const char *resource);
121 virtual void comment(
const unsigned char *text,
size_t len);
130 virtual int read(
unsigned char *buffer,
size_t len) = 0;
139 virtual void characters(
const unsigned char *text,
size_t len) = 0;
157 virtual void startElement(
const unsigned char *name,
const unsigned char **attr) = 0;
172 bool parse(
const char *resource = NULL);
188 std::stringstream strBuf;
191 std::strstream *oldStrBuf;
208 virtual bool post(
const char *resource,
const char *msg) = 0;
310 bool send(
const char *resource);
321#ifdef CCXX_NAMESPACES
Level
Definition slog.h:123
This class impliments a core XMLRPC service without the underlying transports.
Definition xml.h:185
void addParam(long value)
Add an integer paramater to XMLRPC request.
void addMember(const char *name, bool value)
Add bool member to a XMLRPC struct.
bool send(const char *resource)
Complete buffer and send well formed XMLRPC request thru post.
void addParam(bool value)
Add bool param to XMLRPC request.
void begArray(void)
Create an array.
XMLRPC(size_t bufferSize=512)
Construct XMLRPC workspace.
virtual bool post(const char *resource, const char *msg)=0
Used in a derived transport class to deliver the XMLRPC encoded request and return true if successful...
void endStruct(void)
Clear a struct.
virtual ~XMLRPC()
Destroy XMLRPC object.
void invoke(const char *method)
Create XMLRPC "method" call in buffer.
void addParam(const char *string)
Add a string paramater to XMLRPC request.
void endArray(void)
end an array.
void addMember(const char *name, const char *value)
Add a string member to XMLRPC struct.
void begStruct(void)
Start member struct.
void response(bool fault)
Create XMLRPC "reply" to a method call.
void addMember(const char *name, long value)
Add an integer member to XMLRPC struct.
This class impliments a basic XML stream parser that can be used to examine an XML resource thru virt...
Definition xml.h:74
virtual Slog::Level getLogging(void)
Get error logging level.
virtual bool open(const char *resource)
May perform an open operation on behalf of a parsed resource.
virtual void startDocument(void)
Identify start of document event.
virtual void close(void)
May perform a close operation of an i/o source when the parser has completed operation.
virtual int read(unsigned char *buffer, size_t len)=0
Read method to aquire data for the parser.
virtual void endElement(const unsigned char *name)=0
Identify end of an element in the document.
bool parse(const char *resource=NULL)
Parse a resource as a stream thru the virtual read method.
virtual void startElement(const unsigned char *name, const unsigned char **attr)=0
Identify start of an element in the document.
virtual void endDocument(void)
Identify end of document event.
virtual void comment(const unsigned char *text, size_t len)
Virtual to receive embedded comments in an XML document being parsed.
virtual void characters(const unsigned char *text, size_t len)=0
Virtual to receive character text extracted from the document in the current element.
#define __EXPORT
Definition config.h:1045
substitute functions which may be missing in target platform libc.
System logging facilities abstraction.
Synchronization and threading services.