Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

TagParser Class Reference

#include <TagParser.h>

List of all members.

Public Member Functions

 TagParser ()
virtual ~TagParser ()
streamoff lookupStart () const
streamoff posStartTag () const
const std::string & startTag () const
streamoff posEndTag () const
const std::string & endTag () const
streamoff posDataStart () const
streamoff posDataEnd () const
unsigned dataLength () const
unsigned dataLines () const
const std::list< std::string > & data () const
bool lookupTag (istream &stream_fr, const std::string &stag_tr="")
bool parseData (istream &stream_fr, const std::string &etag_tr)

Static Public Member Functions

bool retrieveData (istream &stream_fr, streamoff startData_ir, streamoff endData_ir, std::string &data_tr)
bool retrieveData (istream &stream_fr, streamoff startData_ir, streamoff endData_ir, std::list< std::string > &data_Vtr)
std::string data2string (const std::list< std::string > &data_Vtr)
vector< std::string > split2words (const std::string &line_tr, const std::string &sepchars_tr="\t\n")

Static Public Attributes

const streamoff nopos = streamoff(-1)

Private Member Functions

void _reset ()
void _datareset ()

Static Private Member Functions

streamoff readLine (istream &stream_fr, std::string &cline_tr)
bool tagOnLine (const std::string &cline_tr, std::string &tag_tr, std::string::size_type &delim_ir)

Private Attributes

streamoff lookupStart_i
streamoff startTag_i
streamoff startData_i
streamoff endData_i
streamoff endTag_i
std::string startTag_t
std::string endTag_t
std::list< std::string > data_Vt

Static Private Attributes

const unsigned bufferLen_i = 1024
char buffer_ac []


Constructor & Destructor Documentation

TagParser::TagParser  ) 
 

TagParser::~TagParser  )  [virtual]
 


Member Function Documentation

void TagParser::_datareset  )  [inline, private]
 

void TagParser::_reset  )  [inline, private]
 

const std::list<std::string>& TagParser::data  )  const [inline]
 

string TagParser::data2string const std::list< std::string > &  data_Vtr  )  [static]
 

unsigned TagParser::dataLength  )  const [inline]
 

unsigned TagParser::dataLines  )  const [inline]
 

const std::string& TagParser::endTag  )  const [inline]
 

streamoff TagParser::lookupStart  )  const [inline]
 

bool TagParser::lookupTag istream &  stream_fr,
const std::string &  stag_tr = ""
 

bool TagParser::parseData istream &  stream_fr,
const std::string &  etag_tr
 

streamoff TagParser::posDataEnd  )  const [inline]
 

streamoff TagParser::posDataStart  )  const [inline]
 

streamoff TagParser::posEndTag  )  const [inline]
 

streamoff TagParser::posStartTag  )  const [inline]
 

streamoff TagParser::readLine istream &  stream_fr,
std::string &  cline_tr
[inline, static, private]
 

bool TagParser::retrieveData istream &  stream_fr,
streamoff  startData_ir,
streamoff  endData_ir,
std::list< std::string > &  data_Vtr
[static]
 

bool TagParser::retrieveData istream &  stream_fr,
streamoff  startData_ir,
streamoff  endData_ir,
std::string &  data_tr
[static]
 

vector< string > TagParser::split2words const std::string &  line_tr,
const std::string &  sepchars_tr = "\t\n"
[static]
 

const std::string& TagParser::startTag  )  const [inline]
 

bool TagParser::tagOnLine const std::string &  cline_tr,
std::string &  tag_tr,
std::string::size_type &  delim_ir
[inline, static, private]
 


Member Data Documentation

char TagParser::buffer_ac [static, private]
 

const unsigned TagParser::bufferLen_i = 1024 [static, private]
 

std::list<std::string> TagParser::data_Vt [private]
 

streamoff TagParser::endData_i [private]
 

streamoff TagParser::endTag_i [private]
 

std::string TagParser::endTag_t [private]
 

streamoff TagParser::lookupStart_i [private]
 

const streamoff TagParser::nopos = streamoff(-1) [static]
 

streamoff TagParser::startData_i [private]
 

streamoff TagParser::startTag_i [private]
 

std::string TagParser::startTag_t [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Feb 23 23:56:11 2006 for liby2util by doxygen 1.3.6