#include <XmlWriteContext.hxx>
Public Member Functions | |
| XmlWriteContext (std::ostream &targetStream) | |
| ~XmlWriteContext () | |
| std::ostream & | GetTarget () |
| template<typename T> | |
| void | InsertContent (const T &content) |
| void | OpenElement (const std::string &name) |
| void | CloseElement (const std::string &name) |
| template<typename T> | |
| void | InsertAttribute (const std::string &name, const T &content) |
| bool | LastWasAContent () |
| bool | ElementInserted () |
| unsigned int | CurrentLevel () |
| void | UseIndentation (bool useIt) |
Static Public Member Functions | |
| static XmlWriteContext & | CurrentContext () |
You can only have an instance of that class at a time. Instances of this class are created normally by as members of a root Scoped object like XmlDocument or XmlFragment. You can also instanciate this class directly whenever you want to use its primitives without intermediates.
Definition at line 43 of file XmlWriteContext.hxx.
| CLAM::XmlWriteContext::XmlWriteContext | ( | std::ostream & | targetStream | ) | [inline] |
| CLAM::XmlWriteContext::~XmlWriteContext | ( | ) | [inline] |
Definition at line 59 of file XmlWriteContext.hxx.
| static XmlWriteContext& CLAM::XmlWriteContext::CurrentContext | ( | ) | [inline, static] |
| std::ostream& CLAM::XmlWriteContext::GetTarget | ( | ) | [inline] |
Definition at line 70 of file XmlWriteContext.hxx.
| void CLAM::XmlWriteContext::InsertContent | ( | const T & | content | ) | [inline] |
| void CLAM::XmlWriteContext::OpenElement | ( | const std::string & | name | ) | [inline] |
| void CLAM::XmlWriteContext::CloseElement | ( | const std::string & | name | ) | [inline] |
| void CLAM::XmlWriteContext::InsertAttribute | ( | const std::string & | name, | |
| const T & | content | |||
| ) | [inline] |
Definition at line 109 of file XmlWriteContext.hxx.
References CLAM_ASSERT.
Referenced by CLAM::XmlAttribute::XmlAttribute().
| bool CLAM::XmlWriteContext::LastWasAContent | ( | ) | [inline] |
Definition at line 120 of file XmlWriteContext.hxx.
| bool CLAM::XmlWriteContext::ElementInserted | ( | ) | [inline] |
Definition at line 128 of file XmlWriteContext.hxx.
Definition at line 133 of file XmlWriteContext.hxx.
| void CLAM::XmlWriteContext::UseIndentation | ( | bool | useIt | ) | [inline] |
Definition at line 138 of file XmlWriteContext.hxx.
1.5.6