56 if ( tmscl_str ==
"INST" )
58 else if ( tmscl_str ==
"M5" )
60 else if ( tmscl_str ==
"M10" )
62 else if ( tmscl_str ==
"M30" )
64 else if ( tmscl_str ==
"H1" )
67 else if ( tmscl_str ==
"DAY" )
69 else if ( tmscl_str ==
"WEEK" )
71 else if ( tmscl_str ==
"MONTH" )
73 else if ( tmscl_str ==
"TRIM" )
75 else if ( tmscl_str ==
"YEAR" )
79 std::cout <<
"/nError TimeScale::GetTimeScaleFromName return default ETime::not_a_time" << std::endl;
Define Time period information for the data.
std::ostream & operator<<(std::ostream &os, const ETime &obj)
allow to print the string format "DAY", to get the integer use TimeScale::as_uint() function ...
ETime
Enumeration for the different time representation, from instantaneous (INST) to year(YEAR) ...
ETime GetTimeScaleFromName(const std::string &tmscl_str)
From name "DAY", get ETime::DAY.
std::string GetTimeScaleName(const ETime &tmscl)
Get the string, i.e., "DAY".