128-bit FIFF identifier: hardware machine ID plus creation time, stamped on every file and block. More...
#include <fiff_id.h>
Public Types | |
| using | SPtr = QSharedPointer<FiffId> |
| using | ConstSPtr = QSharedPointer<const FiffId> |
| using | UPtr = std::unique_ptr<FiffId> |
| using | ConstUPtr = std::unique_ptr<const FiffId> |
Public Member Functions | |
| FiffId () | |
| FiffId (const FiffId &p_FiffId) | |
| ~FiffId () | |
| void | clear () |
| void | print () const |
| bool | isEmpty () const |
| QString | toMachidString () const |
| QString | toString () const |
Static Public Member Functions | |
| static FiffId | new_file_id () |
| static bool | get_machid (int *fixed_id) |
| static FiffId & | getDefault () |
| static qint32 | storageSize () |
Public Attributes | |
| fiff_int_t | version |
| fiff_int_t | machid [2] |
| FiffTime | time |
Friends | |
| bool | operator== (const FiffId &f1, const FiffId &f2) |
128-bit FIFF identifier: hardware machine ID plus creation time, stamped on every file and block.
On-disk layout is a 20-byte record (version + 2x4-byte machine ID + 8-byte FiffTime). The machid is filled from the host MAC address by FiffStream::write_id when generating new identifiers, matching the Neuromag acquisition stack so file lineage stays reconstructible.
| using FIFFLIB::FiffId::ConstSPtr = QSharedPointer<const FiffId> |
| using FIFFLIB::FiffId::ConstUPtr = std::unique_ptr<const FiffId> |
| using FIFFLIB::FiffId::SPtr = QSharedPointer<FiffId> |
| using FIFFLIB::FiffId::UPtr = std::unique_ptr<FiffId> |
| FiffId::FiffId | ( | ) |
Default Constructor
Definition at line 45 of file fiff_id.cpp.
| FiffId::FiffId | ( | const FiffId & | p_FiffId | ) |
Copy constructor.
| [in] | p_FiffId | Universially unique identifier which should be copied. |
Definition at line 56 of file fiff_id.cpp.
| FiffId::~FiffId | ( | ) |
Destroys the universially unique identifier.
Definition at line 67 of file fiff_id.cpp.
| void FiffId::clear | ( | ) |
Resets the File identifier.
Definition at line 103 of file fiff_id.cpp.
|
static |
Returns the machine ID consisting of a two integer number.
| [out] | fixed_id | Pointer to an array of at least 2 ints to receive the machine ID. |
Definition at line 114 of file fiff_id.cpp.
|
static |
Returns a default FiffId object to be used as a mutable placeholder for a default instance of the class.
Definition at line 196 of file fiff_id.cpp.
|
inline |
|
static |
Constructs a (hopefully) unique file id.
Definition at line 73 of file fiff_id.cpp.
| void FiffId::print | ( | ) | const |
Prints the id.
Definition at line 152 of file fiff_id.cpp.
|
inlinestatic |
| QString FiffId::toMachidString | ( | ) | const |
Returns the machine ID as a human-readable string.
Definition at line 161 of file fiff_id.cpp.
| QString FiffId::toString | ( | ) | const |
Returns a human-readable string representation of this ID.
Format: "major.minor 0xMACHID1MACHID2 timestamp"
Definition at line 204 of file fiff_id.cpp.