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

Implementation of Utils. More...

#include "Utils.h"
#include <ctime>
#include <cstring>
Include dependency graph for Utils.cpp:

Go to the source code of this file.

Namespaces

 Utils
 All included in the namespace, must be called with Utils::
 

Functions

void Utils::SetPathData (std::string new_path)
 forced to use this function now. More...
 
std::string Utils::GetPathData ()
 
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...
 
time_t Utils::StringToTime_t_old (std::string str_date)
 

Variables

static std::string Utils::PATH_DATA ="/home/michael/workspace_kepler/ROOT_application/data"
 to modify before compilation to set from a Config file More...
 

Detailed Description

Implementation of Utils.

Last modified

Id:
Utils.cpp 511 2014-12-07 15:42:15Z martinml

Definition in file Utils.cpp.