18#ifndef __stir_ParseAndCreateFrom_H__
19#define __stir_ParseAndCreateFrom_H__
51template <
class OutputT,
class InputT,
class ParserT = KeyParser>
72 OutputT*
create(
const InputT&)
const {
return new OutputT(); }
89template <
class elemT,
class ExamDataT>
94 inline output_type* create(
const ExamDataT&)
const;
implementation of the stir::ParseAndCreateFrom class for stir:DiscretisedDensity
Definition of the stir::ParseDiscretisedDensityParameters class.
defines the stir::VoxelsOnCartesianGrid class
This abstract class is the basis for all image representations.
Definition DiscretisedDensity.h:99
template for adding keywords to a parser and creating an object
Definition ParseAndCreateFrom.h:53
OutputT * create(const InputT &) const
create a new object
Definition ParseAndCreateFrom.h:72
void set_defaults()
set default values for any parameters
Definition ParseAndCreateFrom.h:56
void check_values() const
should call error() if something is wrong
Definition ParseAndCreateFrom.h:60
void add_to_keymap(ParserT &)
add any relevant parameters to a parser
Definition ParseAndCreateFrom.h:58
Class for adding parameters relevant to DiscretisedDensity to a parser.
Definition ParseDiscretisedDensityParameters.h:40