CMS 3D CMS Logo

Public Member Functions | Public Attributes

GzInputStream Struct Reference

List of all members.

Public Member Functions

 GzInputStream (const char *file)
 operator void * ()
void readLine ()
 ~GzInputStream ()

Public Attributes

char buffer [256]
bool eof
gzFile gzf
data refman pasoursint
CMSSW_5_3_0 src SimCalorimetry
EcalTrigPrimProducers plugins
EcalTrigPrimESProducer cc
typedef voidp 
gzFile
std::istringstream iss

Detailed Description

Definition at line 15 of file EcalTrigPrimESProducer.cc.


Constructor & Destructor Documentation

GzInputStream::GzInputStream ( const char *  file) [inline]

Definition at line 23 of file EcalTrigPrimESProducer.cc.

References eof, gzf, readLine(), and funct::true.

   : eof(false)
   {
    gzf = gzopen(file,"rb") ;
    if (gzf==Z_NULL)
     {
      eof = true ;
      edm::LogWarning("EcalTPG") <<"Database file "<<file<<" not found!!!";
     }
    else readLine() ;
   }
  void readLine()
GzInputStream::~GzInputStream ( ) [inline]

Definition at line 44 of file EcalTrigPrimESProducer.cc.

References gzf.

   { gzclose(gzf) ; }
  operator void*()

Member Function Documentation

GzInputStream::operator void * ( ) [inline]

Definition at line 46 of file EcalTrigPrimESProducer.cc.

References eof, and iss.

   { return ((eof==true)?((void*)0):iss) ; }
 } ;
void GzInputStream::readLine ( ) [inline]

Definition at line 34 of file EcalTrigPrimESProducer.cc.

References buffer, eof, gzf, and iss.

Referenced by GzInputStream(), and operator>>().

   {
    char * res = gzgets(gzf,buffer,256) ;
    eof = (res==Z_NULL) ;
    if (!eof)
     {
      iss.clear() ;
      iss.str(buffer) ;
     }
   }
  ~GzInputStream()

Member Data Documentation

Definition at line 20 of file EcalTrigPrimESProducer.cc.

Referenced by readLine().

Definition at line 22 of file EcalTrigPrimESProducer.cc.

Referenced by GzInputStream(), operator void *(), and readLine().

Definition at line 19 of file EcalTrigPrimESProducer.cc.

Referenced by GzInputStream(), readLine(), and ~GzInputStream().

data refman pasoursint CMSSW_5_3_0 src SimCalorimetry EcalTrigPrimProducers plugins EcalTrigPrimESProducer cc typedef voidp GzInputStream::gzFile

Definition at line 18 of file EcalTrigPrimESProducer.cc.

std::istringstream GzInputStream::iss

Definition at line 21 of file EcalTrigPrimESProducer.cc.

Referenced by operator void *(), operator>>(), and readLine().