proj home

Files   Classes   Functions   Hierarchy  

stringtagiter Class Reference

Iterate over non-unique xml tags extracting the text. More...

#include <stringtagparser.h>

Inheritance diagram for stringtagiter:
Collaboration diagram for stringtagiter:

List of all members.

Public Member Functions

 stringtagiter (stringc &arg_, stringc &tag_)
 Pass text to parse and tag.
void reset ()
 arg or tag can be changed.
void operator++ ()
 Look for the next.
boolc operator! ()
 Is the iterator valid?
stringc operator() ()
 Extract text between tags.

Public Attributes

string tag
 The tag generally not unique.


Detailed Description

Iterate over non-unique xml tags extracting the text.

Definition at line 107 of file stringtagparser.h.


Constructor & Destructor Documentation

stringtagiter::stringtagiter ( stringc arg_,
stringc tag_ 
)

Pass text to parse and tag.

Definition at line 159 of file stringtagparser.cpp.

00160   : stringtagparser(arg_), tag(tag_) {}


Member Function Documentation

boolc stringtagiter::operator! (  )  [inline]

Is the iterator valid?

Definition at line 137 of file stringtagparser.h.

00138     { return res; }

stringc stringtagiter::operator() (  )  [inline]

Extract text between tags.

Definition at line 140 of file stringtagparser.h.

00141     { return data; }

void stringtagiter::operator++ (  ) 

Look for the next.

Definition at line 162 of file stringtagparser.cpp.

00163 { 
00164   extractbetweentag(dataunprocessed);
00165 }

void stringtagiter::reset (  ) 

arg or tag can be changed.

Definition at line 130 of file stringtagparser.cpp.

References stringtagparser::arg, and tag.

Referenced by stringtagparsertest::test03().

00131 {
00132   data = "";
00133   res=false;
00134   tagbeg = "<" + tag + ">";
00135   tagend = "</" + tag + ">";
00136 
00137   extractbetweentag(arg);
00138 }


Member Data Documentation

The tag generally not unique.

Definition at line 125 of file stringtagparser.h.

Referenced by reset().


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

Generated on Fri Mar 4 00:50:18 2011 for Chelton Evans Source by  doxygen 1.5.8