1 #ifndef ORO_PRIMITIVE_SEQUENCE_TYPE_INFO_HPP 2 #define ORO_PRIMITIVE_SEQUENCE_TYPE_INFO_HPP 18 template<
class T,
bool has_ostream=false>
virtual bool composeType(base::DataSourceBase::shared_ptr dssource, base::DataSourceBase::shared_ptr dsresult) const
Compose a type (target) from a DataSourceBase (source) containing its members.
virtual base::DataSourceBase::shared_ptr getMember(base::DataSourceBase::shared_ptr item, const std::string &name) const
Returns a member of a given data source struct identified by its name.
bool resize(base::DataSourceBase::shared_ptr arg, int size) const
std::vector< std::string > getMemberNames() const
virtual std::vector< std::string > getMemberNames() const
Returns the list of struct member names of this type.
bool installTypeInfoObject(TypeInfo *ti)
Installs the type info object in the global data source type info handler and adds any additional fea...
void setCompositionFactory(CompositionFactoryPtr cf)
A factory for composing/decomposing and converting types to a form suitable for persistent storage...
bool installTypeInfoObject(TypeInfo *ti)
Installs the type info object in the global data source type info handler and adds any additional fea...
base::DataSourceBase::shared_ptr getMember(base::DataSourceBase::shared_ptr item, const std::string &name) const
An attribute is a minimalistic, named placeholder for data.
base::DataSourceBase::shared_ptr decomposeType(base::DataSourceBase::shared_ptr source) const
Use getMember() for decomposition...
virtual bool resize(base::DataSourceBase::shared_ptr arg, int size) const
Tries to resize a data source in case it's a resizable sequence.
A class for representing a user type, and which can build instances of that type. ...
base::AttributeBase * buildVariable(std::string name, int size) const
void setMemberFactory(MemberFactoryPtr mf)
New-style SequenceTypeInfo which offers type info for sequences which can NOT be sent over flow ports...
bool composeType(base::DataSourceBase::shared_ptr dssource, base::DataSourceBase::shared_ptr dsresult) const
Specialize to resize result given the size of source.
virtual base::DataSourceBase::shared_ptr decomposeType(base::DataSourceBase::shared_ptr source) const
Specialize this function to return an alternate type which represents this one in a compatible way...
PrimitiveSequenceTypeInfo(std::string name)
Template for data types that are C++ STL Sequences with operator[], size() and capacity() methods...
bool installTypeInfoObject(TypeInfo *ti)
virtual base::DataSourceBase::shared_ptr getMember(base::DataSourceBase::shared_ptr item, base::DataSourceBase::shared_ptr id) const
Returns a member of a given data source identified by a data source id.
base::AttributeBase * buildVariable(std::string name, int size) const
Build a modifyable instance of this type.
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.
This template class allows primitive types, which are not sent over ports, to be added to Orocos...
boost::shared_ptr< PrimitiveTypeInfo< T, use_ostream > > getSharedPtr()