Inherits YGP::ParseObject.
Inherited by YGP::CBParseSkip, and YGP::OFParseSkip< T >.
Public Member Functions | |
ParseSkip (std::streamoff bytes, std::ios_base::seekdir seek=std::ios::cur) | |
ParseSkip (const ParseSkip &other) | |
virtual | ~ParseSkip () |
ParseSkip & | operator= (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 |
YGP::ParseSkip::ParseSkip | ( | std::streamoff | bytes, | |
std::ios_base::seekdir | seek = std::ios::cur | |||
) |
Construcutor.
bytes | Number of bytes to skip | |
seek | From where to seek in the search |
YGP::ParseSkip::ParseSkip | ( | const ParseSkip & | other | ) |
Copy constructor.
other | Object to copy |
YGP::ParseSkip::~ParseSkip | ( | ) | [virtual] |
Destructor.
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.
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.