+static const char* TypeOfDataArrays[13][2] = {
+ { "TAC" , "time activity curve" },
+ { "PROF" , "image profile" },
+ { "HIST" , "histogram" },
+ { "ROI" , "polygraphic region of interest" },
+ { "TABL" , "table of values" },
+ { "FILT" , "filter kernel" },
+ { "POLY" , "poly line" },
+ { "ECG" , "ecg data" },
+ { "PRESSURE" , "pressure data" },
+ { "FLOW" , "flow data" },
+ { "PHYSIO" , "physio data" },
+ { "RESP" , "Respiration trace" },
+ NULL
+};
+
+// Part 3, C.10.2.1.1 Type of data
+// Convert from acronym to full description
+const char *ConvertTypeOfData(std::string const &type)
+{
+ const char **p = *TypeOfDataArrays;
+ while(*p != NULL)
+ {
+ if( p[0] == type ) // std::string== operator
+ {
+ // ok we found it:
+ return p[1];
+ }
+ p+=2;
+ }
+ return NULL;
+}
+