STIR  6.2.0
Classes | Namespaces | Functions
test_OutputFileFormat.cxx File Reference

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

#include "stir/IO/OutputFileFormat.h"
#include "stir/IO/read_from_file.h"
#include "stir/IO/ECAT6OutputFileFormat.h"
#include "stir/RunTests.h"
#include "stir/KeyParser.h"
#include "stir/is_null_ptr.h"
#include "stir/Succeeded.h"
#include "stir/VoxelsOnCartesianGrid.h"
#include "stir/CartesianCoordinate3D.h"
#include "stir/IndexRange3D.h"
#include <fstream>
#include <iostream>
#include <memory>
#include <math.h>

Classes

class  stir::OutputFileFormatTests
 A simple class to test the OutputFileFormat function. More...
 

Namespaces

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

Functions

int main (int argc, char **argv)
 

Detailed Description

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

Author
Kris Thielemans

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