MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
FIFFLIB::FiffId Class Reference

Universially unique identifier. More...

#include <fiff_id.h>

Public Types

typedef QSharedPointer< FiffIdSPtr
 
typedef QSharedPointer< const FiffIdConstSPtr
 

Public Member Functions

 FiffId ()
 
 FiffId (const FiffId &p_FiffId)
 
 ~FiffId ()
 
void clear ()
 
void print () const
 
bool isEmpty () const
 
QString toMachidString () const
 

Static Public Member Functions

static FiffId new_file_id ()
 
static bool get_machid (int *fixed_id)
 
static FiffIdgetDefault ()
 
static qint32 storageSize ()
 

Public Attributes

fiff_int_t version
 
fiff_int_t machid [2]
 
fiffTimeRec time
 

Friends

bool operator== (const FiffId &f1, const FiffId &f2)
 

Detailed Description

Universially unique identifier.

These universially unique identifiers are also used to identify blocks within the files. Replaces fiffIdRec which had a size of 5*4 = 20

Definition at line 68 of file fiff_id.h.

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const FiffId> FIFFLIB::FiffId::ConstSPtr

Const shared pointer type for FiffId.

Definition at line 72 of file fiff_id.h.

◆ SPtr

typedef QSharedPointer<FiffId> FIFFLIB::FiffId::SPtr

Shared pointer type for FiffId.

Definition at line 71 of file fiff_id.h.

Constructor & Destructor Documentation

◆ FiffId() [1/2]

FiffId::FiffId ( )

Default Constructor

Definition at line 57 of file fiff_id.cpp.

◆ FiffId() [2/2]

FiffId::FiffId ( const FiffId p_FiffId)

Copy constructor.

Parameters
[in]p_FiffIdUniversially unique identifier which should be copied.

Definition at line 68 of file fiff_id.cpp.

◆ ~FiffId()

FiffId::~FiffId ( )

Destroys the universially unique identifier.

Definition at line 79 of file fiff_id.cpp.

Member Function Documentation

◆ clear()

void FiffId::clear ( )

Resets the File identifier.

Definition at line 115 of file fiff_id.cpp.

◆ get_machid()

bool FiffId::get_machid ( int *  fixed_id)
static

Returns the machine ID consisting of a two integer number Refactored: fiff_get_machid (fiff_get_machid.c)

Definition at line 126 of file fiff_id.cpp.

◆ getDefault()

FiffId & FiffId::getDefault ( )
static

Returns a default FiffId object to be used as an mutable placeholder for a default instance of the class.

Definition at line 210 of file fiff_id.cpp.

◆ isEmpty()

bool FIFFLIB::FiffId::isEmpty ( ) const
inline

True if FIFF id is empty.

Returns
true if FIFF id is empty.

Definition at line 175 of file fiff_id.h.

◆ new_file_id()

FiffId FiffId::new_file_id ( )
static

Constructs a (hopefully) unique file id Refactored: fiff_new_file_id (fiff_id.c)

Definition at line 85 of file fiff_id.cpp.

◆ print()

void FiffId::print ( ) const

Prints the id Refactored: print_id (fiff_dir_tree.c)

Definition at line 164 of file fiff_id.cpp.

◆ storageSize()

qint32 FIFFLIB::FiffId::storageSize ( )
inlinestatic

Size of the old struct (fiffIdRec) 5*int = 5*4 = 20

Returns
the size of the old struct fiffIdRec.

Definition at line 182 of file fiff_id.h.

◆ toMachidString()

QString FiffId::toMachidString ( ) const

Print mac address in a fashionable manner.

Definition at line 175 of file fiff_id.cpp.

Member Data Documentation

◆ machid

fiff_int_t FIFFLIB::FiffId::machid[2]

Unique machine ID.

Definition at line 153 of file fiff_id.h.

◆ time

fiffTimeRec FIFFLIB::FiffId::time

Time of the ID creation.

Definition at line 154 of file fiff_id.h.

◆ version

fiff_int_t FIFFLIB::FiffId::version

File version.

Definition at line 152 of file fiff_id.h.


The documentation for this class was generated from the following files: