need to automize parameter passing

This commit is contained in:
Dhanya Maliakal
2017-03-24 16:58:17 +01:00
parent a11313fe96
commit fb0b0b96ec
3 changed files with 36 additions and 51 deletions

View File

@ -163,27 +163,13 @@ class HDF5File : private virtual slsReceiverDefs, public File, public HDF5FileSt
int numFilesinAcquisition;
//parameters
static const int const NUM_PARAMETERS;
static const char* const PARAMETERS[];
static const DataType* const PARAMETER_DATATYPES[];
/** Dataspace of parameters */
DataSpace* dataspace_para;
/** parameter1 */
std::string para1;
/** Dataset of parameter1 */
DataSet* dataset_para1;
/** Datatype of parameter1 */
DataType datatype_para1;
/** parameter2 */
std::string para2;
/** Dataset of parameter2 */
DataSet* dataset_para2;
/** Datatype of parameter2 */
DataType datatype_para2;
DataSet* dataset_para[NUM_PARAMETERS];
};
#endif