This declares a variant type (to be used with the property bag in the streams factory).
More...
#include <libCZI_StreamsLib.h>
This declares a variant type (to be used with the property bag in the streams factory).
◆ Type
Values that represent the type represented by this variant.
Enumerator |
---|
Invalid | An enum constant representing the 'invalid' type (would throw an invalid-argument-exception).
|
Int32 | An enum constant representing the 'signed 32-bit integer' type.
|
Float | An enum constant representing the 'float' type.
|
Double | An enum constant representing the 'double' type.
|
Boolean | An enum constant representing the 'boolean' type.
|
String | An enum constant representing the 'string' type.
|
◆ Property() [1/6]
libCZI::StreamsFactory::Property::Property |
( |
std::int32_t |
v | ) |
|
|
inlineexplicit |
Constructor for initializing the 'int32' type.
- Parameters
-
v | The value to set the variant to. |
◆ Property() [2/6]
libCZI::StreamsFactory::Property::Property |
( |
double |
v | ) |
|
|
inlineexplicit |
Constructor for initializing the 'double' type.
- Parameters
-
v | The value to set the variant to. |
◆ Property() [3/6]
libCZI::StreamsFactory::Property::Property |
( |
float |
v | ) |
|
|
inlineexplicit |
Constructor for initializing the 'float' type.
- Parameters
-
v | The value to set the variant to. |
◆ Property() [4/6]
libCZI::StreamsFactory::Property::Property |
( |
bool |
v | ) |
|
|
inlineexplicit |
Constructor for initializing the 'bool' type.
- Parameters
-
v | The value to set the variant to. |
◆ Property() [5/6]
libCZI::StreamsFactory::Property::Property |
( |
const std::string & |
v | ) |
|
|
inlineexplicit |
Constructor for initializing the 'string' type.
- Parameters
-
v | The value to set the variant to. |
◆ Property() [6/6]
libCZI::StreamsFactory::Property::Property |
( |
const char * |
string | ) |
|
|
inlineexplicit |
Constructor for initializing the 'string' type.
- Parameters
-
string | The value to set the variant to. |
◆ SetBool()
void libCZI::StreamsFactory::Property::SetBool |
( |
bool |
v | ) |
|
|
inline |
Sets the type of the variant to "Boolean" and the value to the specified value.
- Parameters
-
◆ SetDouble()
void libCZI::StreamsFactory::Property::SetDouble |
( |
double |
v | ) |
|
|
inline |
Sets the type of the variant to "Double" and the value to the specified value.
- Parameters
-
◆ SetFloat()
void libCZI::StreamsFactory::Property::SetFloat |
( |
float |
v | ) |
|
|
inline |
Sets the type of the variant to "Float" and the value to the specified value.
- Parameters
-
◆ SetInt32()
void libCZI::StreamsFactory::Property::SetInt32 |
( |
std::int32_t |
v | ) |
|
|
inline |
Sets the type of the variant to "Int32" and the value to the specified value.
- Parameters
-
◆ SetString()
void libCZI::StreamsFactory::Property::SetString |
( |
const std::string & |
v | ) |
|
|
inline |
Sets the type of the variant to "String" and the value to the specified value.
- Parameters
-
The documentation for this struct was generated from the following file: