ROOT_Application
2.0
C++ Core modules and GUIStock
|
Contains convenient functions for ETime to unsigned int or string. More...
Functions | |
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 More... | |
std::string | GetTimeScaleName (const ETime &tmscl) |
Get the string, i.e., "DAY". More... | |
ETime | GetTimeScaleFromName (const std::string &tmscl_str) |
From name "DAY", get ETime::DAY. More... | |
template<typename ETime > | |
auto | as_uint (ETime const value) -> unsigned int |
Provides explicit conversion to unsigned int. More... | |
Contains convenient functions for ETime to unsigned int or string.
and vice versa
auto TimeScale::as_uint | ( | ETime const | value | ) | -> unsigned int |
Provides explicit conversion to unsigned int.
Definition at line 59 of file TimeScale.h.
Referenced by TAlibAPI::Compute(), and Stock::Updated().
ETime TimeScale::GetTimeScaleFromName | ( | const std::string & | tmscl_str | ) |
From name "DAY", get ETime::DAY.
Definition at line 54 of file TimeScale.cpp.
References DAY, H1, INST, M10, M30, M5, MONTH, not_a_time, TRIM, WEEK, and YEAR.
Referenced by FullName::GetTimeScale(), and FrameName::GetTimeScale().
std::string TimeScale::GetTimeScaleName | ( | const ETime & | tmscl | ) |
Get the string, i.e., "DAY".
Definition at line 24 of file TimeScale.cpp.
References DAY, H1, INST, M10, M30, M5, MONTH, TRIM, WEEK, and YEAR.
Referenced by FullName::GetFrameName(), Stock::LoadListData(), FrameName::MakeFrameName(), operator<<(), Stock::Read_HeaderCSV(), Stock::Read_HeaderCSV_static(), Stock::ReadCSV(), Stock::SetLDataFullName(), Stock::UpdateCSV_Inst(), and Stock::WriteCSV().
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
Definition at line 17 of file TimeScale.cpp.
References GetTimeScaleName().