Abstract base class that Field inherits from.
#include <nrg_field.h>
Public Member Functions | |
| FieldBase (FieldContainer *container) | |
| Standard Constructor. | |
| FieldBase (const FieldBase ©) | |
| Copy Constructor. | |
| FieldBase & | operator= (const FieldBase ©) |
| Assignment operator. | |
| virtual size_t | readFromPacket (Packet &p)=0 |
Reads data from Packet p into this Field. | |
| virtual size_t | writeToPacket (Packet &p) const =0 |
Writes this Field into the Packet p. | |
| virtual void | shiftData ()=0 |
| Indicates a new Snapshot has begun and the Field should move data_next to data. | |
| virtual | ~FieldBase () |
| Standard Destructor. | |
| virtual bool | wasUpdated () const |
| Returns true if the Field was updated since the last update. | |
| virtual void | setUpdated (bool updated) |
| Force this Field's updated flag to be true or false. | |
| FieldBase * | getNextField () const |
| Returns the next Field in the FielcContainer's linked list, or nullptr at the end of the list. | |
Protected Attributes | |
| FieldContainer * | container |
| FieldBase * | next |
| bool | updated |