#include "CTBxmlIStream.hxx"
Collaboration diagram for CTBxmlToken:
Public Types | |
enum | type { invalid = -1, fail, eof, data, starttag, endtag, emptytag, comment, xml, pi } |
Public Methods | |
CTBxmlToken (int i_type=CTBxmlToken::invalid) | |
CTBxmlToken (const CTBxmlToken &rhs) | |
CTBxmlToken (CTBxmlToken &rhs, bool b_grab) | |
~CTBxmlToken () | |
int | Type () const |
const CTBstring & | Text () const |
const CTBstring & | Name () const |
const CTBstring & | Value () const |
CTBint | NAttribute () const |
const CTBstring & | AttributeName (CTBint i_ind) const |
const CTBstring & | AttributeValue (CTBint i_ind) const |
void | Clear () |
void | Grab (CTBxmlToken &rhs) |
void | ToStream (ostream &os) const |
void | Dump (int i_indent=0, ostream &os=cout, const char *p_text=0) const |
bool | operator! () const |
operator void * () const | |
CTBxmlToken & | operator= (const CTBxmlToken &rhs) |
Private Types | |
typedef CTBpair< CTBstring, CTBstring > | pair_ss_t |
Private Attributes | |
int | mi_type |
CTBstring | m_text |
CTBstring | m_name |
CTBstring | m_value |
CTBvector< pair_ss_t > | m_attribute |
Friends | |
class | CTBxmlIStream |
Related Functions | |
(Note that these are not member functions.) | |
ostream & | operator<< (ostream &os, const CTBxmlToken &obj) |
Definition at line 25 of file CTBxmlIStream.hxx.
|
Definition at line 71 of file CTBxmlIStream.hxx. Referenced by CTBxmlIStream::GetTagFromLexer().
|
|
Token type.
Definition at line 30 of file CTBxmlIStream.hxx. |
|
Construct with type (also default).
Definition at line 39 of file CTBxmlIStream.cxx. |
|
Copy constructor.
Definition at line 52 of file CTBxmlIStream.cxx. |
|
Definition at line 65 of file CTBxmlIStream.cxx. |
|
Destructor.
Definition at line 79 of file CTBxmlIStream.cxx. |
|
Returns token type.
Definition at line 17 of file CTBxmlIStream.icc. Referenced by CTBattrList::FromXStream(), and CTBxmlIStream::NextNotEnd().
|
|
Returns raw text representing the token in input stream.
Definition at line 25 of file CTBxmlIStream.icc. |
|
Returns tag name.
Definition at line 33 of file CTBxmlIStream.icc. Referenced by CTBattrList::FromXStream().
|
|
Returns tag or data value.
Definition at line 41 of file CTBxmlIStream.icc. |
|
Returns number of tag attributes.
Definition at line 49 of file CTBxmlIStream.icc. |
|
Returns name of first tag attribute.
Definition at line 57 of file CTBxmlIStream.icc. |
|
Returns value of first tag attribute.
Definition at line 65 of file CTBxmlIStream.icc. |
|
Reset token, is in invalid state afterwards.
Definition at line 87 of file CTBxmlIStream.cxx. Referenced by CTBxmlIStream::Close(), and CTBxmlIStream::Get().
|
|
Grab resources.
Definition at line 102 of file CTBxmlIStream.cxx. Referenced by CTBxmlIStream::Get(), and CTBxmlIStream::Unget().
|
|
ostream insertion.
Definition at line 118 of file CTBxmlIStream.cxx. Referenced by operator<<().
|
|
Dump.
Definition at line 174 of file CTBxmlIStream.cxx. Referenced by CTBxmlIStream::Dump().
|
|
Negation operator, returns
Definition at line 73 of file CTBxmlIStream.icc. |
|
Returns non-zero pointer if token is valid.
Definition at line 81 of file CTBxmlIStream.icc. |
|
Assignment.
Definition at line 194 of file CTBxmlIStream.cxx. |
|
Definition at line 27 of file CTBxmlIStream.hxx. |
|
ostream insertion operator.
Definition at line 92 of file CTBxmlIStream.icc. |
|
token type.
Definition at line 73 of file CTBxmlIStream.hxx. |
|
raw text.
Definition at line 74 of file CTBxmlIStream.hxx. |
|
tag name.
Definition at line 75 of file CTBxmlIStream.hxx. |
|
tag or data value.
Definition at line 76 of file CTBxmlIStream.hxx. |
|
attribute key-value pairs.
Definition at line 77 of file CTBxmlIStream.hxx. |