CMS 3D CMS Logo

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

#include <ALIFileIn.h>

Public Member Functions

 ALIFileIn ()
 
void close ()
 
ALIbool eof ()
 
void ErrorInLine ()
 
ALIint getWordsInLine (std::vector< ALIstring > &wl)
 
const ALIstringname ()
 
const ALIint nline ()
 
 ~ALIFileIn ()
 

Static Public Member Functions

static ALIFileIngetInstance (const ALIstring &name)
 
static ALIFileIngetInstanceOpened (const ALIstring &name)
 

Private Member Functions

 ALIFileIn (const ALIstring &name)
 
void openNewFile (const char *filename)
 

Private Attributes

int theCurrentFile
 
std::vector< std::ifstream * > theFiles
 
std::vector< ALIinttheLineNo
 
ALIstring theName
 Name of file. More...
 
std::vector< ALIstringtheNames
 

Static Private Attributes

static std::vector< ALIFileIn * > theInstances
 

Detailed Description

Definition at line 21 of file ALIFileIn.h.

Constructor & Destructor Documentation

ALIFileIn::ALIFileIn ( )
inline

Definition at line 24 of file ALIFileIn.h.

24 {};
ALIFileIn::~ALIFileIn ( )
inline

Definition at line 25 of file ALIFileIn.h.

25 {}
ALIFileIn::ALIFileIn ( const ALIstring name)
inlineprivate

Definition at line 27 of file ALIFileIn.h.

27 : theName(name){}
const ALIstring & name()
Definition: ALIFileIn.h:44
ALIstring theName
Name of file.
Definition: ALIFileIn.h:64

Member Function Documentation

void ALIFileIn::close ( )
ALIbool ALIFileIn::eof ( )

Definition at line 211 of file ALIFileIn.cc.

void ALIFileIn::ErrorInLine ( )

Definition at line 204 of file ALIFileIn.cc.

Referenced by MeasurementDiffEntry::buildOptONamesList().

ALIFileIn & ALIFileIn::getInstance ( const ALIstring name)
static
ALIFileIn & ALIFileIn::getInstanceOpened ( const ALIstring name)
static

Definition at line 66 of file ALIFileIn.cc.

ALIint ALIFileIn::getWordsInLine ( std::vector< ALIstring > &  wl)
const ALIstring& ALIFileIn::name ( )
inline

Definition at line 44 of file ALIFileIn.h.

References theName.

Referenced by VIDSelectorBase.VIDSelectorBase::initialize().

44 { return theName; }
ALIstring theName
Name of file.
Definition: ALIFileIn.h:64
const ALIint ALIFileIn::nline ( )
inline

Definition at line 42 of file ALIFileIn.h.

References theCurrentFile, and theLineNo.

42 { return theLineNo[theCurrentFile]; }
std::vector< ALIint > theLineNo
Definition: ALIFileIn.h:55
int theCurrentFile
Definition: ALIFileIn.h:57
void ALIFileIn::openNewFile ( const char *  filename)
private

Definition at line 41 of file ALIFileIn.cc.

Member Data Documentation

int ALIFileIn::theCurrentFile
private

Definition at line 57 of file ALIFileIn.h.

Referenced by nline().

std::vector< std::ifstream* > ALIFileIn::theFiles
private

Definition at line 53 of file ALIFileIn.h.

std::vector< ALIFileIn * > ALIFileIn::theInstances
staticprivate

Definition at line 61 of file ALIFileIn.h.

std::vector<ALIint> ALIFileIn::theLineNo
private

Definition at line 55 of file ALIFileIn.h.

Referenced by nline().

ALIstring ALIFileIn::theName
private

Name of file.

Definition at line 64 of file ALIFileIn.h.

Referenced by name().

std::vector<ALIstring> ALIFileIn::theNames
private

Definition at line 56 of file ALIFileIn.h.