moving towards c++ api

This commit is contained in:
Dhanya Maliakal
2016-12-12 14:24:11 +01:00
parent a67f9d50de
commit e7621a6cd0
9 changed files with 180 additions and 10 deletions

View File

@ -743,6 +743,18 @@ class slsDetectorBase : public virtual slsDetectorDefs, public virtual errorDef
default: return string("idle"); \
}};
/** returns string from file format index
\param s can be RAW, HDF5
\returns string raw, hdf5
*/
static string fileFormats(fileFormat f){\
switch (f) { \
case BINARY: return string("binary"); \
case ASCII: return string("ascii"); \
case HDF5: return string("hdf5"); \
default: return string("unknown"); \
}};
};