Alexandria
2.14.1
Please provide a description of the 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 (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. More... | |
bool | operator== (const ColumnDescription &other) const |
Public Attributes | |
std::string | name |
std::type_index | type |
std::string | unit |
std::string | description |
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 39 of file ColumnDescription.cpp.
References std::string::empty(), and name.
|
default |
|
default |
|
inline |
Returns true if the two ColumnDescriptions do not describe the same column.
Definition at line 72 of file ColumnDescription.h.
|
default |
|
default |
|
inline |
Returns true if the two ColumnDescriptions describe the same column (ignoring the description text)
Definition at line 78 of file ColumnDescription.h.
std::string Euclid::Table::ColumnDescription::description |
Definition at line 85 of file ColumnDescription.h.
std::string Euclid::Table::ColumnDescription::name |
Definition at line 82 of file ColumnDescription.h.
Referenced by ColumnDescription(), Euclid::Table::ColumnInfo::find(), Euclid::Configuration::getErrColumnFromOptions(), Euclid::Configuration::getFluxColumnFromOptions(), and operator==().
std::type_index Euclid::Table::ColumnDescription::type |
Definition at line 83 of file ColumnDescription.h.
Referenced by operator==().
std::string Euclid::Table::ColumnDescription::unit |
Definition at line 84 of file ColumnDescription.h.
Referenced by operator==().