crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
Data.hpp File Reference
#include <algorithm>
#include <array>
#include <cctype>
#include <cstddef>
#include <cstdint>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
Include dependency graph for Data.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  crawlservpp::Data::Value
 A generic value. More...
 
struct  crawlservpp::Data::GetValue
 Structure for retrieving one value from a table column. More...
 
struct  crawlservpp::Data::GetFields
 Structure for retrieving multiple values of the same type from a table column. More...
 
struct  crawlservpp::Data::GetFieldsMixed
 Structure for getting multiple values of different types from a table column. More...
 
struct  crawlservpp::Data::GetColumn
 Structure for retrieving the values in a table column. More...
 
struct  crawlservpp::Data::GetColumns
 Structure for retrieving multiple table columns of the same type. More...
 
struct  crawlservpp::Data::GetColumnsMixed
 Structure for retrieving multiple table columns of different types. More...
 
struct  crawlservpp::Data::InsertValue
 Structure for inserting one value into a table. More...
 
struct  crawlservpp::Data::InsertFields
 Structure for inserting multiple values of the same type into a table. More...
 
struct  crawlservpp::Data::InsertFieldsMixed
 Structure for inserting multiple values of different types into a row. More...
 
struct  crawlservpp::Data::UpdateValue
 Structure for updating one value in a table. More...
 
struct  crawlservpp::Data::UpdateFields
 Structure for updating multiple values of the same type in a table. More...
 
struct  crawlservpp::Data::UpdateFieldsMixed
 Structure for updating multiple values of different types in a table. More...
 

Namespaces

 crawlservpp::Data
 Namespace for different types of data.
 

Enumerations

enum  crawlservpp::Data::Type {
  crawlservpp::Data::_unknown, crawlservpp::Data::_bool, crawlservpp::Data::_int32, crawlservpp::Data::_uint32,
  crawlservpp::Data::_int64, crawlservpp::Data::_uint64, crawlservpp::Data::_double, crawlservpp::Data::_string
}
 Data types. More...
 

Constants

constexpr auto crawlservpp::Data::bytes32bit {4}
 The number of bytes of a 32-bit value. More...
 
constexpr auto crawlservpp::Data::bytes64bit {8}
 The number of bytes of a 64-bit value. More...
 

Helper Function

Type crawlservpp::Data::parseSQLType (std::string sqlType)
 Parses the given SQL data type. More...
 

Template Functions

template<int >
Type crawlservpp::Data::getTypeOfSizeT ()
 Resolves std::size_t into the appropriate data type. More...
 
template<>
Type crawlservpp::Data::getTypeOfSizeT< bytes32bit > ()
 Identifies std::size_t as a 32-bit integer. More...
 
template<>
Type crawlservpp::Data::getTypeOfSizeT< bytes64bit > ()
 Identifies std::size_t as a 64-bit integer. More...