@@ -21,10 +21,10 @@ EitherType::~EitherType() {
21
21
}
22
22
23
23
EitherType::operator bool () const { return value_->boolValue (); }
24
- EitherType::operator uint32_t () const { return value_->unsignedValue (); }
25
- EitherType::operator uint64_t () const { return value_->unsignedlongintValue (); }
26
- EitherType::operator int32_t () const { return value_->intValue (); }
27
- EitherType::operator int64_t () const { return value_->longintValue (); }
24
+ EitherType::operator std:: uint32_t () const { return value_->unsignedValue (); }
25
+ EitherType::operator std:: uint64_t () const { return value_->unsignedlongintValue (); }
26
+ EitherType::operator std:: int32_t () const { return value_->intValue (); }
27
+ EitherType::operator std:: int64_t () const { return value_->longintValue (); }
28
28
EitherType::operator float () const { return value_->floatValue (); }
29
29
EitherType::operator double () const { return value_->doubleValue (); }
30
30
EitherType::operator std::string () const { return value_->stringValue (); }
@@ -40,16 +40,16 @@ void Value::deleteValue() {
40
40
delete (const bool *)value_;
41
41
break ;
42
42
case UNSIGNED:
43
- delete (const uint32_t *)value_;
43
+ delete (const std:: uint32_t *)value_;
44
44
break ;
45
45
case UNSIGNEDLONGINT:
46
- delete (const uint64_t *)value_;
46
+ delete (const std:: uint64_t *)value_;
47
47
break ;
48
48
case INT:
49
- delete (const int32_t *)value_;
49
+ delete (const std:: int32_t *)value_;
50
50
break ;
51
51
case LONGINT:
52
- delete (const int64_t *)value_;
52
+ delete (const std:: int64_t *)value_;
53
53
break ;
54
54
case FLOAT:
55
55
delete (const float *)value_;
@@ -83,12 +83,12 @@ void Value::deleteValue() {
83
83
Value::~Value () { deleteValue (); }
84
84
85
85
Value::Value (const bool &value) : type_(BOOL), value_(new bool (value)) {}
86
- Value::Value (const uint32_t &value)
87
- : type_(UNSIGNED), value_(new uint32_t (value)) {}
88
- Value::Value (const uint64_t &value)
89
- : type_(UNSIGNEDLONGINT), value_(new uint64_t (value)) {}
90
- Value::Value (const int32_t &value) : type_(INT), value_(new int32_t (value)) {}
91
- Value::Value (const int64_t &value)
86
+ Value::Value (const std:: uint32_t &value)
87
+ : type_(UNSIGNED), value_(new std:: uint32_t (value)) {}
88
+ Value::Value (const std:: uint64_t &value)
89
+ : type_(UNSIGNEDLONGINT), value_(new std:: uint64_t (value)) {}
90
+ Value::Value (const std:: int32_t &value) : type_(INT), value_(new std:: int32_t (value)) {}
91
+ Value::Value (const std:: int64_t &value)
92
92
: type_(LONGINT), value_(new int64_t (value)) {}
93
93
Value::Value (const float &value) : type_(FLOAT), value_(new float (value)) {}
94
94
Value::Value (const double &value) : type_(DOUBLE), value_(new double (value)) {}
@@ -206,25 +206,25 @@ bool Value::boolValue() const {
206
206
throw ExceptionAbstract (ExceptionAbstract::TOOLS, " value is not an bool" );
207
207
}
208
208
209
- uint32_t Value::unsignedValue () const {
210
- if (type_ == UNSIGNED) return *((const uint32_t *)value_);
209
+ std:: uint32_t Value::unsignedValue () const {
210
+ if (type_ == UNSIGNED) return *((const std:: uint32_t *)value_);
211
211
throw ExceptionAbstract (ExceptionAbstract::TOOLS,
212
212
" value is not an unsigned int" );
213
213
}
214
214
215
- uint64_t Value::unsignedlongintValue () const {
216
- if (type_ == UNSIGNEDLONGINT) return *((const uint64_t *)value_);
215
+ std:: uint64_t Value::unsignedlongintValue () const {
216
+ if (type_ == UNSIGNEDLONGINT) return *((const std:: uint64_t *)value_);
217
217
throw ExceptionAbstract (ExceptionAbstract::TOOLS,
218
218
" value is not an unsigned long int" );
219
219
}
220
220
221
- int64_t Value::longintValue () const {
222
- if (type_ == LONGINT) return *((const int64_t *)value_);
221
+ std:: int64_t Value::longintValue () const {
222
+ if (type_ == LONGINT) return *((const std:: int64_t *)value_);
223
223
throw ExceptionAbstract (ExceptionAbstract::TOOLS, " value is not an long int" );
224
224
}
225
225
226
- int32_t Value::intValue () const {
227
- if (type_ == INT) return *((const int32_t *)value_);
226
+ std:: int32_t Value::intValue () const {
227
+ if (type_ == INT) return *((const std:: int32_t *)value_);
228
228
throw ExceptionAbstract (ExceptionAbstract::TOOLS, " value is not an int" );
229
229
}
230
230
@@ -356,13 +356,13 @@ std::ostream &operator<<(std::ostream &os, const Value &value) {
356
356
template <>
357
357
const Value::Type ValueHelper<bool >::TypeID = Value::BOOL;
358
358
template <>
359
- const Value::Type ValueHelper<uint32_t >::TypeID = Value::UNSIGNED;
359
+ const Value::Type ValueHelper<std:: uint32_t >::TypeID = Value::UNSIGNED;
360
360
template <>
361
- const Value::Type ValueHelper<uint64_t >::TypeID = Value::UNSIGNEDLONGINT;
361
+ const Value::Type ValueHelper<std:: uint64_t >::TypeID = Value::UNSIGNEDLONGINT;
362
362
template <>
363
- const Value::Type ValueHelper<int32_t >::TypeID = Value::INT;
363
+ const Value::Type ValueHelper<std:: int32_t >::TypeID = Value::INT;
364
364
template <>
365
- const Value::Type ValueHelper<int64_t >::TypeID = Value::LONGINT;
365
+ const Value::Type ValueHelper<std:: int64_t >::TypeID = Value::LONGINT;
366
366
template <>
367
367
const Value::Type ValueHelper<float >::TypeID = Value::FLOAT;
368
368
template <>
0 commit comments