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

#include <M2IO.hh>

Public Member Functions

 M2IO (AccessModeType aMode)
 
 ~M2IO ()
 
bool Open (const std::string &aFilename)
 
bool Write (byte_type *anArray, size_t aCount)
 
template<class XType >
bool Write (XType *aDatum)
 
template<class XType >
bool Write (XType *aDatum, size_t aCount)
 
bool Seek (long int aCount)
 
bool Read (byte_type *anArray, size_t aCount)
 
template<class XType >
bool Read (XType *aDatum)
 
template<class XType >
bool Read (XType *aDatum, size_t aCount)
 
bool Done ()
 
bool Close ()
 

Private Attributes

FILE * fFile
 
AccessModeType fMode
 

Detailed Description

Definition at line 15 of file M2IO.hh.

Constructor & Destructor Documentation

◆ M2IO()

M2IO ( AccessModeType  aMode)

Definition at line 6 of file M2IO.cc.

◆ ~M2IO()

~M2IO ( )

Definition at line 12 of file M2IO.cc.

Member Function Documentation

◆ Close()

bool Close ( )

Definition at line 49 of file M2IO.cc.

◆ Done()

bool Done ( )

Definition at line 37 of file M2IO.cc.

◆ Open()

bool Open ( const std::string &  aFilename)

Definition at line 20 of file M2IO.cc.

◆ Read() [1/3]

bool Read ( byte_type anArray,
size_t  aCount 
)
inline

Definition at line 77 of file M2IO.hh.

◆ Read() [2/3]

bool Read ( XType *  aDatum)
inline

Definition at line 83 of file M2IO.hh.

◆ Read() [3/3]

bool Read ( XType *  aDatum,
size_t  aCount 
)
inline

Definition at line 89 of file M2IO.hh.

◆ Seek()

bool Seek ( long int  aCount)
inline

Definition at line 71 of file M2IO.hh.

◆ Write() [1/3]

bool Write ( byte_type anArray,
size_t  aCount 
)
inline

Definition at line 53 of file M2IO.hh.

◆ Write() [2/3]

bool Write ( XType *  aDatum)
inline

Definition at line 59 of file M2IO.hh.

◆ Write() [3/3]

bool Write ( XType *  aDatum,
size_t  aCount 
)
inline

Definition at line 65 of file M2IO.hh.

Member Data Documentation

◆ fFile

FILE* fFile
private

Definition at line 17 of file M2IO.hh.

◆ fMode

AccessModeType fMode
private

Definition at line 18 of file M2IO.hh.


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