Description of the elements Type.
More...
#include <codec_type_info.h>
Description of the elements Type.
◆ getEnumElementName()
Returns the enum elements name for the given value if exists.
- Parameters
-
| [in] | value | The value retrieve the for the value of type T. |
- Returns
- const char* Returns the enum elements name
- Exceptions
-
| throws | std::runtime_error if not found. |
◆ getEnumElementNames()
| std::vector< std::string > ddl::codec::CodecTypeInfo::getEnumElementNames |
( |
| ) |
const |
Get the Enum Element Names.
- Returns
- std::vector<std::string>
◆ getEnumElementValue()
Returns the current enum elements value of the given enum element name converted to type T if supported.
- Parameters
-
| [in] | name | The name of the enum element value to retrieve. |
- Template Parameters
-
| T | the type to retrieve the value in |
- Returns
- The value in converted to type T
- Exceptions
-
| throws | std::runtime_error if not found. |
◆ getLegacyAccessEnumType()
| const AccessEnumType * ddl::codec::CodecTypeInfo::getLegacyAccessEnumType |
( |
| ) |
const |
Legacy Only: Get the Legacy Access Enum Type object.
- Returns
- const AccessEnumType*
◆ getType()
| ElementType ddl::codec::CodecTypeInfo::getType |
( |
| ) |
const |
◆ getTypeName()
| const char * ddl::codec::CodecTypeInfo::getTypeName |
( |
| ) |
const |
Get the typename.
- Returns
- const char*
◆ hasEnumElementName()
| bool ddl::codec::CodecTypeInfo::hasEnumElementName |
( |
const std::string & | name | ) |
const |
Determines if the enum element name exists.
- Parameters
-
| name | The name of the enum element |
- Returns
- true the name exists
-
false the name does not exist
◆ isEnum()
| bool ddl::codec::CodecTypeInfo::isEnum |
( |
| ) |
const |
Determines the value is an enum or not.
- Returns
- true is an enum type
-
false in not an enum type
The documentation for this class was generated from the following file:
- /workspace/conan/dev_essential/1.6.3/dw/stable/package/65324bff46e457721a7ba250afe9d61dc2b0e57a/include/ddl/codec/codec_type_info.h