CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
MP7FileReader Class Reference

#include <MP7FileReader.h>

Public Types

typedef std::vector< FileData >
::const_iterator 
const_iterator
 expose vector's const iterator More...
 

Public Member Functions

const_iterator begin ()
 vector's begin iterator More...
 
const_iterator end ()
 vector's end iterator More...
 
const FileDataget (size_t k) const
 data getter via index More...
 
 MP7FileReader (const std::string &path)
 
std::vector< std::string > names () const
 raw data name collector More...
 
const std::string & path () const
 source file path More...
 
size_t size () const
 number of rawdata objects stored More...
 
bool valid () const
 reader status. valid() == 1 indicates that data was successfully read from file More...
 
virtual ~MP7FileReader ()
 

Public Attributes

std::vector< FileDatabuffers_
 

Private Member Functions

void load ()
 
std::vector< std::vector
< uint64_t > > 
readRows ()
 
std::string searchBoard ()
 
std::vector< uint32_t > searchLinks ()
 

Static Private Member Functions

static uint64_t validStrToUint64 (const std::string &token)
 

Private Attributes

std::ifstream file_
 
std::string path_
 
bool valid_
 

Static Private Attributes

static boost::regex reBoard_
 
static boost::regex reFrame_
 
static boost::regex reLink_
 
static boost::regex reQuadChan_
 
static boost::regex reValid_
 

Detailed Description

Definition at line 45 of file MP7FileReader.h.

Member Typedef Documentation

expose vector's const iterator

Definition at line 49 of file MP7FileReader.h.

Constructor & Destructor Documentation

MP7FileReader::MP7FileReader ( const std::string &  path)

Definition at line 38 of file MP7FileReader.cc.

MP7FileReader::~MP7FileReader ( )
virtual

Definition at line 62 of file MP7FileReader.cc.

Member Function Documentation

const_iterator MP7FileReader::begin ( void  )
inline

vector's begin iterator

Definition at line 68 of file MP7FileReader.h.

References buffers_.

Referenced by MP7PacketReader::load().

68 { return buffers_.begin(); }
std::vector< FileData > buffers_
Definition: MP7FileReader.h:94
const_iterator MP7FileReader::end ( void  )
inline

vector's end iterator

Definition at line 71 of file MP7FileReader.h.

References buffers_.

Referenced by MP7PacketReader::load().

71 { return buffers_.end(); }
std::vector< FileData > buffers_
Definition: MP7FileReader.h:94
const FileData & MP7FileReader::get ( size_t  k) const

data getter via index

Definition at line 68 of file MP7FileReader.cc.

Referenced by Options.Options::__getitem__().

void MP7FileReader::load ( )
private

Definition at line 83 of file MP7FileReader.cc.

std::vector< std::string > MP7FileReader::names ( void  ) const

raw data name collector

Definition at line 73 of file MP7FileReader.cc.

const std::string& MP7FileReader::path ( ) const
inline

source file path

Definition at line 59 of file MP7FileReader.h.

References path_.

59 { return path_; }
std::string path_
Definition: MP7FileReader.h:89
std::vector< std::vector< uint64_t > > MP7FileReader::readRows ( )
private

Definition at line 207 of file MP7FileReader.cc.

std::string MP7FileReader::searchBoard ( )
private

Definition at line 132 of file MP7FileReader.cc.

std::vector< uint32_t > MP7FileReader::searchLinks ( )
private

Definition at line 159 of file MP7FileReader.cc.

size_t MP7FileReader::size ( void  ) const
inline

number of rawdata objects stored

Definition at line 74 of file MP7FileReader.h.

References buffers_.

Referenced by MP7PacketReader::load().

74 { return buffers_.size(); }
std::vector< FileData > buffers_
Definition: MP7FileReader.h:94
bool MP7FileReader::valid ( ) const
inline

reader status. valid() == 1 indicates that data was successfully read from file

Definition at line 56 of file MP7FileReader.h.

References valid_.

Referenced by MP7PacketReader::MP7PacketReader(), and MP7PacketReader::valid().

56 { return valid_; }
uint64_t MP7FileReader::validStrToUint64 ( const std::string &  token)
staticprivate

Definition at line 193 of file MP7FileReader.cc.

Member Data Documentation

std::vector<FileData> MP7FileReader::buffers_

Definition at line 94 of file MP7FileReader.h.

Referenced by begin(), end(), and size().

std::ifstream MP7FileReader::file_
private

Definition at line 90 of file MP7FileReader.h.

std::string MP7FileReader::path_
private

Definition at line 89 of file MP7FileReader.h.

Referenced by path().

boost::regex MP7FileReader::reBoard_
staticprivate

Definition at line 97 of file MP7FileReader.h.

boost::regex MP7FileReader::reFrame_
staticprivate

Definition at line 100 of file MP7FileReader.h.

boost::regex MP7FileReader::reLink_
staticprivate

Definition at line 98 of file MP7FileReader.h.

boost::regex MP7FileReader::reQuadChan_
staticprivate

Definition at line 99 of file MP7FileReader.h.

boost::regex MP7FileReader::reValid_
staticprivate

Definition at line 101 of file MP7FileReader.h.

bool MP7FileReader::valid_
private

Definition at line 88 of file MP7FileReader.h.

Referenced by valid().