This class represents the union AnnotationParameterValue defined by the user in the IDL file. More...
#include <AnnotationParameterValue.h>
Public Member Functions | |
AnnotationParameterValue () | |
Default constructor. More... | |
~AnnotationParameterValue () | |
Default destructor. More... | |
AnnotationParameterValue (const AnnotationParameterValue &x) | |
Copy constructor. More... | |
AnnotationParameterValue (AnnotationParameterValue &&x) | |
Move constructor. More... | |
AnnotationParameterValue & | operator= (const AnnotationParameterValue &x) |
Copy assignment. More... | |
AnnotationParameterValue & | operator= (AnnotationParameterValue &&x) |
Move assignment. More... | |
void | _d (char __d) |
This function sets the discriminator value. More... | |
char | _d () const |
This function returns the value of the discriminator. More... | |
char & | _d () |
This function returns a reference to the discriminator. More... | |
void | boolean_value (bool _boolean_value) |
This function sets a value in member boolean_value. More... | |
bool | boolean_value () const |
This function returns the value of member boolean_value. More... | |
bool & | boolean_value () |
This function returns a reference to member boolean_value. More... | |
void | byte_value (uint8_t _byte_value) |
This function sets a value in member byte_value. More... | |
uint8_t | byte_value () const |
This function returns the value of member byte_value. More... | |
uint8_t & | byte_value () |
This function returns a reference to member byte_value. More... | |
void | int16_value (int16_t _int16_value) |
This function sets a value in member int16_value. More... | |
int16_t | int16_value () const |
This function returns the value of member int16_value. More... | |
int16_t & | int16_value () |
This function returns a reference to member int16_value. More... | |
void | uint_16_value (uint16_t _uint_16_value) |
This function sets a value in member uint_16_value. More... | |
uint16_t | uint_16_value () const |
This function returns the value of member uint_16_value. More... | |
uint16_t & | uint_16_value () |
This function returns a reference to member uint_16_value. More... | |
void | int32_value (int32_t _int32_value) |
This function sets a value in member int32_value. More... | |
int32_t | int32_value () const |
This function returns the value of member int32_value. More... | |
int32_t & | int32_value () |
This function returns a reference to member int32_value. More... | |
void | uint32_value (uint32_t _uint32_value) |
This function sets a value in member uint32_value. More... | |
uint32_t | uint32_value () const |
This function returns the value of member uint32_value. More... | |
uint32_t & | uint32_value () |
This function returns a reference to member uint32_value. More... | |
void | int64_value (int64_t _int64_value) |
This function sets a value in member int64_value. More... | |
int64_t | int64_value () const |
This function returns the value of member int64_value. More... | |
int64_t & | int64_value () |
This function returns a reference to member int64_value. More... | |
void | uint64_value (uint64_t _uint64_value) |
This function sets a value in member uint64_value. More... | |
uint64_t | uint64_value () const |
This function returns the value of member uint64_value. More... | |
uint64_t & | uint64_value () |
This function returns a reference to member uint64_value. More... | |
void | float32_value (float _float32_value) |
This function sets a value in member float32_value. More... | |
float | float32_value () const |
This function returns the value of member float32_value. More... | |
float & | float32_value () |
This function returns a reference to member float32_value. More... | |
void | float64_value (double _float64_value) |
This function sets a value in member float64_value. More... | |
double | float64_value () const |
This function returns the value of member float64_value. More... | |
double & | float64_value () |
This function returns a reference to member float64_value. More... | |
void | float128_value (long double _float128_value) |
This function sets a value in member float128_value. More... | |
long double | float128_value () const |
This function returns the value of member float128_value. More... | |
long double & | float128_value () |
This function returns a reference to member float128_value. More... | |
void | char_value (char _char_value) |
This function sets a value in member char_value. More... | |
char | char_value () const |
This function returns the value of member char_value. More... | |
char & | char_value () |
This function returns a reference to member char_value. More... | |
void | wchar_value (wchar_t _wchar_value) |
This function sets a value in member wchar_value. More... | |
wchar_t | wchar_value () const |
This function returns the value of member wchar_value. More... | |
wchar_t & | wchar_value () |
This function returns a reference to member wchar_value. More... | |
void | enumerated_value (int32_t _enumerated_value) |
This function sets a value in member enumerated_value. More... | |
int32_t | enumerated_value () const |
This function returns the value of member enumerated_value. More... | |
int32_t & | enumerated_value () |
This function returns a reference to member enumerated_value. More... | |
void | string8_value (const std::string &_string8_value) |
This function copies the value in member string8_value. More... | |
void | string8_value (std::string &&_string8_value) |
This function moves the value in member string8_value. More... | |
const std::string & | string8_value () const |
This function returns a constant reference to member string8_value. More... | |
std::string & | string8_value () |
This function returns a reference to member string8_value. More... | |
void | string16_value (const std::wstring &_string16_value) |
This function copies the value in member string16_value. More... | |
void | string16_value (std::wstring &&_string16_value) |
This function moves the value in member string16_value. More... | |
const std::wstring & | string16_value () const |
This function returns a constant reference to member string16_value. More... | |
std::wstring & | string16_value () |
This function returns a reference to member string16_value. More... | |
void | extended_value (const ExtendedAnnotationParameterValue &_extended_value) |
This function copies the value in member extended_value. More... | |
void | extended_value (ExtendedAnnotationParameterValue &&_extended_value) |
This function moves the value in member extended_value. More... | |
const ExtendedAnnotationParameterValue & | extended_value () const |
This function returns a constant reference to member extended_value. More... | |
ExtendedAnnotationParameterValue & | extended_value () |
This function returns a reference to member extended_value. More... | |
void | serialize (eprosima::fastcdr::Cdr &cdr) const |
This function serializes an object using CDR serialization. More... | |
void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. More... | |
void | serializeKey (eprosima::fastcdr::Cdr &cdr) const |
This function serializes the key members of an object using CDR serialization. More... | |
bool | operator== (const AnnotationParameterValue &other) const |
std::string | to_string () const |
Aux method to return value as its string representation. More... | |
void | from_string (const std::string &value) |
Aux method to set value from its string representation. More... | |
Static Public Member Functions | |
static size_t | getCdrSerializedSize (const AnnotationParameterValue &data, size_t current_alignment=0) |
This function returns the serialized size of a data depending on the buffer alignment. More... | |
static size_t | getKeyMaxCdrSerializedSize (size_t current_alignment=0) |
This function returns the maximum serialized size of the Key of an object depending on the buffer alignment. More... | |
static bool | isKeyDefined () |
This function tells you if the Key has been defined for this type. More... | |
This class represents the union AnnotationParameterValue defined by the user in the IDL file.
Default constructor.
Default destructor.
AnnotationParameterValue | ( | const AnnotationParameterValue & | x | ) |
Copy constructor.
x | Reference to the object AnnotationParameterValue that will be copied. |
Move constructor.
x | Reference to the object AnnotationParameterValue that will be copied. |
char& _d | ( | ) |
This function returns a reference to the discriminator.
char _d | ( | ) | const |
This function returns the value of the discriminator.
void _d | ( | char | __d | ) |
This function sets the discriminator value.
__d | New value for the discriminator. |
eprosima::fastcdr::BadParamException | This exception is thrown if the new value doesn't correspond to the selected union member. |
bool& boolean_value | ( | ) |
This function returns a reference to member boolean_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
bool boolean_value | ( | ) | const |
This function returns the value of member boolean_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void boolean_value | ( | bool | _boolean_value | ) |
This function sets a value in member boolean_value.
_boolean_value | New value for member boolean_value |
uint8_t& byte_value | ( | ) |
This function returns a reference to member byte_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
uint8_t byte_value | ( | ) | const |
This function returns the value of member byte_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void byte_value | ( | uint8_t | _byte_value | ) |
This function sets a value in member byte_value.
_byte_value | New value for member byte_value |
char& char_value | ( | ) |
This function returns a reference to member char_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
char char_value | ( | ) | const |
This function returns the value of member char_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void char_value | ( | char | _char_value | ) |
This function sets a value in member char_value.
_char_value | New value for member char_value |
void deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
int32_t& enumerated_value | ( | ) |
This function returns a reference to member enumerated_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
int32_t enumerated_value | ( | ) | const |
This function returns the value of member enumerated_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void enumerated_value | ( | int32_t | _enumerated_value | ) |
This function sets a value in member enumerated_value.
_enumerated_value | New value for member enumerated_value |
ExtendedAnnotationParameterValue& extended_value | ( | ) |
This function returns a reference to member extended_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
const ExtendedAnnotationParameterValue& extended_value | ( | ) | const |
This function returns a constant reference to member extended_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void extended_value | ( | const ExtendedAnnotationParameterValue & | _extended_value | ) |
This function copies the value in member extended_value.
_extended_value | New value to be copied in member extended_value |
void extended_value | ( | ExtendedAnnotationParameterValue && | _extended_value | ) |
This function moves the value in member extended_value.
_extended_value | New value to be moved in member extended_value |
long double& float128_value | ( | ) |
This function returns a reference to member float128_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
long double float128_value | ( | ) | const |
This function returns the value of member float128_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void float128_value | ( | long double | _float128_value | ) |
This function sets a value in member float128_value.
_float128_value | New value for member float128_value |
float& float32_value | ( | ) |
This function returns a reference to member float32_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
float float32_value | ( | ) | const |
This function returns the value of member float32_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void float32_value | ( | float | _float32_value | ) |
This function sets a value in member float32_value.
_float32_value | New value for member float32_value |
double& float64_value | ( | ) |
This function returns a reference to member float64_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
double float64_value | ( | ) | const |
This function returns the value of member float64_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void float64_value | ( | double | _float64_value | ) |
This function sets a value in member float64_value.
_float64_value | New value for member float64_value |
|
inline |
Aux method to set value from its string representation.
|
static |
This function returns the serialized size of a data depending on the buffer alignment.
data | Data which is calculated its serialized size. |
current_alignment | Buffer alignment. |
|
static |
This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
int16_t& int16_value | ( | ) |
This function returns a reference to member int16_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
int16_t int16_value | ( | ) | const |
This function returns the value of member int16_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void int16_value | ( | int16_t | _int16_value | ) |
This function sets a value in member int16_value.
_int16_value | New value for member int16_value |
int32_t& int32_value | ( | ) |
This function returns a reference to member int32_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
int32_t int32_value | ( | ) | const |
This function returns the value of member int32_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void int32_value | ( | int32_t | _int32_value | ) |
This function sets a value in member int32_value.
_int32_value | New value for member int32_value |
int64_t& int64_value | ( | ) |
This function returns a reference to member int64_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
int64_t int64_value | ( | ) | const |
This function returns the value of member int64_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void int64_value | ( | int64_t | _int64_value | ) |
This function sets a value in member int64_value.
_int64_value | New value for member int64_value |
|
static |
This function tells you if the Key has been defined for this type.
AnnotationParameterValue& operator= | ( | AnnotationParameterValue && | x | ) |
Move assignment.
x | Reference to the object AnnotationParameterValue that will be copied. |
AnnotationParameterValue& operator= | ( | const AnnotationParameterValue & | x | ) |
Copy assignment.
x | Reference to the object AnnotationParameterValue that will be copied. |
bool operator== | ( | const AnnotationParameterValue & | other | ) | const |
void serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
void serializeKey | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes the key members of an object using CDR serialization.
cdr | CDR serialization object. |
std::wstring& string16_value | ( | ) |
This function returns a reference to member string16_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
const std::wstring& string16_value | ( | ) | const |
This function returns a constant reference to member string16_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void string16_value | ( | const std::wstring & | _string16_value | ) |
This function copies the value in member string16_value.
_string16_value | New value to be copied in member string16_value |
void string16_value | ( | std::wstring && | _string16_value | ) |
This function moves the value in member string16_value.
_string16_value | New value to be moved in member string16_value |
std::string& string8_value | ( | ) |
This function returns a reference to member string8_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
const std::string& string8_value | ( | ) | const |
This function returns a constant reference to member string8_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void string8_value | ( | const std::string & | _string8_value | ) |
This function copies the value in member string8_value.
_string8_value | New value to be copied in member string8_value |
void string8_value | ( | std::string && | _string8_value | ) |
This function moves the value in member string8_value.
_string8_value | New value to be moved in member string8_value |
|
inline |
Aux method to return value as its string representation.
uint32_t& uint32_value | ( | ) |
This function returns a reference to member uint32_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
uint32_t uint32_value | ( | ) | const |
This function returns the value of member uint32_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void uint32_value | ( | uint32_t | _uint32_value | ) |
This function sets a value in member uint32_value.
_uint32_value | New value for member uint32_value |
uint64_t& uint64_value | ( | ) |
This function returns a reference to member uint64_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
uint64_t uint64_value | ( | ) | const |
This function returns the value of member uint64_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void uint64_value | ( | uint64_t | _uint64_value | ) |
This function sets a value in member uint64_value.
_uint64_value | New value for member uint64_value |
uint16_t& uint_16_value | ( | ) |
This function returns a reference to member uint_16_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
uint16_t uint_16_value | ( | ) | const |
This function returns the value of member uint_16_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void uint_16_value | ( | uint16_t | _uint_16_value | ) |
This function sets a value in member uint_16_value.
_uint_16_value | New value for member uint_16_value |
wchar_t& wchar_value | ( | ) |
This function returns a reference to member wchar_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
wchar_t wchar_value | ( | ) | const |
This function returns the value of member wchar_value.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
void wchar_value | ( | wchar_t | _wchar_value | ) |
This function sets a value in member wchar_value.
_wchar_value | New value for member wchar_value |