15 for (
unsigned int i=0; i < param.size(); i++) {
16 str +=
'_' + Utils::toString<int>(param[i]);
47 std::vector<std::string> vec_substr;
54 std::vector<std::string> vec_substr;
60 std::vector<std::string> vec_substr;
65 std::vector<int>
GetParams(
const std::string& fname ) {
66 std::vector<int> ret_param;
67 std::vector<std::string> vec_substr;
70 for (
unsigned int i = 3; i < vec_substr.size(); i++) {
72 ret_param.push_back( Utils::fromString<int> (vec_substr[i]) );
82 std::vector<int> vec_params =
GetParams( fname );
104 std::vector<std::string> vec_substr;
117 std::vector<std::string> vec_substr;
119 return ( vec_substr[0] );
123 std::vector<std::string> vec_substr;
std::string MakeFrameName(const std::string &namestock, const ETime &tmscl)
Create a frame name string from its components.
"Clever" enumeration of the ListDataStock type : StockCSV, Volume, EMA, BOLL,...
std::string GetString(const Indicator &indic, const std::vector< int > ¶m)
std::string GetNameStock(const std::string &frame_name)
Extract the stock name from a frame name.
ETime GetTimeScale(const std::string &frame_name)
Extract the TimeScale from a frame name.
Group general functions to convert to/from string, split line...
Namespace's for functions related to the string format of Indicator / Frame.
std::string GetNameStock(const std::string &fname)
Extract the name of the stock.
static Indicator GetIndicator(const std::string &str_name)
Constructor with a string label.
Indicator GetIndicator(const std::string &fname)
Extract the Indicator from a fullname.
Indicator GetIndicator(const std::string &sname)
Extract the indicator from a frame name.
ETime
Enumeration for the different time representation, from instantaneous (INST) to year(YEAR) ...
std::string GetFrameName(const std::string &fname)
Extract NameStock_Timescale (FrameName) from a fullname.
std::string GetShortName(const std::string &fname)
Extract Indicator_params (string) from a fullname.
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".
std::string MakeShortName(const Indicator &indic, const std::vector< int > ¶m)
Create a short name from its components.
void splitline(const std::string &str, const std::string &delimiters, std::vector< std::string > &tokens)
splitline
std::vector< int > GetParams(const std::string &fname)
Extract params from a fullname.
std::string const label() const
Get the label.
ETime GetTimeScale(const std::string &fname)
Extract the TimeScale from a fullname.