OpenASIP  2.0
Public Member Functions | List of all members
Serializable Class Referenceabstract

#include <Serializable.hh>

Inheritance diagram for Serializable:
Inheritance graph
Collaboration diagram for Serializable:
Collaboration graph

Public Member Functions

virtual void loadState (const ObjectState *state)=0
 
virtual ObjectStatesaveState () const =0
 
virtual ~Serializable ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~Serializable()

virtual Serializable::~Serializable ( )
inlinevirtual

Definition at line 61 of file Serializable.hh.

61 {}

Member Function Documentation

◆ loadState()

virtual void Serializable::loadState ( const ObjectState state)
pure virtual

Loads the state of the object from the given ObjectState object.

Parameters
stateObjectState 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.

◆ saveState()

virtual ObjectState* Serializable::saveState ( ) const
pure virtual

The documentation for this class was generated from the following file: