Public Member Functions | Private Attributes
DataElementFactory< T > Class Template Reference

The templated version of a class that creates DataElement 's to be added to a DataWarehouse. More...

#include <DataElementFactory.h>

List of all members.

Public Member Functions

 DataElementFactory (std::shared_ptr< SMT::SMTClient > client=nullptr)
std::pair< std::string,
boost::shared_ptr< T > > 
fromXml (const std::string &elementName, const std::string &robonetNode, const std::string &xml)
 A placeholder method for DataElement types other than RobonetDataElement, which is currently the only type supported.

Exceptions:
InvalidDataElementTypeExceptionIf this method is called, meaning that the DataElement type was something other than RobonetDataElement.

std::pair< std::string,
boost::shared_ptr< T > > 
stringsToDataElement (const std::string &name, const std::string &type, const std::string &direction, const std::string &channel, const std::string &node, const std::string &offset1, const std::string &offset2, const std::string &group, const std::string &style)
 A placeholder method for DataElement types other than RobonetDataElement, which is currently the only type supported.

Exceptions:
InvalidDataElementTypeExceptionIf this method is called, meaning that the DataElement type was something other than RobonetDataElement.

virtual ~DataElementFactory ()

Private Attributes

std::shared_ptr< SMT::SMTClient > smtclient
 SMTClient to use when making elements.

Detailed Description

template<typename T>
class DataElementFactory< T >

The templated version of a class that creates DataElement 's to be added to a DataWarehouse.

Definition at line 36 of file DataElementFactory.h.


Constructor & Destructor Documentation

template<typename T >
DataElementFactory< T >::DataElementFactory ( std::shared_ptr< SMT::SMTClient >  client = nullptr) [inline]

Definition at line 43 of file DataElementFactory.h.

template<typename T >
virtual DataElementFactory< T >::~DataElementFactory ( ) [inline, virtual]

Definition at line 45 of file DataElementFactory.h.


Member Function Documentation

template<typename T >
std::pair< std::string, boost::shared_ptr<T> > DataElementFactory< T >::fromXml ( const std::string &  elementName,
const std::string &  robonetNode,
const std::string &  xml 
) [inline]

A placeholder method for DataElement types other than RobonetDataElement, which is currently the only type supported.

Exceptions:
InvalidDataElementTypeExceptionIf this method is called, meaning that the DataElement type was something other than RobonetDataElement.

Definition at line 51 of file DataElementFactory.h.

template<typename T >
std::pair< std::string, boost::shared_ptr<T> > DataElementFactory< T >::stringsToDataElement ( const std::string &  name,
const std::string &  type,
const std::string &  direction,
const std::string &  channel,
const std::string &  node,
const std::string &  offset1,
const std::string &  offset2,
const std::string &  group,
const std::string &  style 
) [inline]

A placeholder method for DataElement types other than RobonetDataElement, which is currently the only type supported.

Exceptions:
InvalidDataElementTypeExceptionIf this method is called, meaning that the DataElement type was something other than RobonetDataElement.

Definition at line 61 of file DataElementFactory.h.


Member Data Documentation

template<typename T >
std::shared_ptr<SMT::SMTClient> DataElementFactory< T >::smtclient [private]

SMTClient to use when making elements.

Definition at line 41 of file DataElementFactory.h.


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


robot_instance
Author(s):
autogenerated on Sat Jun 8 2019 20:43:12