All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::fe::serialize::AbstractOp Class Reference

#include <AbstractOp.h>

Inheritance diagram for te::fe::serialize::AbstractOp:
te::common::Singleton< AbstractOp >

Public Types

typedef std::map< std::string,
AbstractOpFnctSerializeType
AbstractOpFnctIdxType
 
typedef std::pair
< AbstractOpReadFnctType,
AbstractOpWriteFnctType
AbstractOpFnctSerializeType
 
typedef boost::function
< te::fe::AbstractOp *(const
char *opName, te::xml::Reader &)> 
AbstractOpReadFnctType
 
typedef boost::function< void(const
te::fe::AbstractOp
*, te::xml::AbstractWriter &)> 
AbstractOpWriteFnctType
 

Public Member Functions

te::fe::AbstractOpread (te::xml::Reader &reader) const
 
void reg (const std::string &opName, const AbstractOpFnctSerializeType &fncts)
 
void write (const te::fe::AbstractOp *op, te::xml::AbstractWriter &writer) const
 
 ~AbstractOp ()
 

Static Public Member Functions

static AbstractOpgetInstance ()
 It returns a reference to the singleton instance. More...
 

Protected Member Functions

 AbstractOp ()
 

Private Attributes

AbstractOpFnctIdxType m_fncts
 
std::map< std::string, const
char * > 
m_names
 Auxiliary map of string to te::fe::Global names pointers. More...
 

Friends

class te::common::Singleton< AbstractOp >
 

Detailed Description

Definition at line 54 of file AbstractOp.h.

Member Typedef Documentation

Definition at line 63 of file AbstractOp.h.

Definition at line 60 of file AbstractOp.h.

Definition at line 61 of file AbstractOp.h.

Constructor & Destructor Documentation

te::fe::serialize::AbstractOp::~AbstractOp ( )

Definition at line 129 of file AbstractOp.cpp.

Member Function Documentation

static AbstractOp & te::common::Singleton< AbstractOp >::getInstance ( )
staticinherited

It returns a reference to the singleton instance.

Returns
A reference to the singleton instance.

Referenced by BinaryLogicOpReader(), BinaryLogicOpWriter(), te::fe::serialize::ReadFilter(), UnaryLogicOpReader(), and UnaryLogicOpWriter().

te::fe::AbstractOp * te::fe::serialize::AbstractOp::read ( te::xml::Reader reader) const

Definition at line 101 of file AbstractOp.cpp.

References te::xml::Reader::getElementLocalName(), and TE_TR.

void te::fe::serialize::AbstractOp::reg ( const std::string &  opName,
const AbstractOpFnctSerializeType fncts 
)

Definition at line 96 of file AbstractOp.cpp.

References m_fncts.

void te::fe::serialize::AbstractOp::write ( const te::fe::AbstractOp op,
te::xml::AbstractWriter writer 
) const

Definition at line 115 of file AbstractOp.cpp.

References te::fe::AbstractOp::getName(), and TE_TR.

Referenced by BinaryLogicOpWriter(), and UnaryLogicOpWriter().

Friends And Related Function Documentation

friend class te::common::Singleton< AbstractOp >
friend

Definition at line 56 of file AbstractOp.h.

Member Data Documentation

AbstractOpFnctIdxType te::fe::serialize::AbstractOp::m_fncts
private

Definition at line 79 of file AbstractOp.h.

Referenced by reg().

std::map<std::string, const char*> te::fe::serialize::AbstractOp::m_names
private

Auxiliary map of string to te::fe::Global names pointers.

Definition at line 80 of file AbstractOp.h.


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