|
ROOT_Application
2.0
C++ Core modules and GUIStock
|
Group general functions to convert to/from string, split line... More...
#include <iostream>#include <vector>#include <sstream>#include <cstdlib>

Go to the source code of this file.
Data Structures | |
| struct | Utils::firstlast_dates |
| general structure for dates in csv files More... | |
Namespaces | |
| Utils | |
| All included in the namespace, must be called with Utils:: | |
Macros | |
| #define | SUPPRESS_NOT_USED_WARN |
Functions | |
| void | Utils::SetPathData (std::string new_path) |
| forced to use this function now. More... | |
| std::string | Utils::GetPathData () |
| static SUPPRESS_NOT_USED_WARN firstlast_dates | Utils::get_fldate_default () |
| need to be static for using default argument in a function More... | |
| template<class T > | |
| std::string | Utils::toString (const T &t) |
| template<class T > | |
| T | Utils::fromString (const std::string &s) |
| Transform string to any type : float, double, int. More... | |
| double | Utils::fromStreamToDouble (std::iostream &stream, char delim) |
| Read the next character of a stream as a double. More... | |
| void | Utils::splitline (const std::string &str, const std::string &delimiters, std::vector< std::string > &tokens) |
| splitline More... | |
| time_t | Utils::GetTime_tToday () |
| Get the time_t of today. More... | |
| time_t | Utils::StringToTime_t (const std::string &str) |
| Return the time_t from a string . More... | |
| time_t | Utils::StringToTime_t (const char *str) |
| Return the time_t from a c-string . More... | |
| std::string | Utils::Time_tToString (const time_t &time, const bool b_hour=false) |
| Return a string representing the date All times are expressed in the localtime. More... | |
| void | Utils::GetDateYMD (time_t time_unix, int &year, int &month, int &day) |
| Set year, month and day given an input time. More... | |
Variables | |
| const std::string | Utils::PATH_DATA_TEST ="/home/michael/workspace_kepler/ROOT_application/data_test" |
| Important variable to adjust before compilation, should be in a configuration. More... | |
| const time_t | Utils::ERROR_StrToTime = -105 |
| Error code returned by StringToTime_t if the string cannot be parsed correctly Must be a time_t, -1 is the original epoch date, so choose a random number. More... | |
Group general functions to convert to/from string, split line...
In a namespace Utils
global variable PATH_DATA for the data directory
Last Changed
Definition in file Utils.h.
1.8.6