17#ifndef __dwi_tractography_properties_h__
18#define __dwi_tractography_properties_h__
28#define TRACTOGRAPHY_FILE_TIMESTAMP_PRECISION 20
35 namespace Tractography
53 void set_version_info();
54 void update_command_history();
57 template <
typename T>
void set (T& variable,
const std::string&
name) {
58 if ((*
this)[
name].empty()) (*this)[
name] =
str (variable);
59 else variable = to<T> ((*
this)[
name]);
62 float get_stepsize()
const;
63 void compare_stepsize_rois()
const;
71 std::multimap<std::string, std::string> prior_rois;
friend std::ostream & operator<<(std::ostream &stream, const Properties &P)
void check_counts(const Properties &, const Properties &, const std::string &, bool abort_on_fail)
void check_timestamps(const Properties &, const Properties &, const std::string &)
std::map< std::string, std::string > KeyValues
used in various places for storing key-value pairs
std::string str(const T &value, int precision=0)