18 #ifndef __stir_ParseAndCreateFrom_H__ 19 #define __stir_ParseAndCreateFrom_H__ 51 template <
class OutputT,
class InputT,
class ParserT = KeyParser>
72 OutputT*
create(
const InputT&)
const {
return new OutputT(); }
89 template <
class elemT,
class ExamDataT>
94 inline output_type* create(
const ExamDataT&)
const;
OutputT * create(const InputT &) const
create a new object
Definition: ParseAndCreateFrom.h:72
void add_to_keymap(ParserT &)
add any relevant parameters to a parser
Definition: ParseAndCreateFrom.h:58
Definition of the stir::ParseDiscretisedDensityParameters class.
template for adding keywords to a parser and creating an object
Definition: ParseAndCreateFrom.h:52
Class for adding parameters relevant to DiscretisedDensity to a parser.
Definition: ParseDiscretisedDensityParameters.h:39
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
implementation of the stir::ParseAndCreateFrom class for stir:DiscretisedDensity
defines the stir::VoxelsOnCartesianGrid class
This abstract class is the basis for all image representations.
Definition: FBP2DReconstruction.h:35