OpenASIP
2.0
|
#include <Serializable.hh>
Public Member Functions | |
virtual void | loadState (const ObjectState *state)=0 |
virtual ObjectState * | saveState () const =0 |
virtual | ~Serializable () |
Objects which are going to be serialized using XMLSerializer or any other serializer must implement this interface.
Definition at line 44 of file Serializable.hh.
|
inlinevirtual |
Definition at line 61 of file Serializable.hh.
|
pure virtual |
Loads the state of the object from the given ObjectState object.
state | ObjectState object from which (and the children of which) the state is loaded. |
Implemented in IDF::FUGenerated, TTAMachine::UnconditionalGuard, TTAMachine::RegisterGuard, Operation, TTAMachine::Machine, Operand, IDF::MachineImplementation, BinaryEncoding, SocketCodeTable, TTAMachine::Component, TTAMachine::PortGuard, TTAMachine::Bus, TTAMachine::FunctionUnit, TTAMachine::Socket, GuardField, MoveSlot, TTAMachine::ExecutionPipeline, KeyboardShortcut, TTAMachine::InstructionTemplate, UniversalMachine, TTAMachine::NullInstructionTemplate, SlotField, LImmDstRegisterField, TTAMachine::RegisterFile, TTAMachine::Segment, GUIOptions, TTAMachine::NullMachine, TTAMachine::NullRegisterFile, ImmediateControlField, TTAMachine::ControlUnit, TTAMachine::HWOperation, TTAMachine::AddressSpace, InstructionFormat, TTAMachine::Port, TTAMachine::Guard, TTAMachine::ImmediateUnit, SourceField, InstructionField, TTAMachine::OperationTriggeredFormat, IPXactModel, IDF::UnitImplementationLocation, TTAMachine::Bridge, TTAMachine::Unit, ToolbarButton, OperationTriggeredEncoding, TTAMachine::NullAddressSpace, TTAMachine::OperationTriggeredOperand, TTAMachine::BaseRegisterFile, ImmediateSlotField, TTAMachine::FUPort, SmartHWOperation, TTAMachine::SpecialRegisterPort, UniversalFUPort, OperationTriggeredField, UnboundedRegisterFile, UniversalFunctionUnit, TTAMachine::BaseFUPort, TTAMachine::ImmediateSlot, TTAMachine::RFPort, OSEdOptions, and ProDeOptions.
|
pure virtual |
Saves the objects state into an ObjectState object and maybe its child objects.
Implemented in IDF::FUGenerated, TTAMachine::UnconditionalGuard, TTAMachine::RegisterGuard, Operation, TTAMachine::Machine, Operand, IDF::MachineImplementation, BinaryEncoding, SocketCodeTable, TTAMachine::Component, TTAMachine::PortGuard, TTAMachine::Bus, TTAMachine::FunctionUnit, GuardField, TTAMachine::Socket, MoveSlot, TTAMachine::ExecutionPipeline, KeyboardShortcut, SlotField, TTAMachine::InstructionTemplate, TTAMachine::NullInstructionTemplate, GUIOptions, TTAMachine::NullMachine, TTAMachine::RegisterFile, TTAMachine::Segment, ImmediateControlField, TTAMachine::NullRegisterFile, TTAMachine::ControlUnit, TTAMachine::HWOperation, TTAMachine::AddressSpace, InstructionFormat, TTAMachine::Port, SourceField, TTAMachine::Guard, TTAMachine::ImmediateUnit, InstructionField, TTAMachine::OperationTriggeredFormat, IPXactModel, IDF::UnitImplementationLocation, LImmDstRegisterField, ToolbarButton, OperationTriggeredEncoding, TTAMachine::Bridge, TTAMachine::OperationTriggeredOperand, TTAMachine::Unit, TTAMachine::NullAddressSpace, TTAMachine::BaseRegisterFile, ImmediateSlotField, OperationTriggeredField, TTAMachine::FUPort, TTAMachine::SpecialRegisterPort, TTAMachine::BaseFUPort, TTAMachine::ImmediateSlot, ProDeOptions, OSEdOptions, TTAMachine::RFPort, and DestinationField.
Referenced by TTAMachine::Machine::saveComponentStates().