28#ifndef GENAPI_ENUMCLASSES_H
29#define GENAPI_ENUMCLASSES_H
32namespace GENAPI_NAMESPACE
46 if (!pValue)
return false;
47 if( ValueStr ==
"Signed" )
49 else if( ValueStr ==
"Unsigned" )
63 ValueStr =
"Unsigned";
65 ValueStr =
"_UndefinedSign";
72 ToString(Result, &Value);
86 if (!pValue)
return false;
87 if( ValueStr ==
"BigEndian" )
89 else if( ValueStr ==
"LittleEndian" )
101 ValueStr =
"BigEndian";
103 ValueStr =
"LittleEndian";
105 ValueStr =
"_UndefinedEndian";
112 ToString(Result, &Value);
126 if (!pValue)
return false;
127 if( ValueStr ==
"Linear" )
129 else if( ValueStr ==
"Logarithmic" )
131 else if( ValueStr ==
"Boolean" )
133 else if( ValueStr ==
"PureNumber" )
135 else if( ValueStr ==
"HexNumber" )
137 else if( ValueStr ==
"IPV4Address" )
139 else if( ValueStr ==
"MACAddress" )
152 ValueStr =
"Logarithmic";
154 ValueStr =
"Boolean";
156 ValueStr =
"PureNumber";
158 ValueStr =
"HexNumber";
160 ValueStr =
"IPV4Address";
162 ValueStr =
"MACAddress";
164 ValueStr =
"_UndefinedRepresentation";
171 ToString(Result, &Value);
185 if (!pValue)
return false;
186 if( ValueStr ==
"Beginner" )
188 else if( ValueStr ==
"Expert" )
190 else if( ValueStr ==
"Guru" )
192 else if( ValueStr ==
"Invisible" )
203 ValueStr =
"Beginner";
204 else if( *pValue ==
Expert )
206 else if( *pValue ==
Guru )
209 ValueStr =
"Invisible";
211 ValueStr =
"_UndefinedVisibility";
217 ToString(Result, &Value);
232 if (!pValue)
return false;
233 if( ValueStr ==
"RW" )
235 else if( ValueStr ==
"RO" )
237 else if( ValueStr ==
"WO" )
239 else if( ValueStr ==
"NA" )
241 else if( ValueStr ==
"NI" )
253 else if( *pValue ==
RO )
255 else if( *pValue ==
WO )
257 else if( *pValue ==
NI )
259 else if( *pValue ==
NA )
262 ValueStr =
"_UndefinedAccessMode";
269 ToString(Result, &Value);
283 if( ! pValue )
return false;
284 if( ValueStr ==
"NoCache" )
286 else if( ValueStr ==
"WriteThrough" )
288 else if( ValueStr ==
"WriteAround" )
297 if( *pValue == NoCache )
298 ValueStr =
"NoCache";
299 else if( *pValue == WriteThrough )
300 ValueStr =
"WriteThrough";
301 else if( *pValue == WriteAround )
302 ValueStr =
"WriteAround";
304 ValueStr =
"_UndefinedCachingMode";
310 ToString(Result, &Value);
325 if (!pValue)
return false;
326 if( ValueStr ==
"Custom" )
328 else if( ValueStr ==
"Standard" )
341 ValueStr =
"Standard";
343 ValueStr =
"_UndefinedNameSpace";
349 ToString(Result, &Value);
363 if (!pValue)
return false;
364 if( ValueStr ==
"Yes" )
366 else if( ValueStr ==
"No" )
378 else if( *pValue ==
No )
381 ValueStr =
"_UndefinedYesNo";
388 ToString(Result, &Value);
402 if (!pValue)
return false;
403 if( ValueStr ==
"None" )
405 else if( ValueStr ==
"GEV" )
407 else if( ValueStr ==
"IIDC" )
409 else if( ValueStr ==
"CL" )
411 else if( ValueStr ==
"USB" )
421 if( *pValue ==
None )
423 else if( *pValue ==
GEV )
425 else if( *pValue ==
IIDC )
427 else if( *pValue ==
CL )
429 else if( *pValue ==
USB )
432 ValueStr =
"_UndefinedStandardNameSpace";
438 ToString(Result, &Value);
455 if( ValueStr ==
"Increasing" )
457 else if( ValueStr ==
"Decreasing" )
459 else if( ValueStr ==
"Varying" )
461 else if( ValueStr ==
"Automatic" )
475 ValueStr =
"Increasing";
477 ValueStr =
"Decreasing";
479 ValueStr =
"Varying";
481 ValueStr =
"Automatic";
483 ValueStr =
"_UndefinedESlope";
489 ToString(Result, &Value);
506 if( ValueStr ==
"Automatic" )
508 else if( ValueStr ==
"Fixed" )
510 else if( ValueStr ==
"Scientific" )
524 ValueStr =
"Automatic";
528 ValueStr =
"Scientific";
530 ValueStr =
"_UndefinedEDisplayNotation";
536 ToString(Result, &Value);
553 if( ValueStr ==
"From" )
555 else if( ValueStr ==
"To" )
557 else if( ValueStr ==
"None" )
572 else if( *pValue ==
idTo )
574 else if( *pValue ==
idNone )
577 ValueStr =
"_UndefinedEInputDirection";
583 ToString(Result, &Value);
595 if (!pValue)
return false;
596 if (ValueStr ==
"v1_0")
598 else if (ValueStr ==
"v1_1")
611 else if (*pValue ==
v1_1)
614 ValueStr =
"_Undefined";
621 ToString(Result, &Value);
Common types used in the public GenApi interface.
enum GENAPI_NAMESPACE::_EGenApiSchemaVersion EGenApiSchemaVersion
GenApi schema version.
@ v1_1
Indicates schema version 1.1.
Definition Types.h:239
@ v1_0
Indicates schema version 1.0.
Definition Types.h:238
EAccessModeClass holds conversion methods for the access mode enumeration.
Definition EnumClasses.h:226
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, EAccessMode *pValue)
Converts a string to an int32_t property.
Definition EnumClasses.h:248
static GENICAM_NAMESPACE::gcstring ToString(EAccessMode Value)
Converts a string to an int32_t property.
Definition EnumClasses.h:266
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, EAccessMode *pValue)
Converts a string to enum value.
Definition EnumClasses.h:229
ECachingModeClass holds conversion methods for the caching mode enumeration.
Definition EnumClasses.h:278
static GENICAM_NAMESPACE::gcstring ToString(ECachingMode Value)
Converts a string to an int32_t property.
Definition EnumClasses.h:307
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, ECachingMode *pValue)
Converts a string to enum value.
Definition EnumClasses.h:281
Holds conversion methods for the notation type of floats.
Definition EnumClasses.h:498
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, EDisplayNotation *pValue)
Converts a string to enum value.
Definition EnumClasses.h:501
static GENICAM_NAMESPACE::gcstring ToString(EDisplayNotation Value)
Converts a string to an int32_t property.
Definition EnumClasses.h:533
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, EDisplayNotation *pValue)
Converts a string to an int32_t property.
Definition EnumClasses.h:518
EEndianessClass holds conversion methods for the endianess enumeration.
Definition EnumClasses.h:81
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, EEndianess *pValue)
Converts a string to an int32_t property.
Definition EnumClasses.h:96
static GENICAM_NAMESPACE::gcstring ToString(EEndianess Value)
Converts a string to an int32_t property.
Definition EnumClasses.h:109
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, EEndianess *pValue)
Converts a string to enum value.
Definition EnumClasses.h:84
helper class converting EGenApiSchemaVersion from and to string
Definition EnumClasses.h:590
static GENICAM_NAMESPACE::gcstring ToString(EGenApiSchemaVersion Value)
Converts a string to an int32_t property.
Definition EnumClasses.h:618
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, EGenApiSchemaVersion *pValue)
Converts a string to an int32_t property.
Definition EnumClasses.h:605
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, EGenApiSchemaVersion *pValue)
Converts a string to enum value.
Definition EnumClasses.h:593
Holds conversion methods for the namespace enumeration.
Definition EnumClasses.h:320
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, ENameSpace *pValue)
Converts a string to an int32_t property.
Definition EnumClasses.h:335
static GENICAM_NAMESPACE::gcstring ToString(ENameSpace Value)
Converts a string to an int32_t property.
Definition EnumClasses.h:346
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, ENameSpace *pValue)
Converts a string to enum value.
Definition EnumClasses.h:323
ERepresentationClass holds conversion methods for the representation enumeration.
Definition EnumClasses.h:121
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, ERepresentation *pValue)
Converts a string to enum value.
Definition EnumClasses.h:124
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, ERepresentation *pValue)
Converts a string to an int32_t property.
Definition EnumClasses.h:146
static GENICAM_NAMESPACE::gcstring ToString(ERepresentation Value)
Converts a string to an int32_t property.
Definition EnumClasses.h:168
ESignClass holds conversion methods for the sign enumeration.
Definition EnumClasses.h:41
static GENICAM_NAMESPACE::gcstring ToString(ESign Value)
Converts a string to an int32_t property.
Definition EnumClasses.h:69
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, ESign *pValue)
Converts a string to an int32_t property.
Definition EnumClasses.h:56
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, ESign *pValue)
Converts a string to enum value.
Definition EnumClasses.h:44
Holds conversion methods for the converter formulas.
Definition EnumClasses.h:447
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, ESlope *pValue)
Converts a string to enum value.
Definition EnumClasses.h:450
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, ESlope *pValue)
Converts a string to an int32_t property.
Definition EnumClasses.h:469
static GENICAM_NAMESPACE::gcstring ToString(ESlope Value)
Converts a string to an int32_t property.
Definition EnumClasses.h:486
Holds conversion methods for the standard namespace enumeration.
Definition EnumClasses.h:397
static GENICAM_NAMESPACE::gcstring ToString(EStandardNameSpace Value)
Converts a string to an int32_t property.
Definition EnumClasses.h:435
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, EStandardNameSpace *pValue)
Converts a string to an int32_t property.
Definition EnumClasses.h:418
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, EStandardNameSpace *pValue)
Converts a string to enum value.
Definition EnumClasses.h:400
EVisibilityClass holds conversion methods for the visibility enumeration.
Definition EnumClasses.h:180
static GENICAM_NAMESPACE::gcstring ToString(EVisibility Value)
Converts a string to an int32_t property.
Definition EnumClasses.h:214
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, EVisibility *pValue)
Converts a string to an int32_t property.
Definition EnumClasses.h:199
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, EVisibility *pValue)
Converts a string to enum value.
Definition EnumClasses.h:183
Holds conversion methods for the standard namespace enumeration.
Definition EnumClasses.h:358
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, EYesNo *pValue)
Converts a string to enum value.
Definition EnumClasses.h:361
static GENICAM_NAMESPACE::gcstring ToString(EYesNo Value)
Converts a string to an int32_t property.
Definition EnumClasses.h:385
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, EYesNo *pValue)
Converts a string to an int32_t property.
Definition EnumClasses.h:373
A string class which is a clone of std::string.
Definition GCString.h:51
#define INVALID_ARGUMENT_EXCEPTION
Fires an invalid argument exception, e.g. throw INVALID_ARGUMENT_EXCEPTION("%ld too large",...
Definition GCException.h:237
enum GENAPI_NAMESPACE::_EDisplayNotation EDisplayNotation
enum GENAPI_NAMESPACE::_ESlope ESlope
enum GENAPI_NAMESPACE::_EInputDirection EInputDirection
@ Decreasing
strictly monotonous decreasing
Definition Types.h:155
@ Automatic
slope is determined automatically by probing the function
Definition Types.h:157
@ Increasing
strictly monotonous increasing
Definition Types.h:154
@ Varying
slope changes, e.g. at run-time
Definition Types.h:156
@ fnScientific
the notation is scientific, e.g. 1.234e2
Definition Types.h:180
@ fnFixed
the notation is fixed, e.g. 123.4
Definition Types.h:179
@ fnAutomatic
the notation if either scientific or fixed depending on what is shorter
Definition Types.h:178
@ idNone
SwissKnife is not used within a converter.
Definition Types.h:232
@ idFrom
Indicates a swiss knife that it is used as worker for a converter computing FROM.
Definition Types.h:230
@ idTo
Indicates a swiss knife that it is used as worker for a converter computing TO.
Definition Types.h:231
enum GENAPI_NAMESPACE::_EStandardNameSpace EStandardNameSpace
enum GENAPI_NAMESPACE::_ENameSpace ENameSpace
enum GENAPI_NAMESPACE::_ECachingMode ECachingMode
enum GENAPI_NAMESPACE::_EVisibility EVisibility
enum GENAPI_NAMESPACE::_EYesNo EYesNo
enum GENAPI_NAMESPACE::_ESign ESign
enum GENAPI_NAMESPACE::_ERepresentation ERepresentation
enum GENAPI_NAMESPACE::_EEndianess EEndianess
enum GENAPI_NAMESPACE::_EAccessMode EAccessMode
@ Yes
yes
Definition Types.h:140
@ No
no
Definition Types.h:141
@ Invisible
Not Visible.
Definition Types.h:70
@ Guru
Visible for Gurus.
Definition Types.h:69
@ Beginner
Always visible.
Definition Types.h:67
@ Expert
Visible for experts or Gurus.
Definition Types.h:68
@ NoCache
Do not use cache.
Definition Types.h:78
@ WriteAround
Write to register, write to cache on read.
Definition Types.h:80
@ WriteThrough
Write to cache and register.
Definition Types.h:79
@ LittleEndian
Register is little endian.
Definition Types.h:108
@ BigEndian
Register is big endian.
Definition Types.h:107
@ Unsigned
Integer is unsigned.
Definition Types.h:46
@ Signed
Integer is signed.
Definition Types.h:45
@ NI
Not implemented.
Definition Types.h:54
@ RO
Read Only.
Definition Types.h:57
@ WO
Write Only.
Definition Types.h:56
@ NA
Not available.
Definition Types.h:55
@ RW
Read and Write.
Definition Types.h:58
@ PureNumber
Decimal number in an edit control.
Definition Types.h:91
@ Linear
Slider with linear behavior.
Definition Types.h:88
@ Boolean
Check box.
Definition Types.h:90
@ Logarithmic
Slider with logarithmic behaviour.
Definition Types.h:89
@ IPV4Address
IP-Address.
Definition Types.h:93
@ HexNumber
Hex number in an edit control.
Definition Types.h:92
@ MACAddress
MAC-Address.
Definition Types.h:94
@ Custom
name resides in custom namespace
Definition Types.h:117
@ Standard
name resides in one of the standard namespaces
Definition Types.h:118
@ CL
name resides in camera link namespace
Definition Types.h:130
@ USB
name resides in USB namespace
Definition Types.h:131
@ IIDC
name resides in 1394 IIDC namespace
Definition Types.h:129
@ GEV
name resides in GigE Vision namespace
Definition Types.h:128
@ None
name resides in custom namespace
Definition Types.h:127