Qt Virtual Chart Table (QVCT)
CUnitTimeZone Class Reference

Time zone (UTC, local) selection class. More...

#include <units/CUnitTimeZone.hpp>

Public Types

enum  EUnit { UTC , LOCAL , UNDEFINED }
 Format/unit ID. More...
 

Static Public Member Functions

static const QMap< EUnit, QString > & symbols ()
 Returns the list of supported human-readable format/unit symbols. More...
 
static QString toSymbol (EUnit _eUnit)
 Returns the human-readable symbol corresponding to the given format/unit ID. More...
 
static EUnit fromSymbol (const QString &_rqsSymbol)
 Returns the format/unit ID corresponding to the given human-readable symbol. More...
 
static const QMap< EUnit, QString > & codes ()
 Returns the list of supported machine-friendly format/unit codes. More...
 
static QString toCode (EUnit _eUnit)
 Returns the machine-friendly code corresponding to the given format/unit ID. More...
 
static EUnit fromCode (const QString &_rqsCode)
 Returns the format/unit ID corresponding to the given machine-friendly code. More...
 

Static Private Attributes

static const CUnitTimeZoneSymbols oUnitTimeZoneSymbols
 Container for supported human-readable format/unit symbols. More...
 
static const CUnitTimeZoneCodes oUnitTimeZoneCodes
 Container for supported machine-friendly format/unit codes. More...
 

Detailed Description

Time zone (UTC, local) selection class.

This class allows to select UTC or local times for rendering/parsing dates and times.

See also
CUnitDate, CUnitTime
Author
Cedric Dufour http://cedric.dufour.name

Definition at line 38 of file CUnitTimeZone.hpp.

Member Enumeration Documentation

◆ EUnit

Format/unit ID.

Enumerator
UTC 

Universal Time Coordinates.

LOCAL 

Local Time.

UNDEFINED 

undefined format/unit

Definition at line 47 of file CUnitTimeZone.hpp.

Member Function Documentation

◆ symbols()

const QMap< CUnitTimeZone::EUnit, QString > & CUnitTimeZone::symbols ( )
static

Returns the list of supported human-readable format/unit symbols.

Definition at line 34 of file CUnitTimeZone.cpp.

◆ toSymbol()

QString CUnitTimeZone::toSymbol ( CUnitTimeZone::EUnit  _eUnit)
static

Returns the human-readable symbol corresponding to the given format/unit ID.

Definition at line 39 of file CUnitTimeZone.cpp.

◆ fromSymbol()

CUnitTimeZone::EUnit CUnitTimeZone::fromSymbol ( const QString &  _rqsSymbol)
static

Returns the format/unit ID corresponding to the given human-readable symbol.

Definition at line 44 of file CUnitTimeZone.cpp.

◆ codes()

const QMap< CUnitTimeZone::EUnit, QString > & CUnitTimeZone::codes ( )
static

Returns the list of supported machine-friendly format/unit codes.

Definition at line 49 of file CUnitTimeZone.cpp.

◆ toCode()

QString CUnitTimeZone::toCode ( CUnitTimeZone::EUnit  _eUnit)
static

Returns the machine-friendly code corresponding to the given format/unit ID.

Definition at line 54 of file CUnitTimeZone.cpp.

◆ fromCode()

CUnitTimeZone::EUnit CUnitTimeZone::fromCode ( const QString &  _rqsCode)
static

Returns the format/unit ID corresponding to the given machine-friendly code.

Definition at line 59 of file CUnitTimeZone.cpp.

Member Data Documentation

◆ oUnitTimeZoneSymbols

const CUnitTimeZoneSymbols CUnitTimeZone::oUnitTimeZoneSymbols
staticprivate

Container for supported human-readable format/unit symbols.

Definition at line 55 of file CUnitTimeZone.hpp.

◆ oUnitTimeZoneCodes

const CUnitTimeZoneCodes CUnitTimeZone::oUnitTimeZoneCodes
staticprivate

Container for supported machine-friendly format/unit codes.

Definition at line 57 of file CUnitTimeZone.hpp.


The documentation for this class was generated from the following files: