CCA
|
Converter for cca::ComponentState to rst::cbse::ComponentState. More...
#include <StateConverter.h>
Public Member Functions | |
ComponentStateConverter () | |
virtual | ~ComponentStateConverter () |
std::string | getWireSchema () const |
std::string | serialize (const ::rsb::AnnotatedData &data, std::string &wire) |
rsb::AnnotatedData | deserialize (const std::string &wireType, const std::string &wire) |
Private Attributes | |
boost::shared_ptr < rsb::converter::Converter < std::string > > | converter |
Detailed Description
Converter for cca::ComponentState to rst::cbse::ComponentState.
Definition at line 45 of file StateConverter.h.
Constructor & Destructor Documentation
Definition at line 39 of file StateConverter.cpp.
References converter.
cca::ComponentStateConverter::~ComponentStateConverter | ( | ) | [virtual] |
Definition at line 48 of file StateConverter.cpp.
Member Function Documentation
rsb::AnnotatedData cca::ComponentStateConverter::deserialize | ( | const std::string & | wireType, |
const std::string & | wire | ||
) |
Definition at line 92 of file StateConverter.cpp.
References converter, cca::ComponentState::EXECUTION(), cca::ComponentState::LOADED(), cca::ComponentState::OFFLINELEARNING(), cca::ComponentState::ONLINELEARNING(), cca::ComponentState::PAUSED(), cca::ComponentState::PERSISTED(), cca::ComponentState::RESET(), and cca::ComponentState::STOPPED().
string cca::ComponentStateConverter::getWireSchema | ( | ) | const |
Definition at line 51 of file StateConverter.cpp.
References converter.
string cca::ComponentStateConverter::serialize | ( | const ::rsb::AnnotatedData & | data, |
std::string & | wire | ||
) |
Definition at line 55 of file StateConverter.cpp.
References converter, cca::ComponentState::EXECUTION(), cca::ComponentState::LOADED(), cca::ComponentState::OFFLINELEARNING(), cca::ComponentState::ONLINELEARNING(), cca::ComponentState::PAUSED(), cca::ComponentState::PERSISTED(), and cca::ComponentState::RESET().
Member Data Documentation
boost::shared_ptr<rsb::converter::Converter<std::string> > cca::ComponentStateConverter::converter [private] |
Definition at line 59 of file StateConverter.h.
Referenced by ComponentStateConverter(), deserialize(), getWireSchema(), and serialize().
The documentation for this class was generated from the following files:
- cca/component/converters/StateConverter.h
- cca/component/converters/StateConverter.cpp