Template Class TStructType

Inheritance Relationships

Base Type

Class Documentation

template<typename DELEGATE>
class TStructType : public dds::core::xtypes::TDynamicType<DELEGATE>

Create a dynamic structure type. If the members don’t have Id associated explicitly, then their ID will be the same as the ordinal position on the members vector.

Public Functions

inline explicit TStructType(const std::string &name)
inline TStructType(const std::string &name, const std::vector<MemberType> &members)
inline TStructType(const std::string &name, const TStructType &parent, const std::vector<MemberType> &members)
template<typename MemberIter>
inline TStructType(const std::string &name, const TStructType &parent, const MemberIter &begin, const MemberIter &end)
inline TStructType(const std::string &name, const TStructType &parent, const std::vector<MemberType> &members, const Annotation &annotation)
inline TStructType(const std::string &name, const TStructType &parent, const std::vector<MemberType> &members, const std::vector<Annotation> &annotations)
template<typename AnnotationIter, typename MemberIter>
inline TStructType(const std::string &name, const TStructType &parent, const MemberIter &member_begin, const MemberIter &member_end, const AnnotationIter &annotation_begin, const AnnotationIter &annotation_end)
template<typename BASE_DELEGATE>
inline operator TDynamicType<BASE_DELEGATE>() const
inline TStructType parent() const
inline const std::vector<MemberType> &members() const
inline const MemberType &member(uint32_t id) const
inline const MemberType &member(const std::string &name) const
inline const std::vector<Annotation> &annotations() const
inline TStructType add_member(const MemberType &member) const
inline TStructType remove_member(const MemberType &member) const
inline TStructType add_annotation(const Annotation &annotation) const
inline TStructType remove_annotation(const Annotation &annotation) const