MDF Lib 2.2
Interface against MDF 3/4 files
|
Interface class against an MDF HD block. More...
#include "mdf/iheader.h"
Public Member Functions | |
virtual void | Author (const std::string &author)=0 |
Sets the author of the file. | |
virtual std::string | Author () const =0 |
Returns the author of the file. | |
virtual void | Department (const std::string &department)=0 |
Sets the department name. | |
virtual std::string | Department () const =0 |
Returns the department. | |
virtual void | Project (const std::string &name)=0 |
Sets the project name. | |
virtual std::string | Project () const =0 |
Returns the project name. | |
virtual void | Subject (const std::string &subject)=0 |
Sets the subject of the file. | |
virtual std::string | Subject () const =0 |
Returns the subject of the file. | |
virtual void | Description (const std::string &description)=0 |
Sets the description of the file. | |
virtual std::string | Description () const =0 |
Returns the description of the file. | |
virtual void | MeasurementId (const std::string &uuid) |
Sets a unique identifier for the measurement. | |
virtual std::string | MeasurementId () const |
Returns the unique measurement identifier. | |
virtual void | RecorderId (const std::string &uuid) |
Sets a unique identifier for the recorder. | |
virtual std::string | RecorderId () const |
Returns the unique recorder identifier. | |
virtual void | RecorderIndex (int64_t index) |
Sets the recorder order number. | |
virtual int64_t | RecorderIndex () const |
Returns the recorder order number. | |
virtual void | StartTime (uint64_t ns_since_1970)=0 |
Sets the absolute measurement time for the file. | |
virtual void | StartTime (ITimestamp ×tamp)=0 |
Sets the absolute measurement time for the file. | |
virtual uint64_t | StartTime () const =0 |
Returns the absolute measurement time for the file. | |
virtual const IMdfTimestamp * | StartTimestamp () const =0 |
Returns the start timestamp of the measurement. | |
virtual IMetaData * | CreateMetaData () |
Returns meta data information object. | |
virtual IMetaData * | MetaData () const |
Returns meta data information object. | |
virtual IAttachment * | CreateAttachment () |
Create a new attachment block. | |
virtual std::vector< IAttachment * > | Attachments () const |
Returns a list of attachments. | |
virtual IFileHistory * | CreateFileHistory () |
Create a new file history block. | |
virtual std::vector< IFileHistory * > | FileHistories () const |
Returns a list of file history blocks. | |
virtual IEvent * | CreateEvent () |
Creates a new event block. | |
virtual std::vector< IEvent * > | Events () const |
Returns a list events. | |
virtual IChannelHierarchy * | CreateChannelHierarchy () |
Creates a new channel hierarchy block. | |
virtual std::vector< IChannelHierarchy * > | ChannelHierarchies () const |
Returns a list of channel hierarchy blocks. | |
virtual IDataGroup * | CreateDataGroup ()=0 |
Creates a new data group block. | |
virtual std::vector< IDataGroup * > | DataGroups () const =0 |
Returns a list of measurements. | |
virtual IDataGroup * | LastDataGroup () const =0 |
Returns the last measurement in the file. | |
virtual void | StartAngle (double angle) |
Sets the start angle for the measurements. | |
virtual std::optional< double > | StartAngle () const |
virtual void | StartDistance (double distance) |
Sets the start distance. | |
virtual std::optional< double > | StartDistance () const |
Returns the start distance in meters. | |
Public Member Functions inherited from mdf::IBlock | |
virtual | ~IBlock ()=default |
Default destructor. | |
virtual int64_t | Index () const =0 |
File position within the file. | |
virtual std::string | BlockType () const =0 |
Returns the block type. | |
Protected Member Functions | |
~IHeader () override=default | |
Default constructor. | |
Interface class against a header block (HD) in a MDF file. The header block is the main root that holds all other blocks except the ID block.
|
nodiscardvirtual |
Returns a list of attachments in the measurement file.
|
nodiscardpure virtual |
Returns the author of the file.
|
pure virtual |
Sets the author of the files.
author | Author of the file. |
|
nodiscardvirtual |
Returns a list of channel hierarchy blocks in the measurement file.
|
nodiscardvirtual |
Creates a new attachment block (AT) that reference an external file. This file can be just referenced or embedded into the MDF file. If it is embedded, the file may be compressed as well. Note that MDF3 doesn't support attachments.
|
nodiscardvirtual |
Creates a new channel hierarchy (CH) block.
|
nodiscardpure virtual |
Creates a new data group (DG) block.
|
nodiscardvirtual |
Creates a new event (EV) block.
|
nodiscardvirtual |
Creates a new file history (FH) block that reference a change/update of the MDF file.
|
nodiscardvirtual |
Returns meta data as a text string typically as an XML snippets. Note that this function also creates the MD block if it is missing.
|
nodiscardpure virtual |
Returns a list of measurements in the file also known as DG blocks.
|
nodiscardpure virtual |
Returns the department name.
|
pure virtual |
Sets the department name.
department | Department name. |
|
nodiscardpure virtual |
Returns the description of the file.
|
pure virtual |
Sets the description of the file.
description | Description of the file. |
|
nodiscardvirtual |
Returns a list of event blocks in the measurement file.
|
nodiscardvirtual |
Returns a list of file history blocks in the measurement file.
|
nodiscardpure virtual |
Returns the last measurement in the file.
|
nodiscardvirtual |
Returns the unique measurement identifier of the file.
|
virtual |
Sets a unique identifier (UUID) for the file. This identify files from the same measurement.
uuid | Unique identifier (UUID). |
|
nodiscardvirtual |
Returns meta data as a text string typically as an XML snippets.
|
nodiscardpure virtual |
Returns the project name.
|
pure virtual |
Sets the project name.
name | Project name. |
|
nodiscardvirtual |
Returns the unique recorder identifier of the file.
|
virtual |
Sets a unique identifier (UUID) for measurements from the same recorder.
uuid | Unique identifier (UUID). |
|
nodiscardvirtual |
Returns the recorder order number.
|
virtual |
Sets the recorder order number.
index | Order number |
|
nodiscardvirtual |
Returns the start angle.
Returns the start angle of the measurement in radians.
|
virtual |
Sets the start angle for the measurements in radians.
angle | Start angle. |
|
nodiscardvirtual |
Sets the start distance in meters.
|
virtual |
Sets the start distance in meter for all measurements.
distance | Start distance in meters. |
|
nodiscardpure virtual |
Returns the absolute start time for the measurement file.
|
pure virtual |
Sets the absolute start time for the measurement file using an ITimestamp object.
timestamp | An ITimestamp object representing the start time. |
|
pure virtual |
Sets the absolute start time for the measurement file.
ns_since_1970 | Nanoseconds since 1970. |
|
nodiscardpure virtual |
This function returns the start timestamp of the measurement as a pointer to an IMdfTimestamp object.
|
nodiscardpure virtual |
Returns the subject of the file
|
pure virtual |
Sets the subject of the file.
subject | Subject of the file. |