ifw-core  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
system.cpp File Reference
#include <chrono>
#include "ctd/string/string.hpp"
#include "ctd/system/system.hpp"

Namespaces

 ctd::system
 
 ctd::system::testUtils
 

Functions

void ctd::system::Assert (const bool condition, const std::string &message, const std::array< std::string, 3 > &location)
 
void ctd::system::AssertPtr (const void *ptr, const std::string &object, std::array< std::string, 3 > &location)
 Check if pointer is NULL. If yes, throw rad::Exception. More...
 
double ctd::system::_Time ()
 
std::string ctd::system::Platform ()
 Get the name of the platform (OS). More...
 
int64_t ctd::system::Random (const int64_t min_val, const int64_t max_val)
 Generate an int64_t random number in the inteval specified. More...
 
double ctd::system::Random (const double min_val, const double max_val)
 
std::string ctd::system::ExecCommand (const std::string &command)
 Execute a shell command (synchroneously). More...
 
std::string ctd::system::testUtils::GetResDir (const std::string &module_path, const std::string &res_dir="test/resource")
 Derives the "resource" directory from the current working point. More...
 
void ctd::system::testUtils::SetRootEnvVars (const std::string &module_path, const std::string &res_dir="test/resource")
 Set the root environment variables: CFGROOT, INTROOT, DATAROOT. More...