Internal and low level: a class to define each opcode and their arguments and read their data.
More...
|
| OpCode (int id, char const *nm, DataType type1=WP_NONE, DataType type2=WP_NONE, DataType type3=WP_NONE, DataType type4=WP_NONE, DataType type5=WP_NONE) |
| constructor More...
|
|
bool | readData (MWAWInputStream &input, std::vector< Value > &listValue) const |
| tries to read the data in the file More...
|
|
| OpCode (int id, char const *nm, DataType type1=WP_NONE, DataType type2=WP_NONE, DataType type3=WP_NONE, DataType type4=WP_NONE, DataType type5=WP_NONE) |
| constructor More...
|
|
virtual | ~OpCode () |
|
bool | readData (MWAWInputStream &input, std::vector< Value > &listValue) const |
| tries to read the data in the file More...
|
|
bool | computeSize (MWAWInputStream &input, int &sz) const |
| computes the size of the data More...
|
|
|
static bool | readRect (MWAWInputStream &input, DataType type, Box2i &res) |
| read a rectangles field More...
|
|
int | m_id |
| the opCode More...
|
|
std::string | m_name |
| the opCode name More...
|
|
std::vector< DataType > | m_types |
| the different argument types More...
|
|
static int | getSize (MWAWInputStream &input, DataType type) |
| returns the size of the next argument of type type. More...
|
|
static bool | readValue (MWAWInputStream &input, DataType type, Value &val) |
| reads a argument of type type, if successfull updates val. More...
|
|
static bool | readInt (MWAWInputStream &input, DataType type, int &res) |
| low level: reads a integer ( bytes or 2 bytes, signed or unsigned) More...
|
|
static bool | readColor (MWAWInputStream &input, DataType type, MWAWColor &col) |
| low level: reads a color argument More...
|
|
static bool | readCColor (MWAWInputStream &input, DataType type, MWAWColor &col) |
| low level: reads a color argument (version 2) More...
|
|
static bool | readPattern (MWAWInputStream &input, DataType type, int(&pat)[8]) |
| low level: reads a pattern argument More...
|
|
static bool | readPoint (MWAWInputStream &input, DataType type, Vec2i &res) |
| low level: reads a point argument More...
|
|
static bool | readPoly (MWAWInputStream &input, DataType type, Box2i &box, std::vector< Vec2i > &res) |
| low level: reads a polygon argument More...
|
|
static bool | readText (MWAWInputStream &input, DataType type, std::string &res) |
| low level: reads a string argument More...
|
|
Internal and low level: a class to define each opcode and their arguments and read their data.