|
STIR 6.4.0
|
inline implementations for utility.h More...
Go to the source code of this file.
Namespaces | |
| namespace | stir |
| Namespace for the STIR library (and some/most of its applications) | |
Functions | |
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. | |
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. | |
| 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. | |
| template<class FSTREAM> | |
| void | stir::close_file (FSTREAM &s) |
| closes a stream without error checking. | |
Functions for filename manipulations | |
These functions work on different platforms, i.e. Unix, VAX, Windows. Also on older MacOS versions.
| |
| char * | stir::strupr (char *const str) |
| make C-string uppercase | |
inline implementations for utility.h