#include <type_reflection.h>
Inherits ddl::DDEnumGenerator< Type >.
|
| | enumeration (const std::string &strName) |
| |
| size_t | GetSize () const |
| |
| size_t | GetAlignment () const |
| |
| enumeration & | Add (const std::string &strName, Type eValue) |
| |
| DDEnumGenerator & | addElement (const std::string &name, Type value) |
| | Adds a element for the enumeration with name and value.
|
| |
| | DDEnumGenerator (const std::string &name, const std::vector< std::pair< std::string, Type > > elements={}) |
| | CTOR.
|
| |
| DDEnumGenerator & | addElement (const std::string &name, Type value) |
| | Adds a element for the enumeration with name and value.
|
| |
| | DDEnumGenerator (const std::string &name, const std::vector< std::pair< std::string, Type > > elements={}) |
| | CTOR.
|
| |
| DDEnumGenerator & | addElement (const std::string &name, Type value) |
| | Adds a element for the enumeration with name and value.
|
| |
|
| DDEnum ()=delete |
| | Construct a new DDEnum object.
|
| |
|
| DDEnum (DDEnum &&) |
| | Construct a new DDEnum object.
|
| |
| DDEnum & | operator= (DDEnum &&) |
| |
| | DDEnum (const DDEnum &other) |
| | Construct a new DDEnum object.
|
| |
| DDEnum & | operator= (const DDEnum &other) |
| | copies a DDEnum object
|
| |
| | DDEnum (const std::string &name, const dd::DataType &data_type, const std::vector< dd::EnumType::Element > &elements={}) |
| | Construct a new DDEnum object.
|
| |
| | DDEnum (const std::string &name, const DDDataType &data_type, const std::vector< dd::EnumType::Element > &elements={}) |
| | Construct a new DDEnum object.
|
| |
| DDEnum & | addElement (const dd::EnumType::Element &element) |
| | adds a EnumType element.
|
| |
| DDEnum & | addElement (const std::string &name, int64_t value) |
| | adds a EnumType element.
|
| |
| DDEnum & | addElements (const std::vector< dd::EnumType::Element > &elements) |
| | adds a vector of EnumType elements.
|
| |
| const dd::EnumType & | getEnumType () const |
| | Get the Enum Type object.
|
| |
| const dd::DataDefinition & | getDD () const |
| | return the valid data definition.
|
| |
| size_t | getTypeByteSize () const |
| | returns the size of the underlying datatype.
|
| |
| size_t | getAlignment () const |
| | returns the alignment of the underlying datatype.
|
| |
template<typename Type>
class adtf::mediadescription::osborn::enumeration< Type >
This is used to create an enumeration ytpe from an existing c++ enum.
Example Usage
enum tMyEnum
{
eA = 0,
eB = 1
};
.Add("eA", eA)
.Add("eB", eB);
.Add("eA", 0)
.Add("eB", 1);
◆ enumeration()
- Parameters
-
| [in] | strName | The name of the enumeration. |
◆ Add()
Adds a new mapped value to the enumeration.
- Parameters
-
| [in] | strName | The name of the value. |
| [in] | eValue | The value. |
- Returns
- A reference to the enumeration.
◆ addElement()
Adds a element for the enumeration with name and value.
- Parameters
-
| name | the name of the enumeration value |
| value | the value for the name out of given type EnumDataType |
- Returns
- DDEnumGenerator& a reference of this
◆ GetAlignment()
Returns the alignment of the enumeration and underlying data type.
- Returns
- size_t The alignment
◆ GetSize()
Returns the size of the enumeration and underlying data type.
- Returns
- size_t The size in bytes
The documentation for this class was generated from the following file: