38 #ifndef __SAMPLE_DATA_TXX
39 #define __SAMPLE_DATA_TXX
48 DataItem<T>::Load(
const RepresenterType* representer,
const H5::Group& dsGroup) {
51 DataItem* newSample = 0;
52 if (sampleType ==
"DataItem") {
53 newSample =
new DataItem<T>(representer);
54 }
else if (sampleType ==
"DataItemWithSurrogates") {
55 newSample =
new DataItemWithSurrogates<T>(representer);
57 throw StatisticalModelException((std::string(
"Unknown sampletype in hdf5 group: ") +sampleType).c_str());
59 newSample->LoadInternal(dsGroup);
65 DataItem<T>::Save(
const H5::Group& dsGroup)
const {
66 if (
dynamic_cast<const DataItemWithSurrogates<T>*
>(
this) != 0) {
71 SaveInternal(dsGroup);
76 #endif // __SAMPLE_DATA_TXX
A trivial representer, that does no representation at all, but works directly with vectorial data...
Definition: TrivialVectorialRepresenter.h:83
static std::string readString(const H5::CommonFG &fg, const char *name)
Definition: HDF5Utils.hxx:379
static H5::DataSet writeString(const H5::CommonFG &fg, const char *name, const std::string &s)
Definition: HDF5Utils.hxx:369