|
OpenADFortTk (basic)
|
#include <xmlostream.h>


Classes | |
| class | Exception |
Public Member Functions | |
| ostream (std::streambuf *sb) | |
| virtual | ~ostream () |
| void | BegElem (const char *etag) throw (Exception) |
| void | EndElem () |
| template<class T > | |
| void | Attr (const char *attr, const T &val) |
| void | BegAttr (const char *attr) |
| void | EndAttr () |
| void | EndAttrs () |
| void | BegComment () |
| void | EndComment () |
| void | Comment (const char *str) |
| void | Indent () |
| void | IndentIncr () |
| void | IndentDecr () |
| bool | IsIndent () |
| void | SetIndentAmnt (int amnt) |
| void | SetIndentStep (int step) |
| int | GetIndentAmnt () |
| int | GetIndentStep () |
Private Types | |
| enum | State { INIT = 0x00000001, FINI = 0x00000002, ELEM_OPENI = 0x00000004, ELEM_OPENA = 0x00000008, ELEM_OPEN = 0x00000010, STMASK = 0xff000000, ERR = 0x10000000, COMMENT = 0x20000000 } |
| typedef std::list< std::string > | ElemStack |
| typedef std::list< std::string > ::iterator | ElemStackIt |
| typedef std::list< std::string > ::const_iterator | ElemStackItC |
Private Member Functions | |
| ostream (const ostream &x) | |
| ostream & | operator= (const ostream &x) |
| void | EndElemUpdateState () |
| bool | IsState (State st) |
| void | SetState (State st) |
| bool | IsStateError () |
| void | SetStateError () |
| bool | IsStateComment () |
| void | SetStateComment () |
| void | ResetStateComment () |
Private Attributes | |
| ElemStack | elemstack |
| unsigned int | state |
| int | indentAmnt |
| int | indentStep |
Definition at line 27 of file xmlostream.h.
typedef std::list<std::string> xml::ostream::ElemStack [private] |
Definition at line 135 of file xmlostream.h.
typedef std::list<std::string>::iterator xml::ostream::ElemStackIt [private] |
Definition at line 136 of file xmlostream.h.
typedef std::list<std::string>::const_iterator xml::ostream::ElemStackItC [private] |
Definition at line 137 of file xmlostream.h.
enum xml::ostream::State [private] |
Definition at line 139 of file xmlostream.h.
| xml::ostream::ostream | ( | std::streambuf * | sb | ) |
Definition at line 37 of file xmlostream.cxx.
References indentAmnt, indentStep, INIT, SetState(), and state.

| xml::ostream::~ostream | ( | ) | [virtual] |
Definition at line 47 of file xmlostream.cxx.
| xml::ostream::ostream | ( | const ostream & | x | ) | [private] |
| void xml::ostream::Attr | ( | const char * | attr, |
| const T & | val | ||
| ) |
Definition at line 186 of file xmlostream.h.
References BegAttr(), and EndAttr().
Referenced by xml::operator<<().

| void xml::ostream::BegAttr | ( | const char * | attr | ) |
Definition at line 111 of file xmlostream.cxx.
References xml::EndAttr().
Referenced by Attr(), and xml::operator<<().

| void xml::ostream::BegComment | ( | ) |
Definition at line 172 of file xmlostream.cxx.
References xml::EndAttrs(), and xml::Indent().
Referenced by xml::BegComment().

| void xml::ostream::BegElem | ( | const char * | etag | ) | throw (Exception) |
Definition at line 52 of file xmlostream.cxx.
References xml::EndAttrs(), xml::Indent(), and xml::IndentIncr().
Referenced by xml::operator<<().

| void xml::ostream::Comment | ( | const char * | str | ) |
Definition at line 204 of file xmlostream.cxx.
References xml::BegComment(), and xml::EndComment().
Referenced by xml::operator<<().

| void xml::ostream::EndAttr | ( | ) |
Definition at line 132 of file xmlostream.cxx.
Referenced by Attr(), and xml::EndAttr().
| void xml::ostream::EndAttrs | ( | ) |
Definition at line 150 of file xmlostream.cxx.
References xml::EndAttr().
Referenced by xml::EndAttrs().

| void xml::ostream::EndComment | ( | ) |
Definition at line 190 of file xmlostream.cxx.
Referenced by xml::EndComment().
| void xml::ostream::EndElem | ( | ) |
Definition at line 73 of file xmlostream.cxx.
References xml::EndAttr(), xml::Indent(), and xml::IndentDecr().
Referenced by xml::EndElem().

| void xml::ostream::EndElemUpdateState | ( | ) | [private] |
| int xml::ostream::GetIndentAmnt | ( | ) | [inline] |
Definition at line 117 of file xmlostream.h.
References indentAmnt.
| int xml::ostream::GetIndentStep | ( | ) | [inline] |
Definition at line 118 of file xmlostream.h.
References indentStep.
| void xml::ostream::Indent | ( | ) |
Definition at line 216 of file xmlostream.cxx.
Referenced by xml::Indent().
| void xml::ostream::IndentDecr | ( | ) | [inline] |
Definition at line 112 of file xmlostream.h.
References indentAmnt, and indentStep.
Referenced by xml::IndentDecr().
| void xml::ostream::IndentIncr | ( | ) | [inline] |
Definition at line 111 of file xmlostream.h.
References indentAmnt, and indentStep.
Referenced by xml::IndentIncr().
| bool xml::ostream::IsIndent | ( | ) | [inline] |
Definition at line 113 of file xmlostream.h.
References indentAmnt, and indentStep.
| bool xml::ostream::IsState | ( | State | st | ) | [inline, private] |
Definition at line 158 of file xmlostream.h.
References state.
| bool xml::ostream::IsStateComment | ( | ) | [inline, private] |
Definition at line 165 of file xmlostream.h.
| bool xml::ostream::IsStateError | ( | ) | [inline, private] |
Definition at line 162 of file xmlostream.h.
Definition at line 127 of file xmlostream.h.
| void xml::ostream::ResetStateComment | ( | ) | [inline, private] |
Definition at line 167 of file xmlostream.h.
| void xml::ostream::SetIndentAmnt | ( | int | amnt | ) | [inline] |
Definition at line 115 of file xmlostream.h.
References indentAmnt.
Referenced by xml::operator<<().
| void xml::ostream::SetIndentStep | ( | int | step | ) | [inline] |
Definition at line 116 of file xmlostream.h.
References indentStep.
Referenced by xml::operator<<().
| void xml::ostream::SetState | ( | State | st | ) | [inline, private] |
| void xml::ostream::SetStateComment | ( | ) | [inline, private] |
Definition at line 166 of file xmlostream.h.
| void xml::ostream::SetStateError | ( | ) | [inline, private] |
Definition at line 163 of file xmlostream.h.
ElemStack xml::ostream::elemstack [private] |
Definition at line 170 of file xmlostream.h.
int xml::ostream::indentAmnt [private] |
Definition at line 173 of file xmlostream.h.
Referenced by GetIndentAmnt(), IndentDecr(), IndentIncr(), IsIndent(), ostream(), and SetIndentAmnt().
int xml::ostream::indentStep [private] |
Definition at line 174 of file xmlostream.h.
Referenced by GetIndentStep(), IndentDecr(), IndentIncr(), IsIndent(), ostream(), and SetIndentStep().
unsigned int xml::ostream::state [private] |
Definition at line 171 of file xmlostream.h.
Referenced by IsState(), IsStateComment(), IsStateError(), ostream(), ResetStateComment(), SetState(), SetStateComment(), and SetStateError().