GEMC
1.8
Geant4 Monte-Carlo Framework
|
Go to the source code of this file.
Functions | |
vector< string > | get_info (string input) |
get information from strings such as "5*GeV, 2*deg, 10*deg" More... | |
string | TrimSpaces (string in) |
Removes leading and trailing spaces. More... | |
vector< string > | get_strings (string input) |
returns a vector of strings from a stringstream More... | |
double | get_number (string v) |
Returns dimension from string, i.e. 100*cm. More... | |
void | print_vstring (vector< string > s) |
prints each element of a string vector More... | |
vector<string> get_info | ( | string | input | ) |
Definition at line 13 of file string_utilities.cc.
double get_number | ( | string | v | ) |
Return value + units.
value | input string. Ex: 10.2*cm |
Definition at line 65 of file string_utilities.cc.
vector<string> get_strings | ( | string | input | ) |
Definition at line 44 of file string_utilities.cc.
void print_vstring | ( | vector< string > | s | ) |
Definition at line 106 of file string_utilities.cc.
string TrimSpaces | ( | string | in | ) |
Definition at line 25 of file string_utilities.cc.