STIR
6.2.0
|
inline implementations for utility.h More...
Namespaces | |
stir | |
Namespace for the STIR library (and some/most of its applications) | |
Functions | |
char * | stir::strupr (char *const str) |
make C-string uppercase | |
Functions for user input | |
template<class NUMBER > | |
NUMBER | stir::ask_num (const std::string &prompt, NUMBER minimum_value, NUMBER maximum_value, NUMBER default_value) |
A function to ask a number from the user. More... | |
Functions for stream/file manipulations | |
template<class IFSTREAM > | |
IFSTREAM & | stir::open_read_binary (IFSTREAM &s, const std::string &name) |
opens a stream for reading binary data. Calls error() when it does not succeed. More... | |
template<class OFSTREAM > | |
OFSTREAM & | stir::open_write_binary (OFSTREAM &s, const std::string &name) |
opens a stream for writing binary data. Calls error() when it does not succeed. More... | |
template<class FSTREAM > | |
void | stir::close_file (FSTREAM &s) |
closes a stream without error checking. More... | |
inline implementations for utility.h