ADTF
CodecConstantInfo

The constant info of a element. More...

Public Member Functions

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

Private Member Functions

 CodecConstantInfo (const char *constant_name, const a_util::variant::Variant *constant)
 

Private Attributes

const char * _constant_name
 
const a_util::variant::Variant_constant
 

Detailed Description

The constant info of a element.

Definition at line 137 of file codec_type_info.h.

Member Function Documentation

◆ getConstantName()

const char* 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 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 isConstant ( ) const

Determines if the element has a constant value or not.

Returns
true is constant
false is not contant