#include <GeneratorInterface/LHEInterface/src/XMLUtils.h>
Public Types | |
typedef StorageWrap | Stream_t |
Public Member Functions | |
virtual unsigned int | curPos () const |
virtual unsigned int | readBytes (XMLByte *const buf, const unsigned int size) |
StorageInputStream (StorageWrap &in) | |
virtual | ~StorageInputStream () |
Private Attributes | |
StorageWrap & | in |
unsigned int | pos |
Definition at line 166 of file XMLUtils.h.
Definition at line 169 of file XMLUtils.h.
lhef::StorageInputStream::StorageInputStream | ( | StorageWrap & | in | ) |
lhef::StorageInputStream::~StorageInputStream | ( | ) | [virtual] |
virtual unsigned int lhef::StorageInputStream::curPos | ( | ) | const [inline, virtual] |
unsigned int lhef::StorageInputStream::readBytes | ( | XMLByte *const | buf, | |
const unsigned int | size | |||
) | [virtual] |
Definition at line 213 of file XMLUtils.cc.
References Storage::CURRENT, in, int, pos, and SiStripLorentzAngle_cfi::read.
00215 { 00216 void *rawBuf = reinterpret_cast<void*>(buf); 00217 unsigned int bytes = size * sizeof(XMLByte); 00218 unsigned int readBytes = in->read(rawBuf, bytes); 00219 00220 unsigned int read = (unsigned int)(readBytes / sizeof(XMLByte)); 00221 unsigned int rest = (unsigned int)(readBytes % sizeof(XMLByte)); 00222 if (rest) 00223 in->position(-(IOOffset)rest, Storage::CURRENT); 00224 00225 pos += read; 00226 return read; 00227 }
StorageWrap& lhef::StorageInputStream::in [private] |
unsigned int lhef::StorageInputStream::pos [private] |