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

Strings to define completely and uniquely a ListDataStock. More...

Functions

Extract components from a fullname
std::string GetNameStock (const std::string &fname)
 Extract the name of the stock. More...
 
ETime GetTimeScale (const std::string &fname)
 Extract the TimeScale from a fullname. More...
 
Indicator GetIndicator (const std::string &fname)
 Extract the Indicator from a fullname. More...
 
std::vector< int > GetParams (const std::string &fname)
 Extract params from a fullname. More...
 
std::string GetShortName (const std::string &fname)
 Extract Indicator_params (string) from a fullname. More...
 
std::string GetFrameName (const std::string &fname)
 Extract NameStock_Timescale (FrameName) from a fullname. More...
 

Detailed Description

Strings to define completely and uniquely a ListDataStock.


Allow to create or retrieve elements by this name.

Format fullname : "NameStock_Timescale_Indicator_Params"

Function Documentation

std::string FullName::GetFrameName ( const std::string &  fname)

Extract NameStock_Timescale (FrameName) from a fullname.

Should be unique for each Frame( Indicator and THStock have the same name)

Todo:
To move or change, really used ??

Definition at line 92 of file FullName.cpp.

References GetNameStock(), GetTimeScale(), and TimeScale::GetTimeScaleName().

Referenced by IndicatorFrame::AddIndicator(), ControllerIndicatorTHStock::ModifyColorIndic(), and ControllerIndicatorTHStock::UpdateIndicator().

Here is the call graph for this function:

Here is the caller graph for this function:

Indicator FullName::GetIndicator ( const std::string &  fname)

Extract the Indicator from a fullname.

Definition at line 59 of file FullName.cpp.

References Indicator::GetIndicator(), and Utils::splitline().

Referenced by GetShortName(), and MainControllerIndicatorTHStock::Validation().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string FullName::GetNameStock ( const std::string &  fname)

Extract the name of the stock.

Definition at line 46 of file FullName.cpp.

References Utils::splitline().

Referenced by StockManager::DeleteListData(), GetFrameName(), StockManager::GetListData(), MainControllerIndicatorTHStock::GetSelected(), ControllerIndicatorTHStock::NeedToUpdate(), Stock::UpdateAllTimeScale(), and MainControllerIndicatorTHStock::Validation().

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector< int > FullName::GetParams ( const std::string &  fname)

Extract params from a fullname.

Definition at line 65 of file FullName.cpp.

References Utils::splitline().

Referenced by GetShortName(), and MainControllerIndicatorTHStock::Validation().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string FullName::GetShortName ( const std::string &  fname)

Extract Indicator_params (string) from a fullname.

original for (unsigned int i=0; i<vec_params.size(); i++) shortname += "_" + Utils::toString<int> (vec_params[i]); std::cout << "FullName GetShortName " << shortname << std::endl; return shortname;

Definition at line 78 of file FullName.cpp.

References GetIndicator(), GetParams(), and GetString().

Referenced by IndicatorFrame::AddIndicator(), StockManager::DeleteListData(), and StockManager::GetListData().

Here is the call graph for this function:

Here is the caller graph for this function:

ETime FullName::GetTimeScale ( const std::string &  fname)

Extract the TimeScale from a fullname.

Definition at line 53 of file FullName.cpp.

References TimeScale::GetTimeScaleFromName(), and Utils::splitline().

Referenced by StockManager::DeleteListData(), GetFrameName(), StockManager::GetListData(), MainControllerIndicatorTHStock::GetSelected(), ListDataStock< T, PolicyChronologic >::PrintData(), and MainControllerIndicatorTHStock::Validation().

Here is the call graph for this function:

Here is the caller graph for this function: