86 while (hdline.line!=
"DATA")
89 retval.lines.push_back(hdline.line);
90 if (hdline.token==
"DATASET")
91 { retval.dataset=hdline.value; }
92 else if (hdline.token==
"SIGNAL")
93 { retval.signal=hdline.value; }
94 else if (hdline.token==
"VERSION")
95 { retval.version=hdline.value; }
96 else if (hdline.token==
"DATE")
97 { retval.date=hdline.value; }
98 else if (hdline.token==
"TIME")
99 { retval.time=hdline.value; }
100 else if (hdline.token==
"INTERVAL")
101 { retval.interval=hdline.value; }
102 else if (hdline.token==
"VERT_UNITS")
103 { retval.vertunits=hdline.value; }
104 else if (hdline.token==
"HORZ_UNITS")
105 { retval.horzunits=hdline.value; }
106 else if (hdline.token==
"COMMENT")
108 retval.comment=hdline.value;
111 if (hdline.value==
"GAINRANGED")
115 else if (hdline.token==
"FILE_TYPE")
117 if (hdline.value==
"INT")
119 else if (hdline.value==
"LONG")
127 std::cout <<
"dataset: " << retval.dataset << std::endl;
128 std::cout <<
"signal: " << retval.signal << std::endl;
129 std::cout <<
"version: " << retval.version << std::endl;
130 std::cout <<
"date: " << retval.date << std::endl;
131 std::cout <<
"time: " << retval.time << std::endl;
132 std::cout <<
"interval: " << retval.interval << std::endl;
133 std::cout <<
"vert units: " << retval.vertunits << std::endl;
134 std::cout <<
"horz units: " << retval.horzunits << std::endl;
135 std::cout <<
"comment: " << retval.comment << std::endl;
136 std::cout <<
"data type: ";
138 { std::cout <<
"INT integer" << std::endl; }
140 { std::cout <<
"unknown!" << std::endl; }
HeaderLine readline(std::istream &is, const bool &verbose)
function to read the file header line
#define DATRW_abort(M)
Abort and give a message.