|
crawlserv++
[under development]
Application for crawling and analyzing textual content of websites.
|
A generic value. More...
#include <Data.hpp>
Public Types | |
| enum | _if_too_large { _error, _trim, _empty, _null } |
| Enumeration for the action that will be performed if a string is too large for the database. More... | |
Public Member Functions | |
| Value ()=default | |
| Default constructor initializing a null value. More... | |
| Value (bool value) | |
| Constructor initializing a boolean value. More... | |
| Value (std::int32_t value) | |
| Constructor initializing a 32-bit integer. More... | |
| Value (std::uint32_t value) | |
| Constructor initializing an unsigned 32-bit integer. More... | |
| Value (std::int64_t value) | |
| Constructor initializing a 64-bit integer. More... | |
| Value (std::uint64_t value) | |
| Constructor initializing an unsigned 64-bit integer. More... | |
| Value (double value) | |
| Constructor initializing a floating point value (with double precision). More... | |
| Value (const std::string &value) | |
| Constructor initializing a string value. More... | |
| void | clear () |
| Clears the current value and re-initializes it as null value. More... | |
Public Attributes | |
| union { | |
| bool _b | |
| Boolean value. More... | |
| std::int32_t _i32 | |
| 32-bit integer value. More... | |
| std::uint32_t _ui32 | |
| Unsigned 32-bit integer value. More... | |
| std::int64_t _i64 | |
| 64-bit integer value. More... | |
| std::uint64_t _ui64 {} | |
| Unsigned 64-bit integer value. More... | |
| double _d | |
| Floating point value (with double precision). More... | |
| }; | |
| Union for numeric (including boolean) values. More... | |
| std::string | _s |
| String value. More... | |
| bool | _isnull {true} |
| Null value. More... | |
| enum crawlservpp::Data::Value::_if_too_large | _error |
| Action that will be performed if a string is too large for the database. More... | |
A generic value.
The value can be boolean, numeric, null or a string.
|
default |
Default constructor initializing a null value.
Referenced by clear().
|
inlineexplicit |
Constructor initializing a boolean value.
| value | The boolean value to be set. |
|
inlineexplicit |
Constructor initializing a 32-bit integer.
| value | The 32-bit integer value to be set. |
|
inlineexplicit |
Constructor initializing an unsigned 32-bit integer.
| value | The unsigned 32-bit integer value to be set. |
|
inlineexplicit |
Constructor initializing a 64-bit integer.
| value | The 64-bit integer value to be set. |
|
inlineexplicit |
Constructor initializing an unsigned 64-bit integer.
| value | The unsigned 64-bit integer value to be set. |
|
inlineexplicit |
Constructor initializing a floating point value (with double precision).
| value | The floating point value to be set. |
|
inlineexplicit |
Constructor initializing a string value.
| value | Constant reference to a string containing the string value to be set. |
|
inline |
Clears the current value and re-initializes it as null value.
References Value().
| union { ... } |
Union for numeric (including boolean) values.
| bool crawlservpp::Data::Value::_b |
Boolean value.
Referenced by crawlservpp::Main::Database::insertCustomData(), and crawlservpp::Main::Database::updateCustomData().
| double crawlservpp::Data::Value::_d |
Floating point value (with double precision).
Referenced by crawlservpp::Main::Database::insertCustomData(), and crawlservpp::Main::Database::updateCustomData().
| enum crawlservpp::Data::Value::_if_too_large crawlservpp::Data::Value::_error |
Action that will be performed if a string is too large for the database.
On default, a Database::Exception will be thrown.
| std::int32_t crawlservpp::Data::Value::_i32 |
32-bit integer value.
Referenced by crawlservpp::Main::Database::insertCustomData(), and crawlservpp::Main::Database::updateCustomData().
| std::int64_t crawlservpp::Data::Value::_i64 |
64-bit integer value.
Referenced by crawlservpp::Main::Database::insertCustomData(), and crawlservpp::Main::Database::updateCustomData().
| bool crawlservpp::Data::Value::_isnull {true} |
Null value.
Referenced by crawlservpp::Main::Database::insertCustomData(), and crawlservpp::Main::Database::updateCustomData().
| std::string crawlservpp::Data::Value::_s |
String value.
Referenced by crawlservpp::Main::Database::insertCustomData(), and crawlservpp::Main::Database::updateCustomData().
| std::uint32_t crawlservpp::Data::Value::_ui32 |
Unsigned 32-bit integer value.
Referenced by crawlservpp::Main::Database::insertCustomData(), and crawlservpp::Main::Database::updateCustomData().
| std::uint64_t crawlservpp::Data::Value::_ui64 {} |
Unsigned 64-bit integer value.
Referenced by crawlservpp::Main::Database::insertCustomData(), and crawlservpp::Main::Database::updateCustomData().