#include <FesaStream.h>
Public Member Functions | |
FesaStream (const std::string streamName) | |
std::string | getFileName () const |
bool | update () |
bool | read (std::string &streamName) |
Static Public Member Functions | |
static FesaStream * | getConfigStream (const std::string streamName) |
static FesaStream * | getStateStream (const std::string streamName) |
Static Public Attributes | |
static std::string | configHeader_ |
static std::string | configFooter_ = "</fesa-class-configuration>" |
static std::string | stateHeader_ |
static std::string | stateFooter_ = "</fesa-class-state>" |
Static Private Member Functions | |
static FesaStream * | getFileStream (const std::string streamName) |
Private Attributes | |
std::string * | fileHeader_ |
std::string * | fileFooter_ |
std::string | fileName_ |
std::fstream | fileStream_ |
Static Private Attributes | |
static std::map< std::string, FesaStream * > | fileFactoryMap_ |
Definition at line 23 of file FesaStream.h.
fesa::FesaStream::FesaStream | ( | const std::string | streamName | ) |
FesaStream * fesa::FesaStream::getConfigStream | ( | const std::string | streamName | ) | [static] |
Definition at line 154 of file FesaStream.cpp.
References configFooter_, configHeader_, fileFooter_, fileHeader_, and getFileStream().
Referenced by fesa::AbstractRTEquipment::start().
std::string fesa::FesaStream::getFileName | ( | ) | const [inline] |
Definition at line 34 of file FesaStream.h.
References fileName_.
FesaStream * fesa::FesaStream::getFileStream | ( | const std::string | streamName | ) | [static, private] |
Definition at line 46 of file FesaStream.cpp.
References FesaStream(), and fileFactoryMap_.
Referenced by getConfigStream(), and getStateStream().
FesaStream * fesa::FesaStream::getStateStream | ( | const std::string | streamName | ) | [static] |
Definition at line 162 of file FesaStream.cpp.
References fileFooter_, fileHeader_, getFileStream(), stateFooter_, and stateHeader_.
bool fesa::FesaStream::read | ( | std::string & | streamName | ) |
Definition at line 120 of file FesaStream.cpp.
References fileName_.
bool fesa::FesaStream::update | ( | ) |
Definition at line 68 of file FesaStream.cpp.
References fileFooter_, fileHeader_, fileName_, and fileStream_.
Referenced by fesa::AbstractRTEquipment::start().
std::string fesa::FesaStream::configFooter_ = "</fesa-class-configuration>" [static] |
Definition at line 45 of file FesaStream.h.
Referenced by getConfigStream().
std::string fesa::FesaStream::configHeader_ [static] |
"<?xml version= '1.0' encoding= 'UTF-8'?>\n<Fesa-class-configuration xmlns:xsi= \"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation =\"\" "
Definition at line 45 of file FesaStream.h.
Referenced by getConfigStream().
std::map< std::string, FesaStream * > fesa::FesaStream::fileFactoryMap_ [static, private] |
Definition at line 58 of file FesaStream.h.
Referenced by getFileStream().
std::string* fesa::FesaStream::fileFooter_ [private] |
Definition at line 53 of file FesaStream.h.
Referenced by getConfigStream(), getStateStream(), and update().
std::string* fesa::FesaStream::fileHeader_ [private] |
Definition at line 52 of file FesaStream.h.
Referenced by getConfigStream(), getStateStream(), and update().
std::string fesa::FesaStream::fileName_ [private] |
Definition at line 54 of file FesaStream.h.
Referenced by FesaStream(), getFileName(), read(), and update().
std::fstream fesa::FesaStream::fileStream_ [private] |
Definition at line 55 of file FesaStream.h.
Referenced by update().
std::string fesa::FesaStream::stateFooter_ = "</fesa-class-state>" [static] |
Definition at line 46 of file FesaStream.h.
Referenced by getStateStream().
std::string fesa::FesaStream::stateHeader_ [static] |
"<?xml version= '1.0' encoding= 'UTF-8'?>\n<Fesa-class-state xmlns:xsi= \"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation =\"\">"
Definition at line 46 of file FesaStream.h.
Referenced by getStateStream().