Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
Contains the description of a specific column of a Table. More...
#include <ColumnDescription.h>
Public Member Functions | |
ColumnDescription (std::string name, std::type_index type=typeid(std::string), std::string unit="", std::string description="") | |
ColumnDescription (std::string name, std::type_index type, std::size_t size, std::string unit="", std::string description="") | |
ColumnDescription (const ColumnDescription &)=default | |
ColumnDescription (ColumnDescription &&)=default | |
ColumnDescription & | operator= (const ColumnDescription &)=default |
ColumnDescription & | operator= (ColumnDescription &&)=default |
bool | operator!= (const ColumnDescription &other) const |
Returns true if the two ColumnDescriptions do not describe the same column. | |
bool | operator== (const ColumnDescription &other) const |
Public Attributes | |
std::string | name |
std::type_index | type |
std::string | unit |
std::string | description |
std::size_t | size |
Contains the description of a specific column of a Table.
Each table column is described by the following:
The access to the above is done by directly accessing the public members of the ColumnDescription class.
The ColumnDescription implements the comparison operators by checking only the name, type and unit and by ignoring the description text.
Definition at line 55 of file ColumnDescription.h.
Euclid::Table::ColumnDescription::ColumnDescription | ( | std::string | name, |
std::type_index | type = typeid(std::string) , |
||
std::string | unit = "" , |
||
std::string | description = "" |
||
) |
Constructs a new ColumnDescription instance
Elements::Exception | if the name is the empty string or if it contains whitespaces |
Definition at line 32 of file ColumnDescription.cpp.
Euclid::Table::ColumnDescription::ColumnDescription | ( | std::string | name, |
std::type_index | type, | ||
std::size_t | size, | ||
std::string | unit = "" , |
||
std::string | description = "" |
||
) |
Definition at line 36 of file ColumnDescription.cpp.
References std::string::empty().
|
default |
|
default |
|
inline |
Returns true if the two ColumnDescriptions do not describe the same column.
Definition at line 75 of file ColumnDescription.h.
|
default |
|
default |
|
inline |
Returns true if the two ColumnDescriptions describe the same column (ignoring the description text)
Definition at line 81 of file ColumnDescription.h.
std::string Euclid::Table::ColumnDescription::description |
Definition at line 88 of file ColumnDescription.h.
std::string Euclid::Table::ColumnDescription::name |
Definition at line 85 of file ColumnDescription.h.
Referenced by Euclid::Table::ColumnInfo::find(), Euclid::Configuration::getErrColumnFromOptions(), Euclid::Configuration::getFluxColumnFromOptions(), and operator==().
std::size_t Euclid::Table::ColumnDescription::size |
Definition at line 89 of file ColumnDescription.h.
std::type_index Euclid::Table::ColumnDescription::type |
Definition at line 86 of file ColumnDescription.h.
Referenced by operator==().
std::string Euclid::Table::ColumnDescription::unit |
Definition at line 87 of file ColumnDescription.h.
Referenced by operator==().