score::Command Class Referenceabstract
Inheritance diagram for score::Command:
Detailed Description
The Command class.
The base of the command system in score It is timestamped, because we can then compare between clients.
Maybe the score_plugin_network should replace the Command by a TimestampedCommand instead ? What if other plug-ins also want to add functionality ?
Note: for mergeWith put two timestamps, one for the initial command (5 sec) and one for each new command merged.
Commands are serializable / deserializable.
Public Member Functions | |
virtual void | undo (const score::DocumentContext &ctx) const =0 |
virtual void | redo (const score::DocumentContext &ctx) const =0 |
virtual const CommandGroupKey & | parentKey () const noexcept=0 |
virtual const CommandKey & | key () const noexcept=0 |
QByteArray | serialize () const |
void | deserialize (const QByteArray &) |
virtual QString | description () const =0 |
Protected Member Functions | |
virtual void | serializeImpl (DataStreamInput &) const =0 |
virtual void | deserializeImpl (DataStreamOutput &)=0 |
The documentation for this class was generated from the following files:
- Command.hpp
- Command.cpp