Go to the documentation of this file.
27 #include <ArmarXCore/interface/observers/Serialization.h>
53 public ObjectSerializerBase
64 virtual unsigned int size()
const = 0;
65 virtual bool hasElement(const ::std::string& key)
const = 0;
67 virtual float getFloat(const ::std::string& key)
const = 0;
68 virtual double getDouble(const ::std::string& key)
const = 0;
69 virtual int getInt(const ::std::string& key)
const = 0;
70 virtual bool getBool(const ::std::string& key)
const = 0;
71 virtual std::string
getString(const ::std::string& key)
const = 0;
74 virtual SerializablePtr
getIceObject(const ::std::string& key)
const;
81 virtual void getIntArray(const ::std::string& key, std::vector<int>& result) = 0;
82 virtual void getFloatArray(const ::std::string& key, std::vector<float>& result) = 0;
83 virtual void getDoubleArray(const ::std::string& key, std::vector<double>& result) = 0;
84 virtual void getStringArray(const ::std::string& key, std::vector<std::string>& result) = 0;
85 virtual void getVariantArray(const ::std::string& key, std::vector<VariantPtr>& result) = 0;
89 virtual void setBool(const ::std::string& key,
bool val) = 0;
90 virtual void setInt(const ::std::string& key,
int val) = 0;
91 virtual void setFloat(const ::std::string& key,
float val) = 0;
92 virtual void setDouble(const ::std::string& key,
double val) = 0;
93 virtual void setString(const ::std::string& key,
const std::string& val) = 0;
96 virtual void setIceObject(const ::std::string& key,
const SerializablePtr& val);
98 virtual void setIntArray(const ::std::string& key,
const std::vector<int>& val) = 0;
99 virtual void setFloatArray(const ::std::string& key,
const std::vector<float>& val) = 0;
100 virtual void setDoubleArray(const ::std::string& key,
const std::vector<double>& val) = 0;
101 virtual void setStringArray(const ::std::string& key,
const std::vector<std::string>& val) = 0;
102 virtual void setVariantArray(const ::std::string& key,
const std::vector<VariantPtr>& val) = 0;
103 virtual void setVariantArray(const ::std::string& key,
const std::vector<VariantBasePtr>& val) = 0;
108 virtual void setInt(
unsigned int index,
int val) = 0;
111 virtual void setString(
unsigned int index,
const std::string& val) = 0;
122 virtual void reset() = 0;
virtual void setIntArray(const ::std::string &key, const std::vector< int > &val)=0
virtual AbstractObjectSerializerPtr createElement() const =0
virtual SerializablePtr getIceObject(const ::std::string &key) const
std::map< std::string, VariantBasePtr > StringVariantBaseMap
void setIceCommunicator(Ice::CommunicatorPtr ic)
virtual void setVariant(const ::std::string &key, const VariantPtr &val)
virtual void setVariantMap(const ::std::string &key, const StringVariantBaseMap &val)=0
std::string getIdField() const
virtual VariantPtr getVariant(const ::std::string &key) const
AbstractObjectSerializerPtr serializeVariant(const VariantPtr &val) const
virtual std::vector< std::string > getElementNames() const =0
virtual void getFloatArray(const ::std::string &key, std::vector< float > &result)=0
virtual void getVariantArray(const ::std::string &key, std::vector< VariantPtr > &result)=0
virtual void getIntArray(const ::std::string &key, std::vector< int > &result)=0
virtual void getVariantMap(const ::std::string &key, StringVariantBaseMap &result)=0
virtual void merge(const AbstractObjectSerializerPtr &val)=0
virtual AbstractObjectSerializerPtr getElement(unsigned int index) const =0
virtual void setFloat(const ::std::string &key, float val)=0
virtual void getDoubleArray(const ::std::string &key, std::vector< double > &result)=0
VariantPtr deserializeVariant()
virtual void setElementType(ElementType elemType, const ::Ice::Current &=Ice::emptyCurrent)=0
SerializablePtr deserializeIceObject()
~AbstractObjectSerializer() override
virtual float getFloat(const ::std::string &key) const =0
void serializeIceObject(const SerializablePtr &obj)
void setId(const std::string &val)
AbstractObjectSerializer()
virtual void setFloatArray(const ::std::string &key, const std::vector< float > &val)=0
virtual void setIceObject(const ::std::string &key, const SerializablePtr &val)
virtual void append(const AbstractObjectSerializerPtr &val)=0
virtual void setDouble(const ::std::string &key, double val)=0
void setIdField(const std::string &fieldName)
virtual bool getBool(const ::std::string &key) const =0
virtual int getInt(const ::std::string &key) const =0
virtual bool hasElement(const ::std::string &key) const =0
virtual void getStringArray(const ::std::string &key, std::vector< std::string > &result)=0
virtual void setDoubleArray(const ::std::string &key, const std::vector< double > &val)=0
std::string getStringId() const
virtual std::string getString(const ::std::string &key) const =0
virtual void setBool(const ::std::string &key, bool val)=0
virtual unsigned int size() const =0
virtual void setElement(const ::std::string &key, const AbstractObjectSerializerPtr &val)=0
virtual void setInt(const ::std::string &key, int val)=0
virtual void setVariantArray(const ::std::string &key, const std::vector< VariantPtr > &val)=0
virtual void setStringArray(const ::std::string &key, const std::vector< std::string > &val)=0
virtual double getDouble(const ::std::string &key) const =0
virtual ElementType getElementType(const ::Ice::Current &=Ice::emptyCurrent) const =0
This file offers overloads of toIce() and fromIce() functions for STL container types.
virtual void setString(const ::std::string &key, const std::string &val)=0