ADTF
CodecDefaultValueInfo

The default value info of a element. More...

Public Member Functions

bool hasDefaultValue () const
 Determines if the element has a constant value or not. More...
 
a_util::variant::Variant getDefaultValue () const
 Returns the default value in type T. More...
 

Private Member Functions

 CodecDefaultValueInfo (const a_util::variant::Variant &default_value)
 

Private Attributes

const a_util::variant::Variant _default_value
 

Detailed Description

The default value info of a element.

Definition at line 172 of file codec_type_info.h.

Member Function Documentation

◆ getDefaultValue()

a_util::variant::Variant getDefaultValue ( ) const

Returns the default value in type T.

Returns
a_util::variant::Variant Returns the the default value as variant
Exceptions
throwsstd::runtime_error if not found.

◆ hasDefaultValue()

bool hasDefaultValue ( ) const

Determines if the element has a constant value or not.

Returns
true is constant
false is not contant