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

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

Static Public Attributes

static const streamoff nopos

Private Member Functions

void _reset ()
void _datareset ()

Static Private Member Functions

static streamoff readLine (istream &stream_fr, std::string &cline_tr)
static 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

static const unsigned bufferLen_i
static char buffer_ac []


Constructor & Destructor Documentation

TagParser::TagParser (  ) 

virtual TagParser::~TagParser (  )  [virtual]


Member Function Documentation

void TagParser::_reset (  )  [private]

void TagParser::_datareset (  )  [private]

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

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

streamoff TagParser::lookupStart (  )  const [inline]

streamoff TagParser::posStartTag (  )  const [inline]

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

streamoff TagParser::posEndTag (  )  const [inline]

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

streamoff TagParser::posDataStart (  )  const [inline]

streamoff TagParser::posDataEnd (  )  const [inline]

unsigned TagParser::dataLength (  )  const [inline]

unsigned TagParser::dataLines (  )  const [inline]

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

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

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

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

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

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

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


Member Data Documentation

const unsigned TagParser::bufferLen_i [static, private]

char TagParser::buffer_ac[] [static, private]

streamoff TagParser::lookupStart_i [private]

streamoff TagParser::startTag_i [private]

streamoff TagParser::startData_i [private]

streamoff TagParser::endData_i [private]

streamoff TagParser::endTag_i [private]

std::string TagParser::startTag_t [private]

std::string TagParser::endTag_t [private]

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

const streamoff TagParser::nopos [static]


The documentation for this class was generated from the following file:
Generated on Fri Sep 21 22:35:03 2007 for liby2util by  doxygen 1.5.3