ROOT_Application
2.0
C++ Core modules and GUIStock
|
Define Time period information for the data. More...
#include <iostream>
#include <type_traits>
#include <cstdint>
Go to the source code of this file.
Namespaces | |
TimeScale | |
Contains convenient functions for ETime to unsigned int or string. | |
Enumerations | |
enum | ETime : unsigned int { ETime::INST =0, ETime::M5, ETime::M10, ETime::M30, ETime::H1, ETime::DAY, ETime::WEEK, ETime::MONTH, ETime::TRIM, ETime::YEAR, ETime::not_a_time } |
Enumeration for the different time representation, from instantaneous (INST) to year(YEAR) More... | |
Functions | |
template<typename ETime > | |
auto | TimeScale::as_uint (ETime const value) -> unsigned int |
Provides explicit conversion to unsigned int. More... | |
std::ostream & | TimeScale::operator<< (std::ostream &os, const ETime &obj) |
allow to print the string format "DAY", to get the integer use TimeScale::as_uint() function More... | |
std::string | TimeScale::GetTimeScaleName (const ETime &tmscl) |
Get the string, i.e., "DAY". More... | |
ETime | TimeScale::GetTimeScaleFromName (const std::string &tmscl_str) |
From name "DAY", get ETime::DAY. More... | |
Define Time period information for the data.
Last Changed :
Definition in file TimeScale.h.
|
strong |
Enumeration for the different time representation, from instantaneous (INST) to year(YEAR)
To access ETime::DAY
new not_a_time only partly tested
Enumerator | |
---|---|
INST | |
M5 | |
M10 | |
M30 | |
H1 | |
DAY | |
WEEK | |
MONTH | |
TRIM | |
YEAR | |
not_a_time |
Definition at line 48 of file TimeScale.h.