Dev Essential  1.6.3
Loading...
Searching...
No Matches
ddl::codec::CodecConstantInfo Class Reference

The constant info of a element. More...

#include <codec_type_info.h>

Public Member Functions

bool isConstant () const
 Determines if the element has a constant value or not.
 
const char * getConstantName () const
 Get the name of the constant value.
 
a_util::variant::Variant getConstantValue () const
 

Friends

class StructAccess
 

Detailed Description

The constant info of a element.

Member Function Documentation

◆ getConstantName()

const char * ddl::codec::CodecConstantInfo::getConstantName ( ) const

Get the name of the constant value.

Remarks
The pointer of the return value is valid as long as the codec factory created this CodecConstantInfo.
Returns
const char*

◆ getConstantValue()

a_util::variant::Variant ddl::codec::CodecConstantInfo::getConstantValue ( ) const

Returns the constant value in type T.

Returns
T Returns the the constant value
Exceptions
throwsstd::runtime_error if not found.

◆ isConstant()

bool ddl::codec::CodecConstantInfo::isConstant ( ) const

Determines if the element has a constant value or not.

Returns
true is constant
false is not contant

The documentation for this class was generated from the following file: