Orocos Real-Time Toolkit  2.9.0
Public Member Functions | List of all members
RTT::types::StreamFactory Class Referenceabstract

#include <rtt/types/StreamFactory.hpp>

Inheritance diagram for RTT::types::StreamFactory:
RTT::types::PrimitiveTypeInfo< bool, use_ostream > RTT::types::PrimitiveTypeInfo< rt_string, use_ostream > RTT::types::PrimitiveTypeInfo< std::string, use_ostream > RTT::types::PrimitiveTypeInfo< std::vector< double >, use_ostream > RTT::types::PrimitiveTypeInfo< std::vector< T >, use_ostream > RTT::types::PrimitiveTypeInfo< T, has_ostream > RTT::types::PrimitiveTypeInfo< T, use_ostream > RTT::types::TemplateTypeInfo< bool, true > RTT::types::TemplateTypeInfo< rt_string, has_ostream > RTT::types::TemplateTypeInfo< std::string, has_ostream > RTT::types::TemplateTypeInfo< std::vector< double >, has_ostream > RTT::types::TemplateTypeInfo< std::vector< T >, has_ostream > RTT::types::BoostArrayTypeInfo< T, has_ostream > RTT::types::CArrayTypeInfo< T, has_ostream > RTT::types::PrimitiveSequenceTypeInfo< T, has_ostream > RTT::types::TemplateTypeInfo< T, use_ostream > RTT::types::TemplateTypeInfo< T, false > RTT::types::TemplateTypeInfo< T, has_ostream > RTT::types::TemplateTypeInfo< T, true >

Public Member Functions

virtual ~StreamFactory ()
Conversion to/from text

Used to convert data to human readable text and vice versa.

virtual std::ostream & write (std::ostream &os, base::DataSourceBase::shared_ptr in) const =0
 Output this datasource as a human readable string. More...
virtual std::istream & read (std::istream &os, base::DataSourceBase::shared_ptr out) const =0
 Read a new value for this datasource from a human readable string. More...
virtual std::string toString (base::DataSourceBase::shared_ptr in) const
 Usability function which converts data to a string. More...
virtual bool fromString (const std::string &value, base::DataSourceBase::shared_ptr out) const
 Usability function which converts a string to data. More...
virtual bool isStreamable () const =0
 Returns true if this type is directly streamable using read()/write() or toString()/fromString(). More...

Detailed Description

Definition at line 16 of file StreamFactory.hpp.

Constructor & Destructor Documentation

virtual RTT::types::StreamFactory::~StreamFactory ( )

Definition at line 19 of file StreamFactory.hpp.

Member Function Documentation

bool StreamFactory::fromString ( const std::string &  value,
base::DataSourceBase::shared_ptr  out 
) const

Usability function which converts a string to data.

Definition at line 23 of file StreamFactory.cpp.

virtual bool RTT::types::StreamFactory::isStreamable ( ) const
pure virtual
virtual std::istream& RTT::types::StreamFactory::read ( std::istream &  os,
base::DataSourceBase::shared_ptr  out 
) const
pure virtual
string StreamFactory::toString ( base::DataSourceBase::shared_ptr  in) const

Usability function which converts data to a string.

Definition at line 12 of file StreamFactory.cpp.

virtual std::ostream& RTT::types::StreamFactory::write ( std::ostream &  os,
base::DataSourceBase::shared_ptr  in 
) const
pure virtual

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