YGP::ParseSkip Class Reference

Class to skip some characters (default from the current position in the stream). More...

Inherits YGP::ParseObject.

Inherited by YGP::CBParseSkip, and YGP::OFParseSkip< T >.

List of all members.

Public Member Functions

 ParseSkip (std::streamoff bytes, std::ios_base::seekdir seek=std::ios::cur)
 ParseSkip (const ParseSkip &other)
virtual ~ParseSkip ()
ParseSkipoperator= (const ParseSkip &other)
virtual int doParse (Xistream &stream, bool)
void setOffset (std::streamoff val)
void setOffset (std::streamoff val, std::ios_base::seekdir way)
std::streamoff getOffset () const
void setWay (std::ios_base::seekdir val)
std::ios_base::seekdir getWay () const


Detailed Description

Class to skip some characters (default from the current position in the stream).

Note:
The line-number of the stream is undefined after skipping!
See ParseObject for a general description of the parser.

Constructor & Destructor Documentation

YGP::ParseSkip::ParseSkip ( std::streamoff  bytes,
std::ios_base::seekdir  seek = std::ios::cur 
)

Construcutor.

Parameters:
bytes Number of bytes to skip
seek From where to seek in the search

YGP::ParseSkip::ParseSkip ( const ParseSkip other  ) 

Copy constructor.

Parameters:
other Object to copy

YGP::ParseSkip::~ParseSkip (  )  [virtual]

Destructor.


Member Function Documentation

int YGP::ParseSkip::doParse ( Xistream stream,
bool   
) [virtual]

"Parses" the object; the previously specified number of bytes are skipped (from the also set position).

Implements YGP::ParseObject.

std::streamoff YGP::ParseSkip::getOffset (  )  const [inline]

Returns the number of bytes which are skipped while parsing the object.

std::ios_base::seekdir YGP::ParseSkip::getWay (  )  const [inline]

Returns the way of the skip.

ParseSkip& YGP::ParseSkip::operator= ( const ParseSkip other  )  [inline]

Assignment operator.

void YGP::ParseSkip::setOffset ( std::streamoff  val,
std::ios_base::seekdir  way 
) [inline]

Sets the number of bytes which are skipped while parsing the object.

void YGP::ParseSkip::setOffset ( std::streamoff  val  )  [inline]

Sets the number of bytes which are skipped while parsing the object.

void YGP::ParseSkip::setWay ( std::ios_base::seekdir  val  )  [inline]

Sets the way of the skip.


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

YGP Version 0.9.31 - Generated on Wed Nov 18 11:25:27 2009 by doxygen 1.5.8