RTI Connext Modern C++ API  Version 6.0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
dds::core::xtypes::EnumMember Class Reference

<<value-type>> Represents a EnumType member More...

#include "dds/core/xtypes/MemberType.hpp"

Public Member Functions

 EnumMember (const std::string &name, int32_t ordinal)
const dds::core::stringname () const
 Gets the name.
dds::core::stringname ()
 Gets the member name.
EnumMembername (const dds::core::string &value)
 Sets the name.
int32_t ordinal () const
 Gets the ordinal.
EnumMemberordinal (int32_t the_ordinal)
 Sets the ordinal.

Detailed Description

<<value-type>> Represents a EnumType member

Encapsulates the name and value (ordinal) of an IDL enum type

Constructor & Destructor Documentation

dds::core::xtypes::EnumMember::EnumMember ( const std::string &  name,
int32_t  ordinal 

Creates a EnumMember with a name and value (ordinal)

Member Function Documentation

const dds::core::string& dds::core::xtypes::EnumMember::name ( ) const

Gets the name.

dds::core::string& dds::core::xtypes::EnumMember::name ( )

Gets the member name.

EnumMember& dds::core::xtypes::EnumMember::name ( const dds::core::string value)

Sets the name.

int32_t dds::core::xtypes::EnumMember::ordinal ( ) const

Gets the ordinal.

EnumMember& dds::core::xtypes::EnumMember::ordinal ( int32_t  the_ordinal)

Sets the ordinal.

RTI Connext Modern C++ API Version 6.0.1 Copyright © Sat Nov 23 2019 Real-Time Innovations, Inc