![]() |
stromx
0.8.0
|
Common interface of data objects or references to data objects. More...
#include <DataInterface.h>
Public Member Functions | |
| virtual const Version & | version () const =0 |
| virtual const std::string & | type () const =0 |
| virtual const std::string & | package () const =0 |
| virtual const VariantHandle & | variant () const =0 |
| virtual Data * | clone () const =0 |
| virtual void | serialize (OutputProvider &out) const =0 |
| virtual void | deserialize (InputProvider &in, const Version &version)=0 |
| bool | isVariant (const VariantInterface &v) const |
Common interface of data objects or references to data objects.
|
pure virtual |
Returns a copy of the data object, i.e. a object of the same type is allocated and the data of the original object is copied to the new object. A pointer to the new object is returned.
Implemented in stromx::cvsupport::Image, stromx::cvsupport::Matrix, stromx::runtime::File, stromx::runtime::DataRef, stromx::runtime::ConstDataRef, stromx::runtime::Tribool, stromx::runtime::Primitive< repr_t, val_t >, stromx::runtime::Primitive< unsigned int, uint16_t >, stromx::runtime::Primitive< unsigned int, uint32_t >, stromx::runtime::Primitive< double, double >, stromx::runtime::Primitive< bool, bool >, stromx::runtime::String, stromx::runtime::Enum, stromx::runtime::List, stromx::runtime::None, and stromx::runtime::TriggerData.
|
pure virtual |
Deserializes a data object.
| out | The input which the data obtained from. |
| version | The version of the data class which serialized the input. |
Implemented in stromx::cvsupport::Image, stromx::runtime::File, stromx::runtime::DataRef, stromx::runtime::ConstDataRef, stromx::runtime::MatrixWrapper, stromx::runtime::Tribool, stromx::runtime::Data, stromx::runtime::Primitive< repr_t, val_t >, stromx::runtime::Primitive< unsigned int, uint16_t >, stromx::runtime::Primitive< unsigned int, uint32_t >, stromx::runtime::Primitive< double, double >, stromx::runtime::Primitive< bool, bool >, stromx::runtime::String, and stromx::runtime::TriggerData.
|
inline |
Returns true if the variant of this data object is a subtype of v.
|
pure virtual |
Returns the package of the class of this data object.
Implemented in stromx::cvsupport::Image, stromx::cvsupport::Matrix, stromx::runtime::File, stromx::runtime::DataRef, stromx::runtime::ConstDataRef, stromx::runtime::Tribool, stromx::runtime::Primitive< repr_t, val_t >, stromx::runtime::Primitive< unsigned int, uint16_t >, stromx::runtime::Primitive< unsigned int, uint32_t >, stromx::runtime::Primitive< double, double >, stromx::runtime::Primitive< bool, bool >, stromx::runtime::String, stromx::runtime::List, stromx::runtime::None, and stromx::runtime::TriggerData.
|
pure virtual |
Serializes this data object.
| out | The output which the data is sent to. |
Implemented in stromx::cvsupport::Image, stromx::runtime::File, stromx::runtime::DataRef, stromx::runtime::ConstDataRef, stromx::runtime::MatrixWrapper, stromx::runtime::Tribool, stromx::runtime::Data, stromx::runtime::Primitive< repr_t, val_t >, stromx::runtime::Primitive< unsigned int, uint16_t >, stromx::runtime::Primitive< unsigned int, uint32_t >, stromx::runtime::Primitive< double, double >, stromx::runtime::Primitive< bool, bool >, stromx::runtime::String, and stromx::runtime::TriggerData.
|
pure virtual |
Returns the name of the class of this data object.
Implemented in stromx::cvsupport::Image, stromx::cvsupport::Matrix, stromx::runtime::File, stromx::runtime::DataRef, stromx::runtime::ConstDataRef, stromx::runtime::Tribool, stromx::runtime::Primitive< repr_t, val_t >, stromx::runtime::Primitive< unsigned int, uint16_t >, stromx::runtime::Primitive< unsigned int, uint32_t >, stromx::runtime::Primitive< double, double >, stromx::runtime::Primitive< bool, bool >, stromx::runtime::Enum, stromx::runtime::String, stromx::runtime::List, stromx::runtime::None, and stromx::runtime::TriggerData.
|
pure virtual |
Returns the data variant of this data object.
Implemented in stromx::runtime::File, stromx::runtime::DataRef, stromx::runtime::ConstDataRef, stromx::runtime::Tribool, stromx::runtime::Primitive< repr_t, val_t >, stromx::runtime::Primitive< unsigned int, uint16_t >, stromx::runtime::Primitive< unsigned int, uint32_t >, stromx::runtime::Primitive< double, double >, stromx::runtime::Primitive< bool, bool >, stromx::runtime::MatrixWrapper, stromx::runtime::String, stromx::runtime::Enum, stromx::runtime::ImageWrapper, stromx::runtime::List, stromx::runtime::None, and stromx::runtime::TriggerData.
|
pure virtual |
Returns the version of the class of this data object.
Implemented in stromx::cvsupport::Image, stromx::cvsupport::Matrix, stromx::runtime::File, stromx::runtime::DataRef, stromx::runtime::ConstDataRef, stromx::runtime::Tribool, stromx::runtime::Primitive< repr_t, val_t >, stromx::runtime::Primitive< unsigned int, uint16_t >, stromx::runtime::Primitive< unsigned int, uint32_t >, stromx::runtime::Primitive< double, double >, stromx::runtime::Primitive< bool, bool >, stromx::runtime::String, stromx::runtime::List, stromx::runtime::None, and stromx::runtime::TriggerData.
1.8.12