101 static const std::string me_;
120 std::ostringstream &logstr);
123 void createDefaultOptions_();
129 void findOption_(
const std::string &name,
BoolOptionPtr &b_option,
138 bool getBoolValue_(
const std::string & str);
144 void readConfigFile_(std::string fname,
UInt &num_p);
150 UInt removeDashes_(std::string &name);
153 void removeMinotaurPrepend_(std::string & fullname);
159 std::string separateEqualToArg_(std::string &name);
Declare class for creating logs.
Declare the Option class for managing options for Minotaur.
Define the TimerFactory and varios Timer classes.
Declare important 'types' used in Minotaur.
Definition: Environment.h:28
double getTime()
Definition: Environment.cpp:814
Timer * getNewTimer()
Get a new timer. The calling function has to free this timer.
Definition: Environment.cpp:804
void readOptions(int argc, char **argv)
Read the options using a char array that has 'argc' words in it.
Definition: Environment.cpp:920
void setLogLevel(LogLevel l)
Set the log level of the default logger.
Definition: Environment.cpp:1083
std::string getVersion()
Get the version string.
Definition: Environment.cpp:841
LoggerPtr getLogger() const
Get the logger that is setup for the whole environment.
Definition: Environment.cpp:794
LogLevel getLogLevel() const
Get the current log level.
Definition: Environment.cpp:799
Environment()
Default constructor.
Definition: Environment.cpp:32
~Environment()
Destroy.
Definition: Environment.cpp:42
const Timer * getTimer()
Get the global timer.
Definition: Environment.cpp:819
const Timer * getWTimer()
Get the global timer.
Definition: Environment.cpp:836
OptionDBPtr getOptions()
Get the options database.
Definition: Environment.cpp:809
void initRand()
Initialize random number generator. It reads the option value of rand_seed provided by the user,...
Definition: Environment.cpp:850
void readOptions(const std::string &str)
Read options from a string.
The TimerFactory should be used to get the approrpriate Timer.
Definition: Timer.h:172
Definition: ActiveNodeStore.h:20
LogLevel
Levels of verbosity.
Definition: Types.h:226
unsigned int UInt
Unsigned integer.
Definition: Types.h:30