ICP  1
Public Member Functions | Private Attributes | List of all members
ISISCRPT_DATA Class Reference

#include <CRPTProxy.h>

Inheritance diagram for ISISCRPT_DATA:
Inheritance graph

Public Member Functions

 ISISCRPT_DATA ()
 
void init ()
 
void zeroSpectrum (int spec, int)
 
void incrementSpectrum (int spec, int)
 
void copy (const ISISCRPT_DATA &clone)
 
isisU32_t rawDataSizeMax () const
 
isisU32_t fileSizeMax () const
 
std::string fileName () const
 
std::string sectionName () const
 
isisU32_trawData ()
 
const isisU32_trawData () const
 
isisU32_tspectrumIntegrals ()
 
const isisU32_tspectrumIntegrals () const
 
void zeroRawData (isisU32_t data_size=0)
 
bool valid () const
 
int flush ()
 
void unload (bool delete_file)
 
int loadOrCreate (const char *crpt_data_file, const char *crpt_data_name, int crpt_data_size, DAEstatus &status)
 
int load (const char *crpt_data_file, HANDLE crpt_data_fh, const char *crpt_data_name, int crpt_data_size, bool read_only, DAEstatus &status)
 
int map (const std::string &crpt_data_name, bool read_only, bool)
 

Private Attributes

isisU32_tm_crpt_data
 this will also be the base address for all mappings More...
 
isisU32_t m_crpt_data_size
 in words More...
 
isisU32_tm_spec_integrals
 
isisU32_t m_spec_integrals_size
 in words More...
 
HANDLE m_crpt_data_fh
 
HANDLE m_crpt_data_fm
 
std::string m_crpt_data_file
 
std::string m_crpt_data_name
 name of memory section More...
 

Additional Inherited Members

- Protected Member Functions inherited from ISIS::Base
 Base (const std::string &logger_name="UNKNOWN")
 
void setLoggerName (const std::string &logger_name)
 
virtual ~Base ()
 
virtual std::string loggingPrefix () const
 
void setThisLoggerLevel (int level)
 
- Static Protected Member Functions inherited from ISIS::Base
static void setAllLoggerLevel (int level)
 
- Protected Attributes inherited from ISIS::Base
Poco::Logger * m_logger
 
Poco::LogStream * m_logstr
 
Poco::Mutex m_logger_lock
 

Detailed Description

Definition at line 6 of file CRPTProxy.h.

Constructor & Destructor Documentation

ISISCRPT_DATA::ISISCRPT_DATA ( )
inline

Definition at line 19 of file CRPTProxy.h.

Member Function Documentation

void ISISCRPT_DATA::copy ( const ISISCRPT_DATA clone)
inline

Definition at line 43 of file CRPTProxy.h.

References m_crpt_data, m_crpt_data_size, m_spec_integrals, and m_spec_integrals_size.

Referenced by CRPTProxy::updateFrom().

std::string ISISCRPT_DATA::fileName ( ) const
inline

Definition at line 53 of file CRPTProxy.h.

References m_crpt_data_file.

Referenced by CRPTProxy::dataFileName().

isisU32_t ISISCRPT_DATA::fileSizeMax ( ) const
inline

Definition at line 52 of file CRPTProxy.h.

References m_crpt_data_size, and m_spec_integrals_size.

Referenced by CRPTProxy::dataFileSize(), load(), and loadOrCreate().

int ISISCRPT_DATA::flush ( )
inline

Definition at line 69 of file CRPTProxy.h.

References m_crpt_data, m_crpt_data_fh, and DAEstatus::Success.

Referenced by CRPTProxy::flushCRPT().

void ISISCRPT_DATA::incrementSpectrum ( int  spec,
int   
)
inline

Definition at line 35 of file CRPTProxy.h.

References m_spec_integrals, and m_spec_integrals_size.

Referenced by CRPTProxy::histogramEventsToCRPT().

void ISISCRPT_DATA::init ( )
inline
int ISISCRPT_DATA::load ( const char *  crpt_data_file,
HANDLE  crpt_data_fh,
const char *  crpt_data_name,
int  crpt_data_size,
bool  read_only,
DAEstatus status 
)
inline
int ISISCRPT_DATA::loadOrCreate ( const char *  crpt_data_file,
const char *  crpt_data_name,
int  crpt_data_size,
DAEstatus status 
)
inline
int ISISCRPT_DATA::map ( const std::string &  crpt_data_name,
bool  read_only,
bool   
)
inline
isisU32_t* ISISCRPT_DATA::rawData ( )
inline
const isisU32_t* ISISCRPT_DATA::rawData ( ) const
inline

Definition at line 56 of file CRPTProxy.h.

References m_crpt_data.

isisU32_t ISISCRPT_DATA::rawDataSizeMax ( ) const
inline

Definition at line 51 of file CRPTProxy.h.

References m_crpt_data_size.

Referenced by CRPTProxy::histogramEventsToCRPT(), and CRPTProxy::rawDataSizeMax().

std::string ISISCRPT_DATA::sectionName ( ) const
inline

Definition at line 54 of file CRPTProxy.h.

References m_crpt_data_name.

Referenced by CRPTProxy::dataSectionName().

isisU32_t* ISISCRPT_DATA::spectrumIntegrals ( )
inline

Definition at line 57 of file CRPTProxy.h.

References m_spec_integrals.

Referenced by CRPTProxy::spectrumIntegrals().

const isisU32_t* ISISCRPT_DATA::spectrumIntegrals ( ) const
inline

Definition at line 58 of file CRPTProxy.h.

References m_spec_integrals.

void ISISCRPT_DATA::unload ( bool  delete_file)
inline
bool ISISCRPT_DATA::valid ( ) const
inline

Definition at line 68 of file CRPTProxy.h.

References m_crpt_data.

Referenced by unload().

void ISISCRPT_DATA::zeroRawData ( isisU32_t  data_size = 0)
inline
void ISISCRPT_DATA::zeroSpectrum ( int  spec,
int   
)
inline

Definition at line 28 of file CRPTProxy.h.

References m_spec_integrals, and m_spec_integrals_size.

Referenced by CRPTProxy::zeroEventRawData().

Member Data Documentation

isisU32_t* ISISCRPT_DATA::m_crpt_data
private

this will also be the base address for all mappings

Definition at line 9 of file CRPTProxy.h.

Referenced by copy(), flush(), init(), load(), loadOrCreate(), map(), rawData(), valid(), and zeroRawData().

HANDLE ISISCRPT_DATA::m_crpt_data_fh
private

Definition at line 13 of file CRPTProxy.h.

Referenced by flush(), init(), load(), loadOrCreate(), and unload().

std::string ISISCRPT_DATA::m_crpt_data_file
private

Definition at line 15 of file CRPTProxy.h.

Referenced by fileName(), load(), loadOrCreate(), and unload().

HANDLE ISISCRPT_DATA::m_crpt_data_fm
private

Definition at line 14 of file CRPTProxy.h.

Referenced by init(), load(), loadOrCreate(), map(), and unload().

std::string ISISCRPT_DATA::m_crpt_data_name
private

name of memory section

Definition at line 16 of file CRPTProxy.h.

Referenced by load(), loadOrCreate(), and sectionName().

isisU32_t ISISCRPT_DATA::m_crpt_data_size
private

in words

Definition at line 10 of file CRPTProxy.h.

Referenced by copy(), fileSizeMax(), init(), load(), loadOrCreate(), map(), rawDataSizeMax(), and zeroRawData().

isisU32_t* ISISCRPT_DATA::m_spec_integrals
private
isisU32_t ISISCRPT_DATA::m_spec_integrals_size
private

in words

Definition at line 12 of file CRPTProxy.h.

Referenced by copy(), fileSizeMax(), incrementSpectrum(), init(), load(), loadOrCreate(), zeroRawData(), and zeroSpectrum().


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