|
SFF++ library: reading and writing SFF from C++
|
#include <sffxx.h>
Public Member Functions | |
| STAT () | |
| STAT (std::istream &is, const bool &debug=false) | |
| std::string | line () const |
| void | read (std::istream &is, const bool &debug=false) |
| void | setstamp (const libtime::TAbsoluteTime &date) const |
Public Attributes | |
| std::string | timestamp |
| bool | hasfree |
| bool | hassrce |
Static Public Attributes | |
| static const double | libversion =2.00 |
| Fortran library version (to ensure compatibility) More... | |
| static const double | decode_libversion =1.09 |
| static const char *const | LINEID ="STAT" |
The STAT line is the first line in the file header. It contains the version of the library that wrote the file, a timestamp and flags indicating the presence of optional elements like a FREE block or an SRCE line.
definition of STAT line:
c position format contents c 1-5 a5 STAT (identifier) c 6-12 f7.2 library version c minor versions are counted in 0.01 steps c major versions are counted in 1.0 steps c 14-26 a13 timestamp of file creation time: c yymmdd.hhmmss c 28-37 a10 code with a combination of two c possible characters: c F there follows a FREE block c S there folloes a SRCE line
27/3/2006: Allow reading of version 1.09 files.