|
wavelength 1.0.0
|
Command that a recording saves and rebuilds through Factory<Command>. More...
#include <serializablecommand.h>


Public Member Functions | |
| SerializableCommand () | |
| Construct the command. | |
| bool | IsSerializable () override |
| Report that a recording saves the command. | |
| int | GetSerialId () override |
| Report the identifier a recording rebuilds the command by. | |
| Public Member Functions inherited from Command | |
| ~Command () override | |
| Release the command. | |
| virtual void | Execute ()=0 |
| Do the work. | |
| virtual void | Save (BinStream &stream) const |
| Write the command to a recording. | |
| virtual void | Load (BinStream &stream) |
| Read the command Save() writes. | |
| Public Member Functions inherited from Attachment | |
| Attachment () | |
| Construct an object with no reference. | |
| virtual | ~Attachment () |
| Release the object. | |
| void | AddRef () |
| Take one reference. | |
| void | Release () |
| Give back one reference and delete the object once the last one is gone. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from Attachment | |
| static void | ReleaseIfSet (Attachment *pAttachment) |
| Give back one reference to an object that may be null. | |
Command that a recording saves and rebuilds through Factory<Command>.
The RTTI includes the template with the identifier and the derived class as its arguments. Every member is inline. Each instance registers the derived class under the identifier during static initialisation.
| kId | The identifier. |
| T | The derived class, which has a constructor that takes a BinStream. |
|
inline |
Construct the command.
|
inlineoverridevirtual |
|
inlineoverridevirtual |