fesa::FesaStream Class Reference

#include <FesaStream.h>

List of all members.

Public Member Functions

 FesaStream (const std::string streamName)
std::string getFileName () const
bool update ()
bool read (std::string &streamName)

Static Public Member Functions

static FesaStreamgetConfigStream (const std::string streamName)
static FesaStreamgetStateStream (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 FesaStreamgetFileStream (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_

Detailed Description

Definition at line 23 of file FesaStream.h.


Constructor & Destructor Documentation

fesa::FesaStream::FesaStream ( const std::string  streamName  ) 

Definition at line 34 of file FesaStream.cpp.

References fileName_.

Referenced by getFileStream().


Member Function Documentation

FesaStream * fesa::FesaStream::getConfigStream ( const std::string  streamName  )  [static]
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().


Member Data Documentation

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]
Initial value:
    "<?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]
Initial value:
    "<?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().


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

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1