23 #include "rtabmap/utilite/utilite_export.h"
58 UVariant(
const unsigned char & value);
60 UVariant(
const unsigned short & value);
62 UVariant(
const unsigned int & value);
67 UVariant(
const std::vector<char> & value);
68 UVariant(
const std::vector<unsigned char> & value);
69 UVariant(
const std::vector<short> & value);
70 UVariant(
const std::vector<unsigned short> & value);
71 UVariant(
const std::vector<int> & value);
72 UVariant(
const std::vector<unsigned int> & value);
73 UVariant(
const std::vector<float> & value);
74 UVariant(
const std::vector<double> & value);
78 bool isUndef()
const {
return type_ == kUndef;}
79 bool isBool()
const {
return type_ == kBool;}
80 bool isChar()
const {
return type_ == kChar;}
81 bool isUChar()
const {
return type_ == kUChar;}
82 bool isShort()
const {
return type_ == kShort;}
83 bool isUShort()
const {
return type_ == kUShort;}
84 bool isInt()
const {
return type_ == kInt;}
85 bool isUInt()
const {
return type_ == kUInt;}
86 bool isFloat()
const {
return type_ == kFloat;}
87 bool isDouble()
const {
return type_ == kDouble;}
88 bool isStr()
const {
return type_ == kStr;}
99 char toChar(
bool * ok = 0)
const;
100 unsigned char toUChar(
bool * ok = 0)
const;
101 short toShort(
bool * ok = 0)
const;
102 unsigned short toUShort(
bool * ok = 0)
const;
103 int toInt(
bool * ok = 0)
const;
104 unsigned int toUInt(
bool * ok = 0)
const;
105 float toFloat(
bool * ok = 0)
const;
106 double toDouble(
bool * ok = 0)
const;
107 std::string toStr(
bool * ok = 0)
const;
108 std::vector<char> toCharArray(
bool * ok = 0)
const;
109 std::vector<unsigned char> toUCharArray(
bool * ok = 0)
const;
110 std::vector<short> toShortArray(
bool * ok = 0)
const;
111 std::vector<unsigned short> toUShortArray(
bool * ok = 0)
const;
112 std::vector<int> toIntArray(
bool * ok = 0)
const;
113 std::vector<unsigned int> toUIntArray(
bool * ok = 0)
const;
114 std::vector<float> toFloatArray(
bool * ok = 0)
const;
115 std::vector<double> toDoubleArray(
bool * ok = 0)
const;