ROOT_Application  2.0
C++ Core modules and GUIStock
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
TimeScale Namespace Reference

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...
 

Detailed Description

Contains convenient functions for ETime to unsigned int or string.

and vice versa

Function Documentation

template<typename ETime >
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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

std::string TimeScale::GetTimeScaleName ( const ETime tmscl)
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().

Here is the call graph for this function: