Registry
ug4Bridge::Util Namespace Reference

Namespaces

 Internal
 
 Log
 
 Profiler
 
 VecMath
 

Classes

class  CuckooClock
 
class  MemInfo
 
class  StringTable
 
class  Variant
 

Functions

int ExecuteSystemCommand (const char *command)
 Executes a command in the system shell. More...
 
void exit ()
 Immediatly terminates the application. More...
 
void quit ()
 Immediatly terminates the application. More...
 
void SetMinSecondsUntilProgress (size_t seconds)
 determines after which time a progress bar can show up More...
 
void srand (int seed)
 The pseudo-random number generator is initialized using the argument passed as seed. More...
 
bool ug_file_exists (const char *unnamed)
 Returns true if a path exists, false if not. More...
 
std::string ug_get_apps_path ()
 Returns the path in which ug's apps are stored. More...
 
std::string ug_get_bin_path ()
 Returns the path in which the ug executable lies. More...
 
std::string ug_get_current_path ()
 Returns the current path. More...
 
std::string ug_get_root_path ()
 Returns ug's root path. More...
 
std::string ug_get_script_path ()
 Returns the script path. More...
 
void ug_set_apps_path (std::string pathName)
 Sets the script path. More...
 
void ug_set_plugin_path (std::string pathName)
 Sets the plugin path. More...
 
void ug_set_root_path (std::string pathName)
 Sets the paths relative to passed root path. More...
 
void ug_set_script_path (std::string pathName)
 Sets the script path. More...
 

Function Documentation

◆ ExecuteSystemCommand()

int ug4Bridge::Util::ExecuteSystemCommand ( const char *  command)

Executes a command in the system shell.

Parameters
[in]command
Returns
success

◆ exit()

void ug4Bridge::Util::exit ( )

Immediatly terminates the application.

◆ quit()

void ug4Bridge::Util::quit ( )

Immediatly terminates the application.

◆ SetMinSecondsUntilProgress()

void ug4Bridge::Util::SetMinSecondsUntilProgress ( size_t  seconds)

determines after which time a progress bar can show up

Parameters
[in]seconds

◆ srand()

void ug4Bridge::Util::srand ( int  seed)

The pseudo-random number generator is initialized using the argument passed as seed.

Parameters
[in]seed

◆ ug_file_exists()

bool ug4Bridge::Util::ug_file_exists ( const char *  unnamed)

Returns true if a path exists, false if not.

Parameters
[in]unnamed
Returns
exists

◆ ug_get_apps_path()

std::string ug4Bridge::Util::ug_get_apps_path ( )

Returns the path in which ug's apps are stored.

Returns
pathName

◆ ug_get_bin_path()

std::string ug4Bridge::Util::ug_get_bin_path ( )

Returns the path in which the ug executable lies.

Returns
pathName

◆ ug_get_current_path()

std::string ug4Bridge::Util::ug_get_current_path ( )

Returns the current path.

Returns
pathName

◆ ug_get_root_path()

std::string ug4Bridge::Util::ug_get_root_path ( )

Returns ug's root path.

Returns
pathName

◆ ug_get_script_path()

std::string ug4Bridge::Util::ug_get_script_path ( )

Returns the script path.

Returns
pathName

◆ ug_set_apps_path()

void ug4Bridge::Util::ug_set_apps_path ( std::string  pathName)

Sets the script path.

Parameters
[in]pathName

◆ ug_set_plugin_path()

void ug4Bridge::Util::ug_set_plugin_path ( std::string  pathName)

Sets the plugin path.

Parameters
[in]pathName

◆ ug_set_root_path()

void ug4Bridge::Util::ug_set_root_path ( std::string  pathName)

Sets the paths relative to passed root path.

Parameters
[in]pathName

◆ ug_set_script_path()

void ug4Bridge::Util::ug_set_script_path ( std::string  pathName)

Sets the script path.

Parameters
[in]pathName