Time Shield Library
C++ library for working with time
Loading...
Searching...
No Matches
enums.hpp File Reference

Header file with enumerations for weekdays, months, and other time-related categories. More...

#include <string>
#include <array>

Go to the source code of this file.

Namespaces

namespace  time_shield
 Main namespace for the Time Shield library.
 

Macros

#define _TIME_SHIELD_ENUMS_HPP_INCLUDED
 

Enumerations

enum  time_shield::FormatType { time_shield::UPPERCASE_NAME = 0 , time_shield::SHORT_NAME , time_shield::FULL_NAME }
 Enumeration of the format options for representing a weekday or month. More...
 
enum  time_shield::Weekday {
  time_shield::SUN = 0 , time_shield::MON , time_shield::TUE , time_shield::WED ,
  time_shield::THU , time_shield::FRI , time_shield::SAT
}
 Enumeration of the days of the week. More...
 
enum  time_shield::Month {
  time_shield::JAN = 1 , time_shield::FEB , time_shield::MAR , time_shield::APR ,
  time_shield::MAY , time_shield::JUN , time_shield::JUL , time_shield::AUG ,
  time_shield::SEP , time_shield::OCT , time_shield::NOV , time_shield::DEC
}
 Enumeration of the months of the year. More...
 
enum  time_shield::TimeZone {
  time_shield::GMT , time_shield::UTC , time_shield::EET , time_shield::CET ,
  time_shield::WET , time_shield::EEST , time_shield::CEST , time_shield::WEST ,
  time_shield::UNKNOWN
}
 Enumeration of the time zones. More...
 
enum  time_shield::MoonPhase {
  time_shield::WAXING_CRESCENT , time_shield::FIRST_QUARTER , time_shield::WAXING_GIBBOUS , time_shield::FULL_MOON ,
  time_shield::WANING_GIBBOUS , time_shield::LAST_QUARTER , time_shield::WANING_CRESCENT , time_shield::NEW_MOON
}
 Enumeration of the moon phases. More...
 
enum  time_shield::TimeFormatType {
  time_shield::ISO8601_WITH_TZ , time_shield::ISO8601_NO_TZ , time_shield::MQL5_FULL , time_shield::MQL5_DATE_ONLY ,
  time_shield::MQL5_TIME_ONLY , time_shield::AMERICAN_MONTH_DAY , time_shield::EUROPEAN_MONTH_DAY , time_shield::AMERICAN_TIME ,
  time_shield::EUROPEAN_TIME
}
 Enumeration of time format types. More...
 

Functions

const char * time_shield::to_cstr (const Weekday &value, const FormatType &format=UPPERCASE_NAME)
 Converts a Weekday enum value to a string.
 
const std::string & time_shield::to_str (const Weekday &value, const FormatType &format=UPPERCASE_NAME)
 Converts a Weekday enum value to a string.
 
const char * time_shield::to_cstr (const Month &value, const FormatType &format=UPPERCASE_NAME)
 Converts a Month enum value to a string.
 
const std::string & time_shield::to_str (const Month &value, const FormatType &format=UPPERCASE_NAME)
 Converts a Month enum value to a string.
 
const char * time_shield::to_cstr (const TimeZone &value, const FormatType &format=UPPERCASE_NAME)
 Converts a TimeZone enum value to a string.
 
const std::string & time_shield::to_str (const TimeZone &value, const FormatType &format=UPPERCASE_NAME)
 Converts a TimeZone enum value to a string.
 

Detailed Description

Header file with enumerations for weekdays, months, and other time-related categories.

This file contains enum definitions for representing various time-related concepts.

Definition in file enums.hpp.

Macro Definition Documentation

◆ _TIME_SHIELD_ENUMS_HPP_INCLUDED

#define _TIME_SHIELD_ENUMS_HPP_INCLUDED

Definition at line 7 of file enums.hpp.