CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtParser.hh
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
4// This software is part of the EvtGen package developed jointly
5// for the BaBar and CLEO collaborations. If you use all or part
6// of it, please give an appropriate acknowledgement.
7//
8// Copyright Information: See EvtGen/COPYRIGHT
9// Copyright (C) 1998 Caltech, UCSB
10//
11// Module: EvtGen/EvtParser.hh
12//
13// Description:
14//
15// Modification history:
16//
17// RYD Febuary 11, 1997 Module created
18//
19//------------------------------------------------------------------------
20
21#ifndef EVTPARSER_HH
22#define EVTPARSER_HH
23
24#include <string>
25
26class EvtParser {
27public:
28 EvtParser();
29 ~EvtParser();
30
31 int Read(const std::string filename);
32 int getNToken();
33 const std::string& getToken(int i);
34 int getLineofToken(int i);
35
36private:
37
38 int _ntoken;
39 std::string* _tokenlist;
40 int * _linelist;
41 int _lengthoftokenlist;
42
43 void addToken(int line,const std::string& string);
44
45};
46
47#endif
48
int getLineofToken(int i)
Definition: EvtParser.cc:63
~EvtParser()
Definition: EvtParser.cc:43
int getNToken()
Definition: EvtParser.cc:51
const std::string & getToken(int i)
Definition: EvtParser.cc:57
int Read(const std::string filename)
Definition: EvtParser.cc:69