31 #ifndef STRUCT_TABLECOLUMN_HPP_ 32 #define STRUCT_TABLECOLUMN_HPP_ 91 const std::string& setName,
92 const std::string& setType,
93 const std::string& setReferenceTable,
94 const std::string& setReferenceColumn,
98 referenceTable(setReferenceTable),
99 referenceColumn(setReferenceColumn),
100 indexed(setIndexed) {}
121 const std::string& setName,
122 const std::string& setType,
123 const std::string& setReferenceTable,
124 const std::string& setReferenceColumn
125 ) :
TableColumn(setName, setType, setReferenceTable, setReferenceColumn, false) {}
140 const std::string& setName,
141 const std::string& setType,
143 ) :
TableColumn(setName, setType,
"",
"", setIndexed) {}
156 const std::string& setName,
157 const std::string& setType
158 ) :
TableColumn(setName, setType,
"",
"", false) {}
170 const std::string& newName
171 ) :
TableColumn(newName, other.type, other.referenceTable, other.referenceColumn, other.indexed) {}
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.
Definition: TableColumn.hpp:120
std::string referenceTable
Name of the table referenced by the table column.
Definition: TableColumn.hpp:54
std::string name
Name of the table column.
Definition: TableColumn.hpp:44
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.
Definition: TableColumn.hpp:90
Structure for table columns containing its name, type, reference, and indexing.
Definition: TableColumn.hpp:39
TableColumn(const std::string &setName, const std::string &setType)
Constructor setting properties of an unreferenced and unindexed table column.
Definition: TableColumn.hpp:155
std::string type
Type of the table column as SQL string.
Definition: TableColumn.hpp:47
std::string referenceColumn
Name of the column referenced by the table column (or empty if none).
Definition: TableColumn.hpp:61
bool indexed
Indicates whether the table column is indexed.
Definition: TableColumn.hpp:64
Namespace for data structures.
Definition: AlgoThreadProperties.hpp:43
TableColumn(const std::string &setName, const std::string &setType, bool setIndexed)
Constructor setting properties of an unreferenced table column.
Definition: TableColumn.hpp:139
TableColumn(const TableColumn &other, const std::string &newName)
Constructor copying another table column and setting a new name for the copy.
Definition: TableColumn.hpp:168