OpenASIP  2.0
Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
IPXactSerializer Class Reference

#include <IPXactSerializer.hh>

Inheritance diagram for IPXactSerializer:
Inheritance graph
Collaboration diagram for IPXactSerializer:
Collaboration graph

Public Member Functions

 IPXactSerializer ()
 
virtual ~IPXactSerializer ()
 
virtual void writeState (const ObjectState *ipXactState)
 
void writeIPXactModel (const IPXactModel &model)
 
- Public Member Functions inherited from XMLSerializer
 XMLSerializer ()
 
virtual ~XMLSerializer ()
 
void setSourceFile (const std::string &fileName)
 
void setSourceString (const std::string &source)
 
void setDestinationFile (const std::string &fileName)
 
void setDestinationString (std::string &destination)
 
void setSchemaFile (const std::string &fileName)
 
void setUseSchema (bool useSchema)
 
void setXMLNamespace (std::string nsUri)
 
- Public Member Functions inherited from TCETools::Serializer
virtual ~Serializer ()
 

Private Member Functions

 IPXactSerializer (const IPXactSerializer &)
 Copying forbidden. More...
 
IPXactSerializeroperator= (const IPXactSerializer &)
 Assingment forbidden. More...
 
ObjectStatereadState ()
 Reading is not (yet) implemented. More...
 

Static Private Attributes

static const TCEString SPIRIT_NS_URI
 

Additional Inherited Members

- Protected Member Functions inherited from XMLSerializer
std::string sourceFile () const
 

Detailed Description

Definition at line 40 of file IPXactSerializer.hh.

Constructor & Destructor Documentation

◆ IPXactSerializer() [1/2]

IPXactSerializer::IPXactSerializer ( )

Definition at line 40 of file IPXactSerializer.cc.

40  : XMLSerializer() {
41 
42  setUseSchema(false);
43 }

References XMLSerializer::setUseSchema().

Here is the call graph for this function:

◆ ~IPXactSerializer()

IPXactSerializer::~IPXactSerializer ( )
virtual

Definition at line 46 of file IPXactSerializer.cc.

46  {
47 }

◆ IPXactSerializer() [2/2]

IPXactSerializer::IPXactSerializer ( const IPXactSerializer )
private

Copying forbidden.

Member Function Documentation

◆ operator=()

IPXactSerializer& IPXactSerializer::operator= ( const IPXactSerializer )
private

Assingment forbidden.

◆ readState()

ObjectState * IPXactSerializer::readState ( )
privatevirtual

Reading is not (yet) implemented.

Reimplemented from XMLSerializer.

Definition at line 64 of file IPXactSerializer.cc.

64  {
65  return NULL;
66 }

◆ writeIPXactModel()

void IPXactSerializer::writeIPXactModel ( const IPXactModel model)

Definition at line 56 of file IPXactSerializer.cc.

56  {
57 
58  ObjectState* omState = model.saveState();
59  writeState(omState);
60  delete omState;
61 }

References IPXactModel::saveState(), and writeState().

Referenced by IPXactFileGenerator::writeProjectFiles().

Here is the call graph for this function:

◆ writeState()

void IPXactSerializer::writeState ( const ObjectState state)
virtual

Writes the given object state to a file or string.

File is written if a destiantion file is set with setDestinationFile(). String is written if a destination string is set with setDestinationString(). Only the last file/string set will be written.

Reimplemented from XMLSerializer.

Definition at line 50 of file IPXactSerializer.cc.

References XMLSerializer::setXMLNamespace(), SPIRIT_NS_URI, and XMLSerializer::writeState().

Referenced by writeIPXactModel().

Here is the call graph for this function:

Member Data Documentation

◆ SPIRIT_NS_URI

const TCEString IPXactSerializer::SPIRIT_NS_URI
staticprivate
Initial value:
=
"http://www.spiritconsortium.org/XMLSchema/SPIRIT/1.5"

Definition at line 59 of file IPXactSerializer.hh.

Referenced by writeState().


The documentation for this class was generated from the following files:
XMLSerializer::XMLSerializer
XMLSerializer()
Definition: XMLSerializer.cc:78
IPXactSerializer::writeState
virtual void writeState(const ObjectState *ipXactState)
Definition: IPXactSerializer.cc:50
ObjectState
Definition: ObjectState.hh:59
XMLSerializer::setUseSchema
void setUseSchema(bool useSchema)
Definition: XMLSerializer.cc:179
IPXactSerializer::SPIRIT_NS_URI
static const TCEString SPIRIT_NS_URI
Definition: IPXactSerializer.hh:59
XMLSerializer::setXMLNamespace
void setXMLNamespace(std::string nsUri)
Definition: XMLSerializer.cc:188
XMLSerializer::writeState
virtual void writeState(const ObjectState *rootState)
Definition: XMLSerializer.cc:219
IPXactModel::saveState
virtual ObjectState * saveState() const
Definition: IPXactModel.cc:178