Inheritance diagram for Doomwad::WadEntryElement:

Many WadEntry subclasses are containers for records of various types. This class provides a common base class for those records.
Definition at line 238 of file wadentry.hpp.
Public Member Functions | |
| virtual size_t | getLength (void) const =0 throw () |
| Get the length of an element. | |
| virtual bool | read (const Lump &lump, Lump::size_type i)=0 throw () |
| Read this element from a Lump. | |
| virtual std::string | toString (void) const =0 throw () |
| Convert this element to a string. | |
| virtual bool | write (Lump &lump, Lump::size_type i) const =0 throw () |
| Write this element into a Lump. | |
|
|
Get the length of an element. Each element record type has a length. Some are fixed, in which case this function returns that length. Some records are variable-length, in which case this function returns zero.
Implemented in Doomwad::Animation, Doomwad::Linedef, Doomwad::HexenLinedef, Doomwad::Node, Doomwad::GLNode, Doomwad::Sector, Doomwad::Seg, Doomwad::GLSeg, Doomwad::Sidedef, Doomwad::Ssector, Doomwad::GLSsector, Doomwad::Switch, Doomwad::Thing, Doomwad::HexenThing, Doomwad::Vertex, and Doomwad::GLVertex. |
|
||||||||||||
|
Read this element from a Lump. Read one element from a Lump at the specified index.
Implemented in Doomwad::Animation, Doomwad::Linedef, Doomwad::HexenLinedef, Doomwad::Node, Doomwad::GLNode, Doomwad::Sector, Doomwad::Seg, Doomwad::GLSeg, Doomwad::Sidedef, Doomwad::Ssector, Doomwad::GLSsector, Doomwad::Switch, Doomwad::Thing, Doomwad::HexenThing, Doomwad::Vertex, and Doomwad::GLVertex. |
|
|
Convert this element to a string. The format of the string will vary from class to class, but every subclass must be able to format itself as a string. IMPORTANT: this string representation is not guaranteed to preserve all data. Reading back in is not supported. This function's goal is to make the object's state user-readable, not machine-readable.
Implemented in Doomwad::Animation, Doomwad::Linedef, Doomwad::HexenLinedef, Doomwad::Node, Doomwad::GLNode, Doomwad::Sector, Doomwad::Seg, Doomwad::GLSeg, Doomwad::Sidedef, Doomwad::Ssector, Doomwad::GLSsector, Doomwad::Switch, Doomwad::Thing, Doomwad::HexenThing, Doomwad::Vertex, and Doomwad::GLVertex. |
|
||||||||||||
|
Write this element into a Lump. Write one element into a Lump at the specified index.
Implemented in Doomwad::Animation, Doomwad::Linedef, Doomwad::HexenLinedef, Doomwad::Node, Doomwad::GLNode, Doomwad::Sector, Doomwad::Seg, Doomwad::GLSeg, Doomwad::Sidedef, Doomwad::Ssector, Doomwad::GLSsector, Doomwad::Switch, Doomwad::Thing, Doomwad::HexenThing, Doomwad::Vertex, and Doomwad::GLVertex. |
1.4.0