Go to the documentation of this file.
47 #ifndef CCXX_MISSING_H_
51 #ifndef CCXX_THREAD_H_
59 #ifdef CCXX_NAMESPACES
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
void invoke(const char *method)
Create XMLRPC "method" call in buffer.
virtual void endElement(const unsigned char *name)=0
Identify end of an element in the document.
virtual ~XMLRPC()
Destroy XMLRPC object.
System logging facilities abstraction.
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 endArray(void)
end an array.
void addParam(bool value)
Add bool param to XMLRPC request.
void addMember(const char *name, bool value)
Add bool member to a XMLRPC struct.
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.
void addMember(const char *name, const char *value)
Add a string member to XMLRPC struct.
virtual void startElement(const unsigned char *name, const unsigned char **attr)=0
Identify start of an element in the document.
bool send(const char *resource)
Complete buffer and send well formed XMLRPC request thru post.
Level
Definition: slog.h:123
void begArray(void)
Create an array.
#define __EXPORT
Definition: config.h:979
void addParam(const char *string)
Add a string paramater to XMLRPC request.
XMLRPC(size_t bufferSize=512)
Construct XMLRPC workspace.
void addParam(long value)
Add an integer paramater to XMLRPC request.
bool parse(const char *resource=NULL)
Parse a resource as a stream thru the virtual read method.
This class impliments a basic XML stream parser that can be used to examine an XML resource thru virt...
Definition: xml.h:74
This class impliments a core XMLRPC service without the underlying transports.
Definition: xml.h:185
void addMember(const char *name, long value)
Add an integer member to XMLRPC struct.
substitute functions which may be missing in target platform libc.
virtual int read(unsigned char *buffer, size_t len)=0
Read method to aquire data for the parser.
virtual void comment(const unsigned char *text, size_t len)
Virtual to receive embedded comments in an XML document being parsed.
void begStruct(void)
Start member struct.
virtual Slog::Level getLogging(void)
Get error logging level.
virtual void close(void)
May perform a close operation of an i/o source when the parser has completed operation.
virtual void characters(const unsigned char *text, size_t len)=0
Virtual to receive character text extracted from the document in the current element.
void response(bool fault)
Create XMLRPC "reply" to a method call.
Synchronization and threading services.
void endStruct(void)
Clear a struct.
virtual void endDocument(void)
Identify end of document event.