STIR  6.2.0
Namespaces | Functions
utilities.inl File Reference

inline implementations for utility.h More...

#include <iostream>
#include "stir/error.h"
#include <sstream>

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...
 

Detailed Description

inline implementations for utility.h

Author
Kris Thielemans
PARAPET project