#include <interface.h>
Inheritance diagram for faudes::Type:
Currently, faudes::Type only provides a standard interface to read and write configuration data from or to files.
Future libFAUDES versions will extend this base class to become a runtime interface to libFAUDES data types.
Definition at line 42 of file interface.h.
Public Member Functions | |
Type (void) | |
Constructor. | |
Type (const Type &rType) | |
Copy constructor. | |
virtual | ~Type () |
Destructor. | |
virtual void | Clear (void) |
Clear configuration data. | |
void | Write (const Type *pContext=0) const |
Write configuration data to console. | |
void | Write (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const |
Write configuration data to a file. | |
void | Write (const std::string &pFileName, std::ios::openmode openmode) const |
Write configuration data to a file. | |
void | Write (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
Write configuration data to TokenWriter. | |
std::string | ToString (const std::string &rLabel="", const Type *pContext=0) const |
Write configuration data to a string. | |
void | DWrite (const Type *pContext=0) const |
Write configuration data to console, debugging format. | |
void | DWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const |
Write configuration data to a file, debugging format. | |
void | DWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
Write configuration data to TokenWriter, debugging format. | |
void | Read (const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0) |
Read configuration data from file with label specified. | |
void | Read (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) |
Read configuration data from TokenReader with label sepcified. | |
Protected Member Functions | |
virtual void | DoRead (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) |
Read configuration data of this object from TokenReader. | |
virtual void | DoWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
Write configuration data of this object to TokenWriter. | |
virtual void | DoDWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
Write configuration data in debugging format to TokenWriter. |
|
Constructor.
Definition at line 41 of file interface.cpp. |
|
Copy constructor.
Definition at line 44 of file interface.cpp. |
|
Destructor.
Definition at line 47 of file interface.cpp. |
|
|
Write configuration data in debugging format to TokenWriter. Reimplement this method in derived classes to provide the std token io interface defined in the public section of Type.
Reimplemented in faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TBaseSet< T, Cmp >, faudes::NameSet, faudes::TaNameSet< Attr >, faudes::TaGenerator< AttributeTimedGlobal, AttributeTimedState, AttributeCFlags, AttributeTimedTrans >, faudes::TBaseSet< std::string >, faudes::TBaseSet< Idx >, faudes::TBaseSet< Transition, Cmp >, faudes::TaNameSet< SimConditionAttribute >, faudes::TaNameSet< AttributeCFlags >, and faudes::TaNameSet< EventAttr >. Definition at line 137 of file interface.cpp. |
|
|
Write configuration data of this object to TokenWriter. Reimplement this method in derived classes to provide the std token io interface defined in the public section of Type.
Reimplemented in faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TBaseSet< T, Cmp >, faudes::IndexSet, faudes::TaIndexSet< Attr >, faudes::NameSet, faudes::TaNameSet< Attr >, faudes::SymbolSet, faudes::SymbolTable, faudes::TTransSet< Cmp >, faudes::LoggingExecutor, faudes::ParallelExecutor::ParallelTimedState, faudes::ParallelExecutor, faudes::ProposingExecutor, faudes::TaGenerator< AttributeTimedGlobal, AttributeTimedState, AttributeCFlags, AttributeTimedTrans >, faudes::TBaseSet< std::string >, faudes::TBaseSet< Idx >, faudes::TBaseSet< Transition, Cmp >, faudes::TaIndexSet< SimConditionAttribute >, faudes::TaIndexSet< StateAttr >, faudes::TaIndexSet< AttributeCFlags >, faudes::TaIndexSet< EventAttr >, faudes::TaIndexSet< AttributeTimedState >, faudes::TaNameSet< SimConditionAttribute >, faudes::TaNameSet< AttributeCFlags >, and faudes::TaNameSet< EventAttr >. Definition at line 131 of file interface.cpp. |
|
Write configuration data to TokenWriter, debugging format. Note: all write functions use the virtual function DoDWrite(), to be reimplemented by derived classes.
Definition at line 113 of file interface.cpp. |
|
Write configuration data to a file, debugging format. Note: all write functions use the virtual function DoDWrite(), to be reimplemented by derived classes.
Definition at line 99 of file interface.cpp. |
|
Write configuration data to console, debugging format. Note: all write functions use the virtual function DoDWrite(), to be reimplemented by derived classes.
Definition at line 93 of file interface.cpp. |
|
Read configuration data from TokenReader with label sepcified. Note: all read functions use the virtual function DoRead(), to be reimplemented for by derived classes.
Definition at line 125 of file interface.cpp. |
|
Read configuration data from file with label specified. Note: all read functions use the virtual function DoRead(), to be reimplemented for by derived classes.
Definition at line 118 of file interface.cpp. |
|
Write configuration data to a string. Note: all write functions use the virtual function DoWrite(), to be reimplemented by derived classes.
Definition at line 86 of file interface.cpp. |
|
Write configuration data to TokenWriter. Note: all write functions use the virtual function DoWrite(), to be reimplemented by derived classes.
Definition at line 81 of file interface.cpp. |
|
Write configuration data to a file. Note: all write functions use the virtual function DoWrite(), to be reimplemented by derived classes.
Definition at line 76 of file interface.cpp. |
|
Write configuration data to a file. Note: all write functions use the virtual function DoWrite(), to be reimplemented by derived classes.
Definition at line 62 of file interface.cpp. |
|
Write configuration data to console. Note: all write functions use the virtual function DoWrite(), to be reimplemented by derived classes.
Definition at line 56 of file interface.cpp. |