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

The services an engine sorts and filters with. A null member is replaced by its default. More...

#include <data_source.hpp>

Public Member Functions

std::shared_ptr< TextCollator const > collatorOrDefault () const
 The collator to use.
std::shared_ptr< DateParser const > datesOrDefault () const
 The date parser to use.
Services forTask () const
 The services one task uses: collator and parser cloned when they are not safe to share, defaults filled in.

Public Attributes

std::shared_ptr< TextCollator const > collator
 Text order and matching; null means CodePointCollator.
std::shared_ptr< DateParser const > dates
 Date parsing; null means IsoDateParser.
std::map< std::string, CellComparator, std::less<> > comparators
 Comparators for Custom columns, by the name ColumnInfo::comparator gives.
std::shared_ptr< ProgressSink > progress
 Optional progress receiver.

Detailed Description

The services an engine sorts and filters with. A null member is replaced by its default.

Definition at line 396 of file data_source.hpp.

Member Function Documentation

◆ collatorOrDefault()

std::shared_ptr< TextCollator const > morph::table::Services::collatorOrDefault ( ) const
inlinenodiscard

The collator to use.

Returns
collator, or the shared default.

Definition at line 408 of file data_source.hpp.

◆ datesOrDefault()

std::shared_ptr< DateParser const > morph::table::Services::datesOrDefault ( ) const
inlinenodiscard

The date parser to use.

Returns
dates, or the shared default.

Definition at line 415 of file data_source.hpp.

◆ forTask()

Services morph::table::Services::forTask ( ) const
inlinenodiscard

The services one task uses: collator and parser cloned when they are not safe to share, defaults filled in.

Returns
A copy fit to hand to a worker.

Definition at line 423 of file data_source.hpp.

Member Data Documentation

◆ collator

std::shared_ptr<TextCollator const> morph::table::Services::collator

Text order and matching; null means CodePointCollator.

Definition at line 398 of file data_source.hpp.

◆ dates

std::shared_ptr<DateParser const> morph::table::Services::dates

Date parsing; null means IsoDateParser.

Definition at line 400 of file data_source.hpp.

◆ comparators

std::map<std::string, CellComparator, std::less<> > morph::table::Services::comparators

Comparators for Custom columns, by the name ColumnInfo::comparator gives.

Definition at line 402 of file data_source.hpp.

◆ progress

std::shared_ptr<ProgressSink> morph::table::Services::progress

Optional progress receiver.

Definition at line 404 of file data_source.hpp.


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