23 #ifndef VARIANT_TOPIC_TOOLS_COLLECTION_VARIANT_H 24 #define VARIANT_TOPIC_TOOLS_COLLECTION_VARIANT_H 74 template <
typename T> T&
getValue(
int index);
79 template <
typename T>
const T&
getValue(
int index)
const;
84 template <
typename T> T&
getValue(
const std::string& name);
89 template <
typename T>
const T&
getValue(
const std::string& name)
const;
96 bool hasMember(
const std::string& name)
const;
165 virtual bool hasMember(
const std::string& name)
const = 0;
170 bool hasMember(
const std::string& name,
size_t pos)
const;
179 void read(std::istream& stream);
184 virtual void writeMember(std::ostream& stream,
int index)
const = 0;
188 void write(std::ostream& stream)
const;
197 #include <variant_topic_tools/CollectionVariant.tpp>
Header file providing the Variant class interface.