Monarch  v3.8.2
Project 8 Data File Format Library
Public Member Functions | Private Attributes | List of all members
M2Header Class Reference

#include <M2Header.hh>

Public Member Functions

 M2Header ()
 
 ~M2Header ()
 
 M2Header (const M2Header &)=delete
 
M2Headeroperator= (const M2Header &)=delete
 
int ByteSize () const
 
bool MarshalToArray (void *anArray, int aSize) const
 
bool MarshalToStream (std::ostream *aStream) const
 
bool DemarshalFromArray (void *anArray, int aSize) const
 
bool DemarshalFromStream (std::istream *aStream) const
 
void SetFilename (const std::string &aFilename)
 
const std::string & GetFilename () const
 
void SetAcquisitionMode (AcquisitionModeType aMode)
 
AcquisitionModeType GetAcquisitionMode () const
 
void SetAcquisitionRate (double aRate)
 
double GetAcquisitionRate () const
 
void SetRunDuration (unsigned int aDuration)
 
unsigned int GetRunDuration () const
 
void SetRecordSize (unsigned int aSize)
 
unsigned int GetRecordSize () const
 
void SetTimestamp (const std::string &aTimestamp)
 
const std::string & GetTimestamp () const
 
void SetDescription (const std::string &aDescription)
 
const std::string & GetDescription () const
 
void SetRunType (RunType aRunType)
 
RunType GetRunType () const
 
void SetRunSource (RunSourceType aRunSource)
 
RunSourceType GetRunSource () const
 
void SetFormatMode (FormatModeType aFormatMode)
 
FormatModeType GetFormatMode () const
 
void SetDataTypeSize (unsigned aSize)
 
unsigned GetDataTypeSize () const
 
void SetBitDepth (unsigned aBitDepth)
 
unsigned GetBitDepth () const
 
void SetVoltageMin (double aVoltage)
 
double GetVoltageMin () const
 
void SetVoltageRange (double aVoltage)
 
double GetVoltageRange () const
 

Private Attributes

Protobuf::MonarchHeader * fProtobufHeader
 

Detailed Description

Definition at line 16 of file M2Header.hh.

Constructor & Destructor Documentation

◆ M2Header() [1/2]

M2Header ( )

Definition at line 15 of file M2Header.cc.

◆ ~M2Header()

~M2Header ( )

Definition at line 19 of file M2Header.cc.

◆ M2Header() [2/2]

M2Header ( const M2Header )
delete

Member Function Documentation

◆ ByteSize()

int ByteSize ( ) const

Definition at line 24 of file M2Header.cc.

◆ DemarshalFromArray()

bool DemarshalFromArray ( void *  anArray,
int  aSize 
) const

Definition at line 36 of file M2Header.cc.

◆ DemarshalFromStream()

bool DemarshalFromStream ( std::istream *  aStream) const

Definition at line 40 of file M2Header.cc.

◆ GetAcquisitionMode()

unsigned int GetAcquisitionMode ( ) const

Definition at line 196 of file M2Header.cc.

◆ GetAcquisitionRate()

double GetAcquisitionRate ( ) const

Definition at line 206 of file M2Header.cc.

◆ GetBitDepth()

unsigned GetBitDepth ( ) const

Definition at line 246 of file M2Header.cc.

◆ GetDataTypeSize()

unsigned GetDataTypeSize ( ) const

Definition at line 236 of file M2Header.cc.

◆ GetDescription()

const std::string & GetDescription ( ) const

Definition at line 93 of file M2Header.cc.

◆ GetFilename()

const std::string & GetFilename ( ) const

Definition at line 50 of file M2Header.cc.

◆ GetFormatMode()

FormatModeType GetFormatMode ( ) const

Definition at line 175 of file M2Header.cc.

◆ GetRecordSize()

unsigned int GetRecordSize ( ) const

Definition at line 226 of file M2Header.cc.

◆ GetRunDuration()

unsigned int GetRunDuration ( ) const

Definition at line 216 of file M2Header.cc.

◆ GetRunSource()

RunSourceType GetRunSource ( ) const

Definition at line 145 of file M2Header.cc.

◆ GetRunType()

RunType GetRunType ( ) const

Definition at line 116 of file M2Header.cc.

◆ GetTimestamp()

const std::string & GetTimestamp ( ) const

Definition at line 60 of file M2Header.cc.

◆ GetVoltageMin()

double GetVoltageMin ( ) const

Definition at line 256 of file M2Header.cc.

◆ GetVoltageRange()

double GetVoltageRange ( ) const

Definition at line 266 of file M2Header.cc.

◆ MarshalToArray()

bool MarshalToArray ( void *  anArray,
int  aSize 
) const

Definition at line 28 of file M2Header.cc.

◆ MarshalToStream()

bool MarshalToStream ( std::ostream *  aStream) const

Definition at line 32 of file M2Header.cc.

◆ operator=()

M2Header& operator= ( const M2Header )
delete

◆ SetAcquisitionMode()

void SetAcquisitionMode ( AcquisitionModeType  aMode)

Definition at line 190 of file M2Header.cc.

◆ SetAcquisitionRate()

void SetAcquisitionRate ( double  aRate)

Definition at line 201 of file M2Header.cc.

◆ SetBitDepth()

void SetBitDepth ( unsigned  aBitDepth)

Definition at line 241 of file M2Header.cc.

◆ SetDataTypeSize()

void SetDataTypeSize ( unsigned  aSize)

Definition at line 231 of file M2Header.cc.

◆ SetDescription()

void SetDescription ( const std::string &  aDescription)

Definition at line 88 of file M2Header.cc.

◆ SetFilename()

void SetFilename ( const std::string &  aFilename)

Definition at line 45 of file M2Header.cc.

◆ SetFormatMode()

void SetFormatMode ( FormatModeType  aFormatMode)

Definition at line 158 of file M2Header.cc.

◆ SetRecordSize()

void SetRecordSize ( unsigned int  aSize)

Definition at line 221 of file M2Header.cc.

◆ SetRunDuration()

void SetRunDuration ( unsigned int  aDuration)

Definition at line 211 of file M2Header.cc.

◆ SetRunSource()

void SetRunSource ( RunSourceType  aRunSource)

Definition at line 131 of file M2Header.cc.

◆ SetRunType()

void SetRunType ( RunType  aRunType)

Definition at line 99 of file M2Header.cc.

◆ SetTimestamp()

void SetTimestamp ( const std::string &  aTimestamp)

Definition at line 55 of file M2Header.cc.

◆ SetVoltageMin()

void SetVoltageMin ( double  aVoltage)

Definition at line 251 of file M2Header.cc.

◆ SetVoltageRange()

void SetVoltageRange ( double  aVoltage)

Definition at line 261 of file M2Header.cc.

Member Data Documentation

◆ fProtobufHeader

Protobuf::MonarchHeader* fProtobufHeader
mutableprivate

Definition at line 19 of file M2Header.hh.


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