EGSnrc C++ class library
Report PIRS-898 (2021)
Iwan Kawrakow, Ernesto Mainegra-Hing, Frederic Tessier, Reid Townson and Blake Walters
|
Global egspp functions implementation. More...
#include "egs_functions.h"
#include "egs_application.h"
#include <cstdio>
#include <cstdarg>
#include <cstdlib>
#include <cctype>
#include <sys/types.h>
#include <unistd.h>
Go to the source code of this file.
Functions | |
bool EGS_EXPORT | egsStoreI64 (ostream &data, EGS_I64 n) |
Writes the 64 bit integer n to the output stream data and returns true on success, false on failure. More... | |
bool EGS_EXPORT | egsGetI64 (istream &data, EGS_I64 &n) |
Reads a 64 bit integer from the stream data and assigns it to n. Returns true on success, false on failure. More... | |
EGS_InfoFunction | egsSetInfoFunction (EGS_InfoType t, EGS_InfoFunction func) |
Set a function to be used for outputing information, warning messages or reporting fatal errors. More... | |
void | egsSetDefaultIOFunctions () |
Reset I/O functions to their defaults. | |
template<class T > | |
void | __egs_swap_bytes (T *v) |
void | egsSwapBytes (int *n) |
Swap the bytes of 32 bit integers. | |
void | egsSwapBytes (float *n) |
Swap the bytes of 32 bit reals. | |
void | egsSwapBytes (short *n) |
Swap the bytes of 16 bit integers. | |
string | egsJoinPath (const string &first, const string &second) |
Join two path variables (or a path and a file name) using the platform specific directory separator and return the result. | |
string | egsExpandPath (const string &aname) |
Expands first environment variable found in a file name. More... | |
string | egsStripPath (const string &aname) |
Strip the path from a file name and return the result. | |
string | egsHostName () |
Get the name of the host the program is running on. | |
int | egsGetPid () |
Get the process id. | |
string | egsSimplifyCVSKey (const string &key) |
Remove the $'s from a CVS key. More... | |
int | egsGetEndian () |
Get the endianess of the machine. More... | |
bool | egsIsAbsolutePath (const string &path) |
Does the string path represent an absolute path name? | |
bool | egsEquivStr (const string &a, const string &b) |
Variables | |
const char | __egs_fs = '/' |
EGS_InfoFunction EGS_EXPORT | egsInformation = __egs_default_information |
Always use this function for reporting the progress of a simulation and any other type of information. More... | |
EGS_InfoFunction EGS_EXPORT | egsWarning = __egs_default_warning |
Always use this function for reporting warnings. More... | |
EGS_InfoFunction EGS_EXPORT | egsFatal = __egs_default_error |
Always use this function for reporting fatal errors. More... | |
Global egspp functions implementation.
Definition in file egs_functions.cpp.