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

Define Time period information for the data. More...

#include <iostream>
#include <type_traits>
#include <cstdint>
Include dependency graph for TimeScale.h:
This graph shows which files directly or indirectly include this file:

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

Detailed Description

Define Time period information for the data.

Last Changed :

Id:
TimeScale.h 511 2014-12-07 15:42:15Z martinml

Definition in file TimeScale.h.

Enumeration Type Documentation

enum ETime : unsigned int
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.