Monarch
v3.8.2
Project 8 Data File Format Library
|
#include <M2Header.hh>
Public Member Functions | |
M2Header () | |
~M2Header () | |
M2Header (const M2Header &)=delete | |
M2Header & | operator= (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 |
Definition at line 16 of file M2Header.hh.
M2Header | ( | ) |
Definition at line 15 of file M2Header.cc.
~M2Header | ( | ) |
Definition at line 19 of file M2Header.cc.
int ByteSize | ( | ) | const |
Definition at line 24 of file M2Header.cc.
bool DemarshalFromArray | ( | void * | anArray, |
int | aSize | ||
) | const |
Definition at line 36 of file M2Header.cc.
bool DemarshalFromStream | ( | std::istream * | aStream | ) | const |
Definition at line 40 of file M2Header.cc.
unsigned int GetAcquisitionMode | ( | ) | const |
Definition at line 196 of file M2Header.cc.
double GetAcquisitionRate | ( | ) | const |
Definition at line 206 of file M2Header.cc.
unsigned GetBitDepth | ( | ) | const |
Definition at line 246 of file M2Header.cc.
unsigned GetDataTypeSize | ( | ) | const |
Definition at line 236 of file M2Header.cc.
const std::string & GetDescription | ( | ) | const |
Definition at line 93 of file M2Header.cc.
const std::string & GetFilename | ( | ) | const |
Definition at line 50 of file M2Header.cc.
FormatModeType GetFormatMode | ( | ) | const |
Definition at line 175 of file M2Header.cc.
unsigned int GetRecordSize | ( | ) | const |
Definition at line 226 of file M2Header.cc.
unsigned int GetRunDuration | ( | ) | const |
Definition at line 216 of file M2Header.cc.
RunSourceType GetRunSource | ( | ) | const |
Definition at line 145 of file M2Header.cc.
RunType GetRunType | ( | ) | const |
Definition at line 116 of file M2Header.cc.
const std::string & GetTimestamp | ( | ) | const |
Definition at line 60 of file M2Header.cc.
double GetVoltageMin | ( | ) | const |
Definition at line 256 of file M2Header.cc.
double GetVoltageRange | ( | ) | const |
Definition at line 266 of file M2Header.cc.
bool MarshalToArray | ( | void * | anArray, |
int | aSize | ||
) | const |
Definition at line 28 of file M2Header.cc.
bool MarshalToStream | ( | std::ostream * | aStream | ) | const |
Definition at line 32 of file M2Header.cc.
void SetAcquisitionMode | ( | AcquisitionModeType | aMode | ) |
Definition at line 190 of file M2Header.cc.
void SetAcquisitionRate | ( | double | aRate | ) |
Definition at line 201 of file M2Header.cc.
void SetBitDepth | ( | unsigned | aBitDepth | ) |
Definition at line 241 of file M2Header.cc.
void SetDataTypeSize | ( | unsigned | aSize | ) |
Definition at line 231 of file M2Header.cc.
void SetDescription | ( | const std::string & | aDescription | ) |
Definition at line 88 of file M2Header.cc.
void SetFilename | ( | const std::string & | aFilename | ) |
Definition at line 45 of file M2Header.cc.
void SetFormatMode | ( | FormatModeType | aFormatMode | ) |
Definition at line 158 of file M2Header.cc.
void SetRecordSize | ( | unsigned int | aSize | ) |
Definition at line 221 of file M2Header.cc.
void SetRunDuration | ( | unsigned int | aDuration | ) |
Definition at line 211 of file M2Header.cc.
void SetRunSource | ( | RunSourceType | aRunSource | ) |
Definition at line 131 of file M2Header.cc.
void SetRunType | ( | RunType | aRunType | ) |
Definition at line 99 of file M2Header.cc.
void SetTimestamp | ( | const std::string & | aTimestamp | ) |
Definition at line 55 of file M2Header.cc.
void SetVoltageMin | ( | double | aVoltage | ) |
Definition at line 251 of file M2Header.cc.
void SetVoltageRange | ( | double | aVoltage | ) |
Definition at line 261 of file M2Header.cc.
|
mutableprivate |
Definition at line 19 of file M2Header.hh.