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

#include <DetectorFile.h>

Inheritance diagram for DetectorFileMantid:
Inheritance graph

Public Member Functions

 DetectorFileMantid (const char *filename)
 
void readLine (int &det_no, DETECTOR &det)
 
bool good () const
 
int numLines () const
 
int numUserTables () const
 
const std::string & instName () const
 
const std::string & instXMLFileName () const
 
const std::string & instXML () const
 
const std::string & instParameterMapFileName () const
 
const std::string & instParameterMap () const
 
 ~DetectorFileMantid ()
 
- Public Member Functions inherited from IDetectorFile
virtual ~IDetectorFile ()
 

Private Member Functions

template<typename T >
void getItem (const std::string &name, std::vector< T > &value)
 
template<typename T >
void getItem (const std::string &name, T &value)
 
template<>
void getItem (const std::string &name, std::string &value)
 
- Private 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)
 

Private Attributes

int m_nlines
 
int m_current_line
 
int m_nuse
 
bool m_good
 
NeXus::File * m_file
 
std::vector< double > m_azimuthal_angle
 
std::vector< double > m_polar_angle
 
std::vector< double > m_distance
 
std::vector< int32_t > m_detector_number
 
std::string m_instrument_name
 
std::string m_instrument_xml
 
std::string m_instrument_xml_file_name
 
std::string m_instrument_parameter_map
 
std::string m_instrument_parameter_map_file_name
 
- Private Attributes inherited from ISIS::Base
Poco::Logger * m_logger
 
Poco::LogStream * m_logstr
 
Poco::Mutex m_logger_lock
 

Additional Inherited Members

- Static Private Member Functions inherited from ISIS::Base
static void setAllLoggerLevel (int level)
 

Detailed Description

Definition at line 55 of file DetectorFile.h.

Constructor & Destructor Documentation

DetectorFileMantid::DetectorFileMantid ( const char *  filename)
DetectorFileMantid::~DetectorFileMantid ( )

Definition at line 118 of file DetectorFileMantid.cpp.

References m_file.

Member Function Documentation

template<typename T >
void DetectorFileMantid::getItem ( const std::string &  name,
std::vector< T > &  value 
)
private

Definition at line 75 of file DetectorFileMantid.cpp.

References m_file.

Referenced by DetectorFileMantid().

template<typename T >
void DetectorFileMantid::getItem ( const std::string &  name,
T &  value 
)
private

Definition at line 82 of file DetectorFileMantid.cpp.

References m_file.

void DetectorFileMantid::getItem ( const std::string &  name,
std::string &  value 
)
private

Definition at line 92 of file DetectorFileMantid.cpp.

References m_file.

bool DetectorFileMantid::good ( ) const
inlinevirtual

Implements IDetectorFile.

Definition at line 84 of file DetectorFile.h.

References m_good.

const std::string& DetectorFileMantid::instName ( ) const
inline

Definition at line 87 of file DetectorFile.h.

References m_instrument_name.

Referenced by ISISinstrumentControl::readDetectorTable().

const std::string& DetectorFileMantid::instParameterMap ( ) const
inline

Definition at line 91 of file DetectorFile.h.

References m_instrument_parameter_map.

Referenced by ISISinstrumentControl::readDetectorTable().

const std::string& DetectorFileMantid::instParameterMapFileName ( ) const
inline
const std::string& DetectorFileMantid::instXML ( ) const
inline

Definition at line 89 of file DetectorFile.h.

References m_instrument_xml.

Referenced by ISISinstrumentControl::readDetectorTable().

const std::string& DetectorFileMantid::instXMLFileName ( ) const
inline

Definition at line 88 of file DetectorFile.h.

References m_instrument_xml_file_name.

Referenced by ISISinstrumentControl::readDetectorTable().

int DetectorFileMantid::numLines ( ) const
inlinevirtual

Implements IDetectorFile.

Definition at line 85 of file DetectorFile.h.

References m_nlines.

int DetectorFileMantid::numUserTables ( ) const
inlinevirtual

Implements IDetectorFile.

Definition at line 86 of file DetectorFile.h.

References m_nuse.

void DetectorFileMantid::readLine ( int &  det_no,
DETECTOR det 
)
virtual

Member Data Documentation

std::vector<double> DetectorFileMantid::m_azimuthal_angle
private

Definition at line 63 of file DetectorFile.h.

Referenced by DetectorFileMantid(), and readLine().

int DetectorFileMantid::m_current_line
private

Definition at line 59 of file DetectorFile.h.

Referenced by readLine().

std::vector<int32_t> DetectorFileMantid::m_detector_number
private

Definition at line 66 of file DetectorFile.h.

Referenced by DetectorFileMantid(), and readLine().

std::vector<double> DetectorFileMantid::m_distance
private

Definition at line 65 of file DetectorFile.h.

Referenced by DetectorFileMantid(), and readLine().

NeXus::File* DetectorFileMantid::m_file
private

Definition at line 62 of file DetectorFile.h.

Referenced by DetectorFileMantid(), getItem(), and ~DetectorFileMantid().

bool DetectorFileMantid::m_good
private

Definition at line 61 of file DetectorFile.h.

Referenced by DetectorFileMantid(), good(), and readLine().

std::string DetectorFileMantid::m_instrument_name
private

Definition at line 67 of file DetectorFile.h.

Referenced by DetectorFileMantid(), and instName().

std::string DetectorFileMantid::m_instrument_parameter_map
private

Definition at line 70 of file DetectorFile.h.

Referenced by DetectorFileMantid(), and instParameterMap().

std::string DetectorFileMantid::m_instrument_parameter_map_file_name
private

Definition at line 71 of file DetectorFile.h.

Referenced by instParameterMapFileName().

std::string DetectorFileMantid::m_instrument_xml
private

Definition at line 68 of file DetectorFile.h.

Referenced by DetectorFileMantid(), and instXML().

std::string DetectorFileMantid::m_instrument_xml_file_name
private

Definition at line 69 of file DetectorFile.h.

Referenced by DetectorFileMantid(), and instXMLFileName().

int DetectorFileMantid::m_nlines
private

Definition at line 58 of file DetectorFile.h.

Referenced by DetectorFileMantid(), numLines(), and readLine().

int DetectorFileMantid::m_nuse
private

Definition at line 60 of file DetectorFile.h.

Referenced by DetectorFileMantid(), and numUserTables().

std::vector<double> DetectorFileMantid::m_polar_angle
private

Definition at line 64 of file DetectorFile.h.

Referenced by DetectorFileMantid(), and readLine().


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