77 class NSDFWriter:
public HDF5DataWriter
84 void setEnvironment(
string key,
string value);
86 void setModelRoot(
string root);
87 string getModelRoot()
const;
88 InputVariable *getEventInput(
unsigned int index);
89 void setNumEventInputs(
unsigned int num);
90 unsigned int getNumEventInputs()
const;
91 void setInput(
unsigned int index,
double value);
92 void openUniformData(
const Eref &eref);
93 void closeUniformData();
94 void openEventData(
const Eref &eref);
95 void closeEventData();
97 void createUniformMap();
98 void createEventMap();
99 void writeModelTree();
103 NSDFWriter& operator=(
const NSDFWriter&other);
105 static const Cinfo *initCinfo();
108 hid_t getEventDataset(
string srcPath,
string srcField);
109 void sortOutUniformSources(
const Eref& eref);
111 map <string, string> env_;
112 vector < hid_t > eventDatasets_;
115 vector < vector < double > > events_;
116 vector < InputVariable > eventInputs_;
117 vector < string > eventSrcFields_;
118 vector < string > eventSrc_;
119 map < string, hid_t > eventSrcDataset_;
125 map< string, vector< hid_t > > classFieldToEvent_;
126 map< string, vector< string > > classFieldToEventSrc_;
127 map< string, hid_t > classFieldToUniform_;
130 map< string, pair< hid_t, unsigned int > > uniformSrcDatasetIndex_;
147 map< string, vector< unsigned int > > classFieldToSrcIndex_;
149 map< string, unsigned int > objectFieldToIndex_;
152 vector < pair< string, string > > objectField_;
153 map< string, vector < string > > classFieldToObjectField_;
154 vector < string > vars_;
158 #endif // _NSDFWRITER_H
char map_type(const std::type_info &t)