MIDAS  0.75
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
tinyxml2::StrPair Class Reference

#include <tinyxml2.h>

Public Types

enum  {
  NEEDS_ENTITY_PROCESSING = 0x01, NEEDS_NEWLINE_NORMALIZATION = 0x02, COLLAPSE_WHITESPACE = 0x04, TEXT_ELEMENT = NEEDS_ENTITY_PROCESSING | NEEDS_NEWLINE_NORMALIZATION,
  TEXT_ELEMENT_LEAVE_ENTITIES = NEEDS_NEWLINE_NORMALIZATION, ATTRIBUTE_NAME = 0, ATTRIBUTE_VALUE = NEEDS_ENTITY_PROCESSING | NEEDS_NEWLINE_NORMALIZATION, ATTRIBUTE_VALUE_LEAVE_ENTITIES = NEEDS_NEWLINE_NORMALIZATION,
  COMMENT = NEEDS_NEWLINE_NORMALIZATION
}
 

Public Member Functions

 StrPair ()
 
 ~StrPair ()
 
void Set (char *start, char *end, int flags)
 
const char * GetStr ()
 
bool Empty () const
 
void SetInternedStr (const char *str)
 
void SetStr (const char *str, int flags=0)
 
char * ParseText (char *in, const char *endTag, int strFlags)
 
char * ParseName (char *in)
 

Private Types

enum  { NEEDS_FLUSH = 0x100, NEEDS_DELETE = 0x200 }
 

Private Member Functions

void Reset ()
 
void CollapseWhitespace ()
 

Private Attributes

int _flags
 
char * _start
 
char * _end
 

Detailed Description

Definition at line 140 of file tinyxml2.h.

Member Enumeration Documentation

anonymous enum
Enumerator
NEEDS_ENTITY_PROCESSING 
NEEDS_NEWLINE_NORMALIZATION 
COLLAPSE_WHITESPACE 
TEXT_ELEMENT 
TEXT_ELEMENT_LEAVE_ENTITIES 
ATTRIBUTE_NAME 
ATTRIBUTE_VALUE 
ATTRIBUTE_VALUE_LEAVE_ENTITIES 
COMMENT 

Definition at line 143 of file tinyxml2.h.

anonymous enum
private
Enumerator
NEEDS_FLUSH 
NEEDS_DELETE 

Definition at line 186 of file tinyxml2.h.

Constructor & Destructor Documentation

tinyxml2::StrPair::StrPair ( )
inline

Definition at line 156 of file tinyxml2.h.

tinyxml2::StrPair::~StrPair ( )

Definition at line 83 of file tinyxml2.cpp.

References Reset().

Member Function Documentation

void tinyxml2::StrPair::CollapseWhitespace ( )
private

Definition at line 151 of file tinyxml2.cpp.

References _start, tinyxml2::XMLUtil::IsWhiteSpace(), and tinyxml2::XMLUtil::SkipWhiteSpace().

Referenced by GetStr().

bool tinyxml2::StrPair::Empty ( ) const
inline

Definition at line 168 of file tinyxml2.h.

References _end, and _start.

Referenced by tinyxml2::XMLNode::ParseDeep(), and tinyxml2::XMLElement::ParseDeep().

const char * tinyxml2::StrPair::GetStr ( )
char * tinyxml2::StrPair::ParseName ( char *  in)
char * tinyxml2::StrPair::ParseText ( char *  in,
const char *  endTag,
int  strFlags 
)
void tinyxml2::StrPair::Reset ( )
private

Definition at line 89 of file tinyxml2.cpp.

References _end, _flags, _start, and NEEDS_DELETE.

Referenced by Set(), SetInternedStr(), SetStr(), and ~StrPair().

void tinyxml2::StrPair::Set ( char *  start,
char *  end,
int  flags 
)
inline

Definition at line 159 of file tinyxml2.h.

References _end, _flags, _start, NEEDS_FLUSH, and Reset().

Referenced by ParseName(), and ParseText().

void tinyxml2::StrPair::SetInternedStr ( const char *  str)
inline

Definition at line 172 of file tinyxml2.h.

References _start, and Reset().

Referenced by tinyxml2::XMLNode::SetValue().

void tinyxml2::StrPair::SetStr ( const char *  str,
int  flags = 0 
)

Member Data Documentation

char* tinyxml2::StrPair::_end
private

Definition at line 194 of file tinyxml2.h.

Referenced by Empty(), GetStr(), Reset(), Set(), and SetStr().

int tinyxml2::StrPair::_flags
private

Definition at line 192 of file tinyxml2.h.

Referenced by GetStr(), Reset(), Set(), and SetStr().

char* tinyxml2::StrPair::_start
private

Definition at line 193 of file tinyxml2.h.

Referenced by CollapseWhitespace(), Empty(), GetStr(), Reset(), Set(), SetInternedStr(), and SetStr().


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