adtf_file_library  0.13.1
Public Member Functions | Public Attributes | List of all members
adtf_file::PropertyValue Struct Reference

PropertyValue variant class. More...

#include <configuration.h>

Public Member Functions

 PropertyValue ()=default
 CTOR.
 
 PropertyValue (const PropertyValue &)=default
 copy CTOR
 
 PropertyValue (PropertyValue &&)=default
 move CTOR
 
PropertyValueoperator= (const PropertyValue &)=default
 copy assignment More...
 
PropertyValueoperator= (PropertyValue &&)=default
 move assignment More...
 
 PropertyValue (std::string value, std::string type)
 CTOR. More...
 
template<typename T , std::enable_if_t< std::is_unsigned< T >::value &&!std::is_same< T, bool >::value, bool > = true>
 PropertyValue (T value)
 CTOR for unsigned integer value (uint8-uint64) and "unsigned" type. More...
 
template<typename T , std::enable_if_t< std::is_integral< T >::value &&std::is_signed< T >::value, bool > = true>
 PropertyValue (T value)
 CTOR for signed integer value (int8-int64) and "signed" type. More...
 
template<typename T , std::enable_if_t< std::is_floating_point< T >::value, bool > = true>
 PropertyValue (T value)
 CTOR for double or float value and "float" type. More...
 
template<typename T , std::enable_if_t< std::is_same< T, bool >::value, bool > = true>
 PropertyValue (T value)
 CTOR for bool value and "bool" type. More...
 
 PropertyValue (std::string_view string_value)
 CTOR for string value and "string" type. More...
 

Public Attributes

std::string value
 Value as string.
 
std::string type
 Type as string.
 

Detailed Description

PropertyValue variant class.

Constructor & Destructor Documentation

◆ PropertyValue() [1/6]

adtf_file::PropertyValue::PropertyValue ( std::string  value,
std::string  type 
)
inline

CTOR.

Parameters
valueThe value as string
typeThe type as string.
Remarks
The type identifier is not concretely determined, but we recommend to use the PropertyValue CTOR to create an instance of PropertyValue

◆ PropertyValue() [2/6]

template<typename T , std::enable_if_t< std::is_unsigned< T >::value &&!std::is_same< T, bool >::value, bool > = true>
adtf_file::PropertyValue::PropertyValue ( value)
inline

CTOR for unsigned integer value (uint8-uint64) and "unsigned" type.

Parameters
valueThe value to set

◆ PropertyValue() [3/6]

template<typename T , std::enable_if_t< std::is_integral< T >::value &&std::is_signed< T >::value, bool > = true>
adtf_file::PropertyValue::PropertyValue ( value)
inline

CTOR for signed integer value (int8-int64) and "signed" type.

Parameters
valueThe value to set

◆ PropertyValue() [4/6]

template<typename T , std::enable_if_t< std::is_floating_point< T >::value, bool > = true>
adtf_file::PropertyValue::PropertyValue ( value)
inline

CTOR for double or float value and "float" type.

Parameters
valueThe value to set

◆ PropertyValue() [5/6]

template<typename T , std::enable_if_t< std::is_same< T, bool >::value, bool > = true>
adtf_file::PropertyValue::PropertyValue ( value)
inline

CTOR for bool value and "bool" type.

Parameters
valueThe value to set

◆ PropertyValue() [6/6]

adtf_file::PropertyValue::PropertyValue ( std::string_view  string_value)
inline

CTOR for string value and "string" type.

Parameters
string_valueThe value to set

Member Function Documentation

◆ operator=() [1/2]

PropertyValue& adtf_file::PropertyValue::operator= ( const PropertyValue )
default

copy assignment

Returns
PropertyValue&

◆ operator=() [2/2]

PropertyValue& adtf_file::PropertyValue::operator= ( PropertyValue &&  )
default

move assignment

Returns
PropertyValue&

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

Copyright © CARIAD SE.
Generated on Fri Apr 19 2024 by doxygen 1.9.1
GIT Commit Hash: 82d535f82776c20b12fc60740bdae991b62444a7