Orocos Real-Time Toolkit  2.8.3
CompositionFactory.hpp
Go to the documentation of this file.
1 #ifndef RTT__COMPOSITION_FACTORY_HPP
2 #define RTT__COMPOSITION_FACTORY_HPP
3 
4 #include "../base/DataSourceBase.hpp"
5 
6 namespace RTT {
7  namespace types {
8 
13  {
14  public:
15  virtual ~CompositionFactory() {};
16 
35  virtual bool composeType( base::DataSourceBase::shared_ptr source, base::DataSourceBase::shared_ptr target) const = 0;
36 
48  virtual base::DataSourceBase::shared_ptr decomposeType(base::DataSourceBase::shared_ptr source) const;
49 
58 
63  };
64 
65  typedef boost::shared_ptr<CompositionFactory> CompositionFactoryPtr;
66 
67  }
68 }
69 
70 #endif
#define RTT_API
Definition: rtt-config.h:97
A factory for composing/decomposing and converting types to a form suitable for persistent storage...
boost::shared_ptr< CompositionFactory > CompositionFactoryPtr
boost::intrusive_ptr< DataSourceBase > shared_ptr
Use this type to store a pointer to a DataSourceBase.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition: Activity.cpp:51