OpenASIP  2.0
Public Member Functions | List of all members
TCETools::Serializer Class Referenceabstract

#include <Serializer.hh>

Inheritance diagram for TCETools::Serializer:
Inheritance graph
Collaboration diagram for TCETools::Serializer:
Collaboration graph

Public Member Functions

virtual void writeState (const ObjectState *state)=0
 
virtual ObjectStatereadState ()=0
 
virtual ~Serializer ()
 

Detailed Description

All serializers must implement this interface.

Definition at line 45 of file Serializer.hh.

Constructor & Destructor Documentation

◆ ~Serializer()

virtual TCETools::Serializer::~Serializer ( )
inlinevirtual

Definition at line 63 of file Serializer.hh.

63 {}

Member Function Documentation

◆ readState()

virtual ObjectState* TCETools::Serializer::readState ( )
pure virtual

Creates an ObjectState tree according to the input.

Returns
The created ObjectState tree.
Exceptions
SerializerExceptionIf an error occurs while reading input.

Implemented in XMLSerializer, GUIOptionsSerializer, IPXactSerializer, ADFSerializer, OperationSerializer, IDF::IDFSerializer, OSEdOptionsSerializer, and BEMSerializer.

◆ writeState()

virtual void TCETools::Serializer::writeState ( const ObjectState state)
pure virtual

Serializes the given ObjectState tree.

Parameters
stateRoot of the ObjectState tree.
Exceptions
SerializerExceptionIf an error occurs while serializing.

Implemented in OperationSerializer, IDF::IDFSerializer, BEMSerializer, OSEdOptionsSerializer, XMLSerializer, GUIOptionsSerializer, ADFSerializer, and IPXactSerializer.


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