STIR 6.4.0
utilities.inl File Reference

inline implementations for utility.h More...

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

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.

Warning
Functions that work on char* might be removed at some point.
char * stir::strupr (char *const str)
 make C-string uppercase
 

Detailed Description

inline implementations for utility.h

Author
Kris Thielemans
PARAPET project