#include <CLA_File.h>
Public Member Functions | |
CLA_File (const std::string &filename, FileMode mode=READ) | |
virtual void | open (const std::string &filename, FileMode mode=READ) |
virtual void | close () |
Attribute< std::string > | fileName () |
Attribute< std::string > | fileDate () |
Attribute< std::string > | fileType () |
Attribute< std::string > | telescope () |
Attribute< std::string > | projectID () |
Attribute< std::string > | projectTitle () |
Attribute< std::string > | projectPI () |
Attribute< std::string > | projectCOI () |
Attribute< std::string > | projectContact () |
Attribute< std::string > | observationID () |
Attribute< std::string > | observationStartUTC () |
Attribute< double > | observationStartMJD () |
Attribute< std::string > | observationEndUTC () |
Attribute< double > | observationEndMJD () |
Attribute< unsigned > | observationNofStations () |
Attribute< std::vector < std::string > > | observationStationsList () |
Attribute< double > | observationFrequencyMax () |
Attribute< double > | observationFrequencyMin () |
Attribute< double > | observationFrequencyCenter () |
Attribute< std::string > | observationFrequencyUnit () |
Attribute< unsigned > | observationNofBitsPerSample () |
Attribute< double > | clockFrequency () |
Attribute< std::string > | clockFrequencyUnit () |
Attribute< std::string > | antennaSet () |
Attribute< std::string > | filterSelection () |
Attribute< std::vector < std::string > > | targets () |
Attribute< std::string > | systemVersion () |
Attribute< std::string > | pipelineName () |
Attribute< std::string > | pipelineVersion () |
Attribute< std::string > | docName () |
Attribute< VersionType > | docVersion () |
Attribute< std::string > | notes () |
Protected Member Functions | |
std::string | getFileModDate (const std::string &filename) const |
std::string | formatFilenameTimestamp (const struct timeval &tv, const char *output_format, const char *output_format_secs, size_t output_size) const |
Wraps an HDF5 file implementing the Common LOFAR Attributes.
void dal::CLA_File::close | ( | ) | [virtual] |
Indicate that this File object will not be used anymore to access the underlying HDF5 file (if any), possibly until a subsequent call to open().
See the class description for more info on reopening and closing files.
Reimplemented from dal::File.
Reimplemented in dal::BF_File, and dal::TBB_File.
std::string dal::CLA_File::formatFilenameTimestamp | ( | const struct timeval & | tv, |
const char * | output_format, | ||
const char * | output_format_secs, | ||
size_t | output_size | ||
) | const [protected] |
The output_format is without seconds. The output_size is including the terminating NUL char. Helper for in filenames and for the FILEDATE attribute.
std::string dal::CLA_File::getFileModDate | ( | const std::string & | filename | ) | const [protected] |
Returns last mod date/time of filename, or current time of day if stat()ing fails, in "YYYY-MM-DDThh:mm:ss.s" UTC format. For FILEDATE attribute.