fast pQCD calculations for hadron-induced processes
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
read_steer Class Reference

Public Member Functions

bool getb (const std::string &label)
 
int geti (const std::string &label)
 
double getd (const std::string &label)
 
std::string gets (const std::string &label)
 
std::vector< bool > getbf (const std::string &label)
 
std::vector< int > getif (const std::string &label)
 
std::vector< double > getdf (const std::string &label)
 
std::vector< std::string > getsf (const std::string &label)
 
std::vector< std::string > getsthead (const std::string &label)
 
std::vector< std::vector< int > > getit (const std::string &label)
 
std::vector< std::vector< double > > getdt (const std::string &label)
 
std::vector< std::vector< std::string > > getst (const std::string &label)
 
std::vector< bool > getbtcol (const std::string &label, const std::string &col)
 
std::vector< int > getitcol (const std::string &label, const std::string &col)
 
std::vector< double > getdtcol (const std::string &label, const std::string &col)
 
std::vector< std::string > getstcol (const std::string &label, const std::string &col)
 
bool exist (const std::string &label)
 
bool arrayexist (const std::string &label)
 
bool arraycontainkey (const std::string &key, const std::string &label)
 
void arraypushback (const std::string &value, const std::string &label)
 
void AddLabel (const std::string &key, const std::string &value)
 
template<typename T >
void AddLabel (const std::string &key, T value)
 
void AddArray (const std::string &key, const std::vector< std::string > &values)
 
template<typename T >
void AddArray (const std::string &key, const std::vector< T > &values)
 
void AddTable (const std::string &key, const std::vector< std::string > &header, const std::vector< std::vector< std::string > > &values)
 
template<typename T >
void AddTable (const std::string &key, const std::vector< std::string > &header, const std::vector< std::vector< T > > &values)
 
void AppendToArray (const std::string &key, const std::string &entry)
 
template<typename T >
void AppendToArray (const std::string &key, const T &entry)
 
void AppendToTable (const std::string &key, const std::vector< std::string > &entry)
 
template<typename T >
void AppendToTable (const std::string &key, const std::vector< T > &entry)
 
int inits (std::string filename)
 
int initnmspc (std::ifstream &strm, std::string filename)
 
void prt ()
 
std::set< std::string > GetAvailableLabels () const
 
std::set< std::string > GetAvailableArrrays () const
 
std::set< std::string > GetAvailableTables () const
 

Static Public Member Functions

static read_steerSteering (std::string steerID=read_steer::stdID)
 
static void destroy ()
 
static void initnamespace (std::ifstream &strm, std::string filename, std::string steerID=read_steer::stdID)
 
static bool CheckNumber (const std::string &str)
 
static bool CheckInt (const std::string &str)
 
static int separatetag (std::string &vallhs, std::string &valrhs, const std::string &sep)
 
static const std::string & GetDefaultNamespace ()
 
static void SetDefaultNamespace (const std::string &nspc)
 
static int readfile (std::string filename, std::string steerID=read_steer::stdID)
 
static void setVerbosity (int iVerbosity)
 
static int getVerbosity ()
 
static bool getbool (std::string label, std::string steerID=read_steer::stdID)
 
static int getint (std::string label, std::string steerID=read_steer::stdID)
 
static double getdouble (std::string label, std::string steerID=read_steer::stdID)
 
static std::string getstring (std::string label, std::string steerID=read_steer::stdID)
 
static std::vector< bool > getboolarray (std::string label, std::string steerID=read_steer::stdID)
 
static std::vector< int > getintarray (std::string label, std::string steerID=read_steer::stdID)
 
static std::vector< double > getdoublearray (std::string label, std::string steerID=read_steer::stdID)
 
static std::vector< std::string > getstringarray (std::string label, std::string steerID=read_steer::stdID)
 
static std::vector< std::string > gettableheader (std::string label, std::string steerID=read_steer::stdID)
 
static std::vector< std::vector< int > > getinttable (std::string label, std::string steerID=read_steer::stdID)
 
static std::vector< std::vector< double > > getdoubletable (std::string label, std::string steerID=read_steer::stdID)
 
static std::vector< std::vector< std::string > > getstringtable (std::string label, std::string steerID=read_steer::stdID)
 
static std::vector< bool > getboolcolumn (std::string label, std::string column, std::string steerID=read_steer::stdID)
 
static std::vector< int > getintcolumn (std::string label, std::string column, std::string steerID=read_steer::stdID)
 
static std::vector< double > getdoublecolumn (std::string label, std::string column, std::string steerID=read_steer::stdID)
 
static std::vector< std::string > getstringcolumn (std::string label, std::string column, std::string steerID=read_steer::stdID)
 
static bool getexist (const std::string &label, std::string steerID=read_steer::stdID)
 
static bool getarrayexist (const std::string &label, std::string steerID=read_steer::stdID)
 
static bool getarraycontainkey (const std::string &key, const std::string &label, std::string steerID=read_steer::stdID)
 
static void arraypushback_steer (const std::string &value, const std::string &label, std::string steerID=read_steer::stdID)
 
template<typename T >
static void addvalue (const std::string &key, const T &val, std::string steerID=read_steer::stdID)
 
template<typename T >
static void addarray (const std::string &key, const std::vector< T > &val, std::string steerID=read_steer::stdID)
 
template<typename T >
static void addtable (const std::string &key, const std::vector< std::string > &header, const std::vector< std::vector< T > > &values, std::string steerID=read_steer::stdID)
 
template<typename T >
static void appendtoarray (const std::string &key, const T &entry, std::string steerID=read_steer::stdID)
 
template<typename T >
static void appendtotable (const std::string &key, const std::vector< T > &entry, std::string steerID=read_steer::stdID)
 
static void printall ()
 
static void print (std::string steerID=read_steer::stdID)
 
static bool parsecommandline (int argc, char **argv)
 
static bool parsecommandline (std::vector< std::string > argv)
 

Static Public Attributes

static int fVerbosity = 2
 

Member Function Documentation

◆ AppendToTable()

void read_steer::AppendToTable ( const std::string &  key,
const std::vector< std::string > &  entry 
)

append one element to a table

◆ CheckInt()

bool read_steer::CheckInt ( const std::string &  str)
static

check if str is an integer number

◆ CheckNumber()

bool read_steer::CheckNumber ( const std::string &  str)
static

check if str is a float number

◆ parsecommandline()

bool read_steer::parsecommandline ( int  argc,
char **  argv 
)
static

use like key=value:namespace

use like namespace:key=value


The documentation for this class was generated from the following files: