OpenADFortTk (basic)
xml::ostream Class Reference

#include <xmlostream.h>

Inheritance diagram for xml::ostream:
Collaboration diagram for xml::ostream:

List of all members.

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)
ostreamoperator= (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

Detailed Description

Definition at line 27 of file xmlostream.h.


Member Typedef Documentation

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.


Member Enumeration Documentation

enum xml::ostream::State [private]
Enumerator:
INIT 
FINI 
ELEM_OPENI 
ELEM_OPENA 
ELEM_OPEN 
STMASK 
ERR 
COMMENT 

Definition at line 139 of file xmlostream.h.


Constructor & Destructor Documentation

xml::ostream::ostream ( std::streambuf *  sb)

Definition at line 37 of file xmlostream.cxx.

References indentAmnt, indentStep, INIT, SetState(), and state.

Here is the call graph for this function:

xml::ostream::~ostream ( ) [virtual]

Definition at line 47 of file xmlostream.cxx.

xml::ostream::ostream ( const ostream x) [private]

Member Function Documentation

template<class T >
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<<().

Here is the call graph for this function:

void xml::ostream::BegAttr ( const char *  attr)

Definition at line 111 of file xmlostream.cxx.

References xml::EndAttr().

Referenced by Attr(), and xml::operator<<().

Here is the call graph for this function:

Definition at line 172 of file xmlostream.cxx.

References xml::EndAttrs(), and xml::Indent().

Referenced by xml::BegComment().

Here is the call graph for this function:

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<<().

Here is the call graph for this function:

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<<().

Here is the call graph for this function:

Definition at line 132 of file xmlostream.cxx.

Referenced by Attr(), and xml::EndAttr().

Definition at line 150 of file xmlostream.cxx.

References xml::EndAttr().

Referenced by xml::EndAttrs().

Here is the call graph for this function:

Definition at line 190 of file xmlostream.cxx.

Referenced by xml::EndComment().

Definition at line 73 of file xmlostream.cxx.

References xml::EndAttr(), xml::Indent(), and xml::IndentDecr().

Referenced by xml::EndElem().

Here is the call graph for this function:

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.

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.

References COMMENT, and state.

bool xml::ostream::IsStateError ( ) [inline, private]

Definition at line 162 of file xmlostream.h.

References ERR, and state.

ostream& xml::ostream::operator= ( const ostream x) [inline, private]

Definition at line 127 of file xmlostream.h.

void xml::ostream::ResetStateComment ( ) [inline, private]

Definition at line 167 of file xmlostream.h.

References COMMENT, and state.

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]

Definition at line 159 of file xmlostream.h.

References state, and STMASK.

Referenced by ostream().

void xml::ostream::SetStateComment ( ) [inline, private]

Definition at line 166 of file xmlostream.h.

References COMMENT, and state.

void xml::ostream::SetStateError ( ) [inline, private]

Definition at line 163 of file xmlostream.h.

References ERR, and state.


Member Data Documentation

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines