morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::table::ColumnInfo Struct Reference

A column's identity and kind. More...

#include <data_source.hpp>

Public Member Functions

bool operator== (ColumnInfo const &other) const =default
 Member-wise equality.

Public Attributes

std::string id
 The column's id, unique within the table (the row member's name).
ColumnKind kind = ColumnKind::Text
 How the column's keys are built and compared.
std::string comparator
 For a Custom column, the name of its comparator in Services::comparators.
std::string format
 For a Date or DateTime column holding text, the format handed to the DateParser.

Detailed Description

A column's identity and kind.

Definition at line 86 of file data_source.hpp.

Member Function Documentation

◆ operator==()

bool morph::table::ColumnInfo::operator== ( ColumnInfo const & other) const
nodiscarddefault

Member-wise equality.

Parameters
otherThe column to compare with.
Returns
true when id, kind, comparator and format match.

Member Data Documentation

◆ id

std::string morph::table::ColumnInfo::id

The column's id, unique within the table (the row member's name).

Definition at line 88 of file data_source.hpp.

◆ kind

ColumnKind morph::table::ColumnInfo::kind = ColumnKind::Text

How the column's keys are built and compared.

Definition at line 90 of file data_source.hpp.

◆ comparator

std::string morph::table::ColumnInfo::comparator

For a Custom column, the name of its comparator in Services::comparators.

Definition at line 92 of file data_source.hpp.

◆ format

std::string morph::table::ColumnInfo::format

For a Date or DateTime column holding text, the format handed to the DateParser.

Definition at line 94 of file data_source.hpp.


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