CFEL - ASG Software Suite
2.5.0
CASS
|
class for reading commercial ccd files More...
#include <raw_sss_reader.h>
Public Member Functions | |
RAWSSSReader () | |
constructor More... | |
bool | operator() (std::ifstream &file, CASSEvent &event) |
read the raw.sss file contents put them into cassevent More... | |
void | loadSettings () |
load the settings of the reader More... | |
void | readHeaderInfo (std::ifstream &file) |
read the file header More... | |
![]() | |
virtual | ~FileReader () |
virtual destructor More... | |
void | filename (const std::string &filename) |
set the filename of the instance More... | |
const std::string & | filename () const |
retrieve the filename that this instance is working on More... | |
std::string | type () const |
return the type of file that this is for More... | |
Private Attributes | |
sssFile::Header | _header |
the file header information More... | |
uint32_t | _imagecounter |
counter to see how many images have been read from file More... | |
sssFile::image_t | _imageBuffer |
buffer for images More... | |
size_t | _imageSize |
the length of the image in bytes More... | |
Additional Inherited Members | |
![]() | |
typedef std::tr1::shared_ptr< FileReader > | shared_pointer |
typedef the shared pointer of this More... | |
![]() | |
static shared_pointer | instance (const std::string &filename) |
create an instance of the requested type More... | |
![]() | |
FileReader () | |
only inheritants can create this More... | |
FileReader (const std::string &type) | |
set the readers type More... | |
![]() | |
std::string | _filename |
the name of the file that we read the values from More... | |
std::string | _type |
the reader type as string More... | |
class for reading commercial ccd files
Definition at line 30 of file raw_sss_reader.h.
RAWSSSReader::RAWSSSReader | ( | ) |
constructor
Definition at line 23 of file raw_sss_reader.cpp.
|
virtual |
load the settings of the reader
Implements cass::FileReader.
Definition at line 28 of file raw_sss_reader.cpp.
|
virtual |
read the raw.sss file contents put them into cassevent
file | the file that contains the data to be put into the cassevent |
event | the CASSEvent where the data will be put into |
Implements cass::FileReader.
Definition at line 42 of file raw_sss_reader.cpp.
References cass::FileReader::_filename, _header, _imageBuffer, _imagecounter, _imageSize, cass::pixeldetector::Device::dets(), cass::CASSEvent::devices(), cass::sssFile::Header::height, cass::pixeldetector::Detector::id(), cass::sssFile::Header::nFrames, cass::CASSEvent::PixelDetectors, cass::toString(), and cass::sssFile::Header::width.
|
virtual |
read the file header
file | the filestream to the header information of the file |
Reimplemented from cass::FileReader.
Definition at line 32 of file raw_sss_reader.cpp.
References cass::FileReader::_filename, _header, _imageBuffer, _imagecounter, _imageSize, cass::Log::add(), cass::toString(), and cass::Log::VERBOSEINFO.
|
private |
the file header information
Definition at line 56 of file raw_sss_reader.h.
Referenced by operator()(), and readHeaderInfo().
|
private |
buffer for images
Definition at line 62 of file raw_sss_reader.h.
Referenced by operator()(), and readHeaderInfo().
|
private |
counter to see how many images have been read from file
Definition at line 59 of file raw_sss_reader.h.
Referenced by operator()(), and readHeaderInfo().
|
private |
the length of the image in bytes
Definition at line 65 of file raw_sss_reader.h.
Referenced by operator()(), and readHeaderInfo().