XMLBEANSXX  0.9.8
xmlbeansxx::XmlCursor Class Reference

#include <XmlCursor.h>

Inheritance diagram for xmlbeansxx::XmlCursor:
Collaboration diagram for xmlbeansxx::XmlCursor:

List of all members.

Public Types

enum  TokenType {
  INT_NONE = 0, INT_STARTDOC = 1, INT_ENDDOC = 2, INT_START = 3,
  INT_END = 4, INT_TEXT = 5, INT_ATTR = 6, INT_NAMESPACE = 7,
  INT_COMMENT = 8, INT_PROCINST = 9
}
typedef int posType
typedef std::stack< std::pair
< posType, ContentsPtr > > 
stackType

Public Member Functions

bool isNone () const
bool isStartdoc () const
bool isEnddoc () const
bool isStart () const
bool isEnd () const
bool isText () const
bool isAttr () const
bool isNamespace () const
bool isComment () const
bool isProcinst () const
bool isContainer () const
bool isFinish () const
bool isAnyAttr () const
 XmlCursor (const XmlObject &o)
QName getName () const
TokenType currentTokenType () const
XmlObject getObject ()
void beginElement (const QName &name)
int comparePosition (const XmlCursor &cursor) const
std::string getAttributeText (const QName &attrName) const
bool hasNextToken () const
bool hasPrevToken () const
int insertAttributeWithValue (const QName &name, const XmlAnySimpleType &o)
int insertAttributeWithValue (const QName &name, const std::string &value)
int insertElement (const QName &name, const XmlObject &o)
int insertDocument (const XmlObjectDocument &d)
int insertNamespace (std::string prefix, std::string namespaceURI)
void setName (const QName &name)
bool toChild (int index=1)
bool toChild (const QName &name, int index=1)
TokenType toEndToken ()
bool toFirstAttribute ()
bool toFirstChild ()
TokenType toFirstContentToken ()
bool toLastAttribute ()
bool toLastChild ()
bool toNextAttribute ()
bool toNextSibling (int index=1)
bool toNextSibling (const QName &name, int index=1)
TokenType toNextToken ()
TokenType toPrevToken ()
bool toParent ()
bool toPrevAttribute ()
bool toPrevSibling (int index=1)
void toStartDoc ()
std::string getTextValue ()
void setTextValue (const std::string &s)
void insertChars (const std::string &text)
bool removeXml ()
TokenType getAttributeType (const QName &name) const
TokenType getElementType (const QName &name) const
void remember ()
void restore ()
void rememberAndSwap (ContentsPtr c)
ElemDict::value_typegetPos () const
int countElems () const
int countAttrs () const

Public Attributes

stackType stack
posType pos

Member Typedef Documentation

typedef std::stack<std::pair<posType,ContentsPtr> > xmlbeansxx::XmlCursor::stackType

Member Enumeration Documentation

Enumerator:
INT_NONE 

No token.

INT_STARTDOC 

The start-document token.

INT_ENDDOC 

The end-document token.

INT_START 

The start-element token.

INT_END 

The end-element token.

INT_TEXT 

The text token.

INT_ATTR 

The attribute token.

INT_NAMESPACE 

The namespace declaration token.

INT_COMMENT 

The comment token. (not used)

INT_PROCINST 

The processing instruction token. (not used)


Constructor & Destructor Documentation


Member Function Documentation

int xmlbeansxx::XmlCursor::comparePosition ( const XmlCursor cursor) const
std::string xmlbeansxx::XmlCursor::getAttributeText ( const QName attrName) const
int xmlbeansxx::XmlCursor::insertAttributeWithValue ( const QName name,
const std::string &  value 
)
void xmlbeansxx::XmlCursor::insertChars ( const std::string &  text)
int xmlbeansxx::XmlCursor::insertElement ( const QName name,
const XmlObject o 
)
int xmlbeansxx::XmlCursor::insertNamespace ( std::string  prefix,
std::string  namespaceURI 
)
bool xmlbeansxx::XmlCursor::isAnyAttr ( ) const [inline]

True if is attribute or namespace declaration token

bool xmlbeansxx::XmlCursor::isAttr ( ) const [inline]

True if is attribute token.

bool xmlbeansxx::XmlCursor::isComment ( ) const [inline]

True if is comment token.

bool xmlbeansxx::XmlCursor::isContainer ( ) const [inline]

True if is start-document or start-element token

bool xmlbeansxx::XmlCursor::isEnd ( ) const [inline]

True if is end-element token.

bool xmlbeansxx::XmlCursor::isEnddoc ( ) const [inline]

True if is end-document token.

bool xmlbeansxx::XmlCursor::isFinish ( ) const [inline]

True if is end-document or end-element token

bool xmlbeansxx::XmlCursor::isNamespace ( ) const [inline]

True if is namespace declaration token.

bool xmlbeansxx::XmlCursor::isNone ( ) const [inline]

True if no token.

bool xmlbeansxx::XmlCursor::isProcinst ( ) const [inline]

True if is processing instruction token.

bool xmlbeansxx::XmlCursor::isStart ( ) const [inline]

True if is start-element token.

bool xmlbeansxx::XmlCursor::isStartdoc ( ) const [inline]

True if is start-document token.

bool xmlbeansxx::XmlCursor::isText ( ) const [inline]

True if is text token.

void xmlbeansxx::XmlCursor::setName ( const QName name)
void xmlbeansxx::XmlCursor::setTextValue ( const std::string &  s)
bool xmlbeansxx::XmlCursor::toChild ( int  index = 1)
bool xmlbeansxx::XmlCursor::toChild ( const QName name,
int  index = 1 
)
bool xmlbeansxx::XmlCursor::toNextSibling ( int  index = 1)
bool xmlbeansxx::XmlCursor::toNextSibling ( const QName name,
int  index = 1 
)
bool xmlbeansxx::XmlCursor::toPrevSibling ( int  index = 1)

Member Data Documentation


The documentation for this class was generated from the following files: