Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BlinkLed HTTPClient EthernetInterface FatFileSystemCpp MSCFileSystem spxml mbed-rtos mbed
Fork of mpod_nhk_english by
spxml/spcanonxml.hpp
- Committer:
- togayan
- Date:
- 2012-09-01
- Revision:
- 7:ad9fcf0e1bc5
- Parent:
- 4:7dae52cf560f
File content as of revision 7:ad9fcf0e1bc5:
/*
* Copyright 2007 Stephen Liu
* For license terms, see the file COPYING along with this library.
*/
#ifndef __spcanonxml_hpp__
#define __spcanonxml_hpp__
class SP_XmlNode;
class SP_XmlStringBuffer;
class SP_XmlDocDeclNode;
class SP_XmlDocTypeNode;
/// XML Canonical, defined by James Clark.
class SP_CanonXmlBuffer {
public:
SP_CanonXmlBuffer( const SP_XmlNode * node );
~SP_CanonXmlBuffer();
const char * getBuffer() const;
int getSize() const;
private:
SP_CanonXmlBuffer( SP_CanonXmlBuffer & );
SP_CanonXmlBuffer & operator=( SP_CanonXmlBuffer & );
static void dump( const SP_XmlNode * node,
SP_XmlStringBuffer * buffer );
static void dumpElement( const SP_XmlNode * node,
SP_XmlStringBuffer * buffer );
static void canonEncode( const char * value,
SP_XmlStringBuffer * buffer );
SP_XmlStringBuffer * mBuffer;
};
#endif
