value.cpp
Go to the documentation of this file.
1 
11 /*
12 #include <opc/common/value.h>
13 #include <opc/common/errors.h>
14 
15 Common::ValueType Common::GetValueType(const Common::VariantType& value)
16 {
17  switch(value.which())
18  {
19  case 0: return CHAR_TYPE;
20  case 1: return INT_TYPE;
21  case 2: return UNSIGNED_INT_TYPE;
22  case 3: return FLOAT_TYPE;
23  case 4: return DOUBLE_TYPE;
24  case 5: return STRING_TYPE;
25  case 6: return WSTRING_TYPE;
26  }
27  THROW_ERROR1(InvalidValueType, value.which());
28 }
29 
30 */


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:08