Orocos Real-Time Toolkit  2.9.0
MemberFactory.hpp
Go to the documentation of this file.
1 #ifndef ORO_MEMBER_FACTORY_HPP
2 #define ORO_MEMBER_FACTORY_HPP
3 
4 #include "../base/DataSourceBase.hpp"
5 #include "../rtt-config.h"
6 #include "../internal/Reference.hpp"
7 #include <vector>
8 #include <string>
9 
10 namespace RTT
11 {
12  namespace types
13  {
14 
16  {
17  public:
18  virtual ~MemberFactory() {};
19 
30  virtual bool resize(base::DataSourceBase::shared_ptr arg, int size) const;
31 
36  virtual std::vector<std::string> getMemberNames() const;
37 
45  virtual base::DataSourceBase::shared_ptr getMember(base::DataSourceBase::shared_ptr item, const std::string& name) const;
46 
60 
61 
71  virtual bool getMember(internal::Reference* ref, base::DataSourceBase::shared_ptr item, const std::string& name) const;
73  };
74 
75  typedef boost::shared_ptr<MemberFactory> MemberFactoryPtr;
76  }
77 }
78 #endif
boost::shared_ptr< MemberFactory > MemberFactoryPtr
#define RTT_API
Definition: rtt-config.h:97
Object that may receive a reference to some data by means of a pointer or data source.
Definition: Reference.hpp:15
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:52