30 #ifndef GENAPI_ENUMCLASSES_H 31 #define GENAPI_ENUMCLASSES_H 48 if (!pValue)
return false;
49 if( ValueStr ==
"Signed" )
51 else if( ValueStr ==
"Unsigned" )
65 ValueStr =
"Unsigned";
67 ValueStr =
"_UndefinedSign";
88 if (!pValue)
return false;
89 if( ValueStr ==
"BigEndian" )
91 else if( ValueStr ==
"LittleEndian" )
103 ValueStr =
"BigEndian";
105 ValueStr =
"LittleEndian";
107 ValueStr =
"_UndefinedEndian";
128 if (!pValue)
return false;
129 if( ValueStr ==
"Linear" )
131 else if( ValueStr ==
"Logarithmic" )
133 else if( ValueStr ==
"Boolean" )
135 else if( ValueStr ==
"PureNumber" )
137 else if( ValueStr ==
"HexNumber" )
139 else if( ValueStr ==
"IPV4Address" )
141 else if( ValueStr ==
"MACAddress" )
154 ValueStr =
"Logarithmic";
156 ValueStr =
"Boolean";
158 ValueStr =
"PureNumber";
160 ValueStr =
"HexNumber";
162 ValueStr =
"IPV4Address";
164 ValueStr =
"MACAddress";
166 ValueStr =
"_UndefinedRepresentation";
187 if (!pValue)
return false;
188 if( ValueStr ==
"Beginner" )
190 else if( ValueStr ==
"Expert" )
192 else if( ValueStr ==
"Guru" )
194 else if( ValueStr ==
"Invisible" )
205 ValueStr =
"Beginner";
206 else if( *pValue ==
Expert )
208 else if( *pValue ==
Guru )
211 ValueStr =
"Invisible";
213 ValueStr =
"_UndefinedVisibility";
234 if (!pValue)
return false;
235 if( ValueStr ==
"RW" )
237 else if( ValueStr ==
"RO" )
239 else if( ValueStr ==
"WO" )
241 else if( ValueStr ==
"NA" )
243 else if( ValueStr ==
"NI" )
255 else if( *pValue ==
RO )
257 else if( *pValue ==
WO )
259 else if( *pValue ==
NI )
261 else if( *pValue ==
NA )
264 ValueStr =
"_UndefinedAccessMode";
285 if( ! pValue )
return false;
286 if( ValueStr ==
"NoCache" )
288 else if( ValueStr ==
"WriteThrough" )
290 else if( ValueStr ==
"WriteAround" )
300 ValueStr =
"NoCache";
302 ValueStr =
"WriteThrough";
304 ValueStr =
"WriteAround";
306 ValueStr =
"_UndefinedCachingMode";
327 if (!pValue)
return false;
328 if( ValueStr ==
"Custom" )
330 else if( ValueStr ==
"Standard" )
343 ValueStr =
"Standard";
345 ValueStr =
"_UndefinedNameSpace";
365 if (!pValue)
return false;
366 if( ValueStr ==
"Yes" )
368 else if( ValueStr ==
"No" )
380 else if( *pValue ==
No )
383 ValueStr =
"_UndefinedYesNo";
404 if (!pValue)
return false;
405 if( ValueStr ==
"None" )
407 else if( ValueStr ==
"GEV" )
409 else if( ValueStr ==
"IIDC" )
411 else if( ValueStr ==
"CL" )
413 else if( ValueStr ==
"USB" )
423 if( *pValue ==
None )
425 else if( *pValue ==
GEV )
427 else if( *pValue ==
IIDC )
429 else if( *pValue ==
CL )
431 else if( *pValue ==
USB )
434 ValueStr =
"_UndefinedStandardNameSpace";
457 if( ValueStr ==
"Increasing" )
459 else if( ValueStr ==
"Decreasing" )
461 else if( ValueStr ==
"Varying" )
463 else if( ValueStr ==
"Automatic" )
477 ValueStr =
"Increasing";
479 ValueStr =
"Decreasing";
481 ValueStr =
"Varying";
483 ValueStr =
"Automatic";
485 ValueStr =
"_UndefinedESlope";
508 if( ValueStr ==
"Automatic" )
510 else if( ValueStr ==
"Fixed" )
512 else if( ValueStr ==
"Scientific" )
526 ValueStr =
"Automatic";
530 ValueStr =
"Scientific";
532 ValueStr =
"_UndefinedEDisplayNotation";
555 if( ValueStr ==
"From" )
557 else if( ValueStr ==
"To" )
559 else if( ValueStr ==
"None" )
574 else if( *pValue ==
idTo )
576 else if( *pValue ==
idNone )
579 ValueStr =
"_UndefinedEInputDirection";
597 if (!pValue)
return false;
598 if (ValueStr ==
"v1_0")
600 else if (ValueStr ==
"v1_1")
613 else if (*pValue ==
v1_1)
616 ValueStr =
"_Undefined";
631 #endif // ifndef GENAPI_ENUMCLASSES_H static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, EStandardNameSpace *pValue)
Converts a string to enum value.
enum GENAPI_NAMESPACE::_EVisibility EVisibility
recommended visibility of a node
Slider with logarithmic behaviour.
static GENICAM_NAMESPACE::gcstring ToString(ESign Value)
Converts a string to an int32_t property.
name resides in one of the standard namespaces
Hex number in an edit control.
Common types used in the public GenApi interface.
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, ENameSpace *pValue)
Converts a string to an int32_t property.
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, EAccessMode *pValue)
Converts a string to an int32_t property.
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, EGenApiSchemaVersion *pValue)
Converts a string to an int32_t property.
strictly monotonous decreasing
Indicates a swiss knife that it is used as worker for a converter computing FROM. ...
name resides in custom namespace
enum GENAPI_NAMESPACE::_EEndianess EEndianess
Endianess of a value in a register.
static GENICAM_NAMESPACE::gcstring ToString(ENameSpace Value)
Converts a string to an int32_t property.
name resides in 1394 IIDC namespace
Decimal number in an edit control.
slope is determined automatically by probing the function
enum GENAPI_NAMESPACE::_ESign ESign
signed or unsigned integers
static GENICAM_NAMESPACE::gcstring ToString(ESlope Value)
Converts a string to an int32_t property.
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, ECachingMode *pValue)
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, EYesNo *pValue)
Converts a string to enum value.
strictly monotonous increasing
static GENICAM_NAMESPACE::gcstring ToString(EYesNo Value)
Converts a string to an int32_t property.
static GENICAM_NAMESPACE::gcstring ToString(EVisibility Value)
Converts a string to an int32_t property.
EEndianessClass holds conversion methods for the endianess enumeration.
static GENICAM_NAMESPACE::gcstring ToString(ECachingMode Value)
Converts a string to an int32_t property.
EAccessModeClass holds conversion methods for the access mode enumeration.
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, EStandardNameSpace *pValue)
Converts a string to an int32_t property.
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, EDisplayNotation *pValue)
Converts a string to an int32_t property.
Visible for experts or Gurus.
the notation is scientific, e.g. 1.234e2
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, ESign *pValue)
Converts a string to enum value.
ERepresentationClass holds conversion methods for the representation enumeration. ...
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, EVisibility *pValue)
Converts a string to an int32_t property.
Holds conversion methods for the namespace enumeration.
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, ESlope *pValue)
Converts a string to enum value.
Write to cache and register.
enum GENAPI_NAMESPACE::_ERepresentation ERepresentation
recommended representation of a node value
static GENICAM_NAMESPACE::gcstring ToString(EStandardNameSpace Value)
Converts a string to an int32_t property.
enum GENAPI_NAMESPACE::_ECachingMode ECachingMode
caching mode of a register
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, EAccessMode *pValue)
Converts a string to enum value.
enum GENAPI_NAMESPACE::_EDisplayNotation EDisplayNotation
typedef for float notation
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, ENameSpace *pValue)
Converts a string to enum value.
virtual GENICAM_NAMESPACE::gcstring ToString()=0
Returns a string representation of the digit.
Indicates a swiss knife that it is used as worker for a converter computing TO.
Register is little endian.
Holds conversion methods for the notation type of floats.
helper class converting EGenApiSchemaVersion from and to string
enum GENAPI_NAMESPACE::_EYesNo EYesNo
Defines the choices of a Yes/No alternatives.
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, ESign *pValue)
Converts a string to an int32_t property.
Write to register, write to cache on read.
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, EEndianess *pValue)
Converts a string to an int32_t property.
name resides in USB namespace
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, EGenApiSchemaVersion *pValue)
Converts a string to enum value.
EVisibilityClass holds conversion methods for the visibility enumeration.
name resides in custom namespace
ECachingModeClass holds conversion methods for the caching mode enumeration.
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, EVisibility *pValue)
Converts a string to enum value.
enum GENAPI_NAMESPACE::_EGenApiSchemaVersion EGenApiSchemaVersion
GenApi schema version.
Holds conversion methods for the standard namespace enumeration.
name resides in camera link namespace
static GENICAM_NAMESPACE::gcstring ToString(EDisplayNotation Value)
Converts a string to an int32_t property.
A string class which is a clone of std::string.
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, EDisplayNotation *pValue)
Converts a string to enum value.
static GENICAM_NAMESPACE::gcstring ToString(ERepresentation Value)
Converts a string to an int32_t property.
enum GENAPI_NAMESPACE::_EStandardNameSpace EStandardNameSpace
Defines from which standard namespace a node name comes from.
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, EEndianess *pValue)
Converts a string to enum value.
Holds conversion methods for the standard namespace enumeration.
SwissKnife is not used within a converter.
slope changes, e.g. at run-time
the notation if either scientific or fixed depending on what is shorter
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, ESlope *pValue)
Converts a string to an int32_t property.
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, ERepresentation *pValue)
Converts a string to enum value.
enum GENAPI_NAMESPACE::_EAccessMode EAccessMode
access mode of a node
enum GENAPI_NAMESPACE::_EInputDirection EInputDirection
typedef for link type
Slider with linear behavior.
#define INVALID_ARGUMENT_EXCEPTION
Fires an invalid argument exception, e.g. throw INVALID_ARGUMENT_EXCEPTION("%ld too large"...
static bool FromString(const GENICAM_NAMESPACE::gcstring &ValueStr, ECachingMode *pValue)
Converts a string to enum value.
ESignClass holds conversion methods for the sign enumeration.
enum GENAPI_NAMESPACE::_ESlope ESlope
typedef for formula type
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, ERepresentation *pValue)
Converts a string to an int32_t property.
static GENICAM_NAMESPACE::gcstring ToString(EEndianess Value)
Converts a string to an int32_t property.
Holds conversion methods for the converter formulas.
static void ToString(GENICAM_NAMESPACE::gcstring &ValueStr, EYesNo *pValue)
Converts a string to an int32_t property.
static GENICAM_NAMESPACE::gcstring ToString(EAccessMode Value)
Converts a string to an int32_t property.
static GENICAM_NAMESPACE::gcstring ToString(EGenApiSchemaVersion Value)
Converts a string to an int32_t property.
name resides in GigE Vision namespace
Part of the generic device API.
the notation is fixed, e.g. 123.4
enum GENAPI_NAMESPACE::_ENameSpace ENameSpace
Defines if a node name is standard or custom.