Value class that handles different types of data.
More...
#include <Value.h>
Value class that handles different types of data.
◆ Value() [1/4]
Inter4ql::Value::Value |
( |
std::string |
s | ) |
|
|
explicit |
constructor with constructed string value
- Parameters
-
s | value with a type string |
◆ Value() [2/4]
Inter4ql::Value::Value |
( |
Value * |
value | ) |
|
|
explicit |
copy constructor
- Parameters
-
◆ Value() [3/4]
constructor with constructed integer value
- Parameters
-
i | value with an integer type |
_type | type of a value |
◆ Value() [4/4]
Inter4ql::Value::Value |
( |
double |
d | ) |
|
|
explicit |
constructor with constructed double value
- Parameters
-
d | value with a double type |
◆ ~Value()
Inter4ql::Value::~Value |
( |
| ) |
|
◆ get_type()
getter for a value type
- Returns
- enumeration type (ID, VARIABLE, STRING, INT, DOUBLE)
◆ get_value_double()
double Inter4ql::Value::get_value_double |
( |
| ) |
const |
getter for a double type value
- Returns
- value with a double type
◆ get_value_int()
int Inter4ql::Value::get_value_int |
( |
| ) |
const |
getter for an integer type value
- Returns
- value with an integer type
◆ get_value_numeric()
double Inter4ql::Value::get_value_numeric |
( |
| ) |
|
gives numeric value
- Returns
- double with numeric value of this instance
◆ get_value_string()
std::string Inter4ql::Value::get_value_string |
( |
| ) |
const |
getter for a string type value
- Returns
- value with a string type
◆ is_numeric()
bool Inter4ql::Value::is_numeric |
( |
| ) |
|
checks if value is numeric
- Returns
- is value numeric?
◆ print()
std::string Inter4ql::Value::print |
( |
bool |
type = true | ) |
|
returns string with value information
- Parameters
-
type | do we want to print information about value type? |
- Returns
- value information packed in a std::string
◆ set_value() [1/3]
void Inter4ql::Value::set_value |
( |
std::string |
s | ) |
|
setter for string type value
- Parameters
-
s | value with a string type |
◆ set_value() [2/3]
setter for integer type value
- Parameters
-
i | value with an integer type |
_type | type of a value (if we want to hardtype the value) |
◆ set_value() [3/3]
void Inter4ql::Value::set_value |
( |
double |
d | ) |
|
setter for double type value
- Parameters
-
d | value with a double type |
The documentation for this class was generated from the following files:
- /home/lukasz/Desktop/Inter4QL_5_2/Inter4QL_5_2/src/Value.h
- /home/lukasz/Desktop/Inter4QL_5_2/Inter4QL_5_2/src/Value.cc