crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
crawlservpp::Struct::TableColumn Struct Reference

Structure for table columns containing its name, type, reference, and indexing. More...

#include <TableColumn.hpp>

Properties

std::string name
 Name of the table column. More...
 
std::string type
 Type of the table column as SQL string. More...
 
std::string referenceTable
 Name of the table referenced by the table column. More...
 
std::string referenceColumn
 Name of the column referenced by the table column (or empty if none). More...
 
bool indexed
 Indicates whether the table column is indexed. More...
 

Construction

 TableColumn (const std::string &setName, const std::string &setType, const std::string &setReferenceTable, const std::string &setReferenceColumn, bool setIndexed)
 Constructor setting all properties of the table column. More...
 
 TableColumn (const std::string &setName, const std::string &setType, const std::string &setReferenceTable, const std::string &setReferenceColumn)
 Constructor setting properties of an unindexed table column. More...
 
 TableColumn (const std::string &setName, const std::string &setType, bool setIndexed)
 Constructor setting properties of an unreferenced table column. More...
 
 TableColumn (const std::string &setName, const std::string &setType)
 Constructor setting properties of an unreferenced and unindexed table column. More...
 
 TableColumn (const TableColumn &other, const std::string &newName)
 Constructor copying another table column and setting a new name for the copy. More...
 

Detailed Description

Structure for table columns containing its name, type, reference, and indexing.

Constructor & Destructor Documentation

◆ TableColumn() [1/5]

crawlservpp::Struct::TableColumn::TableColumn ( const std::string &  setName,
const std::string &  setType,
const std::string &  setReferenceTable,
const std::string &  setReferenceColumn,
bool  setIndexed 
)
inline

Constructor setting all properties of the table column.

Parameters
setNameConstant reference to a string containing the name of the new table column.
setTypeConstant reference to a string containing the type of the new table column as SQL string.
setReferenceTableConstant reference to a string containing the name of the table referenced by the new table column.
setReferenceColumnConstant reference to a string containing the name of the column referenced by the new table column.
setIndexedSet whether the new table column is indexed.

◆ TableColumn() [2/5]

crawlservpp::Struct::TableColumn::TableColumn ( const std::string &  setName,
const std::string &  setType,
const std::string &  setReferenceTable,
const std::string &  setReferenceColumn 
)
inline

Constructor setting properties of an unindexed table column.

Parameters
setNameConstant reference to a string containing the name of the new table column.
setTypeConstant reference to a string containing the type of the new table column as SQL string.
setReferenceTableConstant reference to a string containing the name of the table referenced by the new table column.
setReferenceColumnConstant reference to a string containing the name of the column referenced by the new table column.

◆ TableColumn() [3/5]

crawlservpp::Struct::TableColumn::TableColumn ( const std::string &  setName,
const std::string &  setType,
bool  setIndexed 
)
inline

Constructor setting properties of an unreferenced table column.

Parameters
setNameConstant reference to a string containing the name of the new table column.
setTypeConstant reference to a string containing the type of the new table column as SQL string.
setIndexedSet whether the new table column is indexed.

◆ TableColumn() [4/5]

crawlservpp::Struct::TableColumn::TableColumn ( const std::string &  setName,
const std::string &  setType 
)
inline

Constructor setting properties of an unreferenced and unindexed table column.

Parameters
setNameConstant reference to a string containing the name of the new table column.
setTypeConstant reference to a string containing the type of the new table column as SQL string.

◆ TableColumn() [5/5]

crawlservpp::Struct::TableColumn::TableColumn ( const TableColumn other,
const std::string &  newName 
)
inline

Constructor copying another table column and setting a new name for the copy.

Parameters
otherConstnt reference to the table column to be copied from.
newNameConstant reference to a string containing the name of the new table column.

Member Data Documentation

◆ indexed

bool crawlservpp::Struct::TableColumn::indexed

Indicates whether the table column is indexed.

◆ name

std::string crawlservpp::Struct::TableColumn::name

◆ referenceColumn

std::string crawlservpp::Struct::TableColumn::referenceColumn

Name of the column referenced by the table column (or empty if none).

This string remains empty, if no other table column is referenced.

Referenced by crawlservpp::Main::Database::addColumn().

◆ referenceTable

std::string crawlservpp::Struct::TableColumn::referenceTable

Name of the table referenced by the table column.

This string remains empty, if no other table column is referenced.

Referenced by crawlservpp::Main::Database::addColumn().

◆ type

std::string crawlservpp::Struct::TableColumn::type

Type of the table column as SQL string.

Referenced by crawlservpp::Main::Database::addColumn().


The documentation for this struct was generated from the following file: