Internal: a struct used to read some field. More...
#include <MRWParser.hxx>
Public Member Functions | |
MRWStruct () | |
constructor | |
int | numValues () const |
returns the number of values | |
bool | isBasic () const |
returns true if this corresponds to a simple container | |
long | value (int i) const |
returns the ith value (or 0 if it does not exists ) | |
Public Attributes | |
long | m_filePos |
the file position where the field description begin | |
MWAWEntry | m_pos |
the file data position (for type=0 data ) | |
int | m_type |
the data type | |
std::vector< long > | m_data |
the data block | |
Friends | |
std::ostream & | operator<< (std::ostream &o, MRWStruct const &dt) |
operator<< |
Internal: a struct used to read some field.
MRWStruct::MRWStruct | ( | ) | [inline] |
constructor
bool MRWStruct::isBasic | ( | ) | const [inline] |
returns true if this corresponds to a simple container
Referenced by MRWParser::readDocInfo(), MRWText::readFonts(), MRWGraph::readPostscript(), MRWText::readRulers(), MRWText::readTextStruct(), MRWGraph::readToken(), MRWParser::readZone13(), MRWParser::readZoneb(), MRWParser::readZonec(), MRWParser::readZoneDim(), and MRWParser::readZoneHeader().
int MRWStruct::numValues | ( | ) | const [inline] |
returns the number of values
Referenced by MRWText::readFontNames().
long MRWStruct::value | ( | int | i | ) | const |
returns the ith value (or 0 if it does not exists )
Referenced by MRWParser::readDocInfo(), MRWText::readFontNames(), MRWText::readFonts(), MRWGraph::readPostscript(), MRWText::readRulers(), MRWText::readTextStruct(), MRWGraph::readToken(), MRWParser::readZone13(), MRWParser::readZoneb(), MRWParser::readZonec(), MRWParser::readZoneDim(), and MRWParser::readZoneHeader().
std::ostream& operator<< | ( | std::ostream & | o, |
MRWStruct const & | dt | ||
) | [friend] |
operator<<
std::vector<long> MRWStruct::m_data |
the data block
Referenced by MRWParser::decodeZone(), isBasic(), numValues(), operator<<(), MRWParser::readSeparator(), and value().
long MRWStruct::m_filePos |
the file position where the field description begin
Referenced by MRWParser::decodeZone(), and MRWParser::readZone().
the file data position (for type=0 data )
Referenced by MRWParser::decodeZone(), operator<<(), MRWText::readFontNames(), MRWGraph::readPostscript(), MRWText::readRulers(), MRWText::readStyleNames(), MRWGraph::readToken(), MRWGraph::readTokenBlock0(), MRWText::readZone(), and MRWParser::readZone13().