STIR  6.2.0
Classes | Namespaces
test_IO.h File Reference

A simple program to test the stir::OutputFileFormat function. More...

#include "stir/RunTests.h"
#include "stir/IO/OutputFileFormat.h"
#include "stir/is_null_ptr.h"
#include "stir/Succeeded.h"
#include "stir/VoxelsOnCartesianGrid.h"
#include "stir/IO/read_from_file.h"
#include "stir/IO/ECAT6OutputFileFormat.h"
#include <fstream>

Go to the source code of this file.

Classes

class  stir::IOTests< A >
 A simple class to test the OutputFileFormat function. More...
 

Namespaces

 stir
 Namespace for the STIR library (and some/most of its applications)
 

Detailed Description

A simple program to test the stir::OutputFileFormat function.

Author
Kris Thielemans
Richard Brown

To run the test, you should use a command line argument with the name of a file. This should contain a test par file. See stir::IOTests class documentation for file contents.

Warning
Overwrites files STIRtmp.* in the current directory
Todo:
The current implementation requires that the output file format as also readable by stir::read_from_file. At least we should provide a run-time switch to not run that part of the tests.