BOSS 8.0.0
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 int _ntoken;
38 std::string* _tokenlist;
39 int* _linelist;
40 int _lengthoftokenlist;
41
42 void addToken( int line, const std::string& string );
43};
44
45#endif
int getLineofToken(int i)
Definition EvtParser.cc:52
int getNToken()
Definition EvtParser.cc:48
const std::string & getToken(int i)
Definition EvtParser.cc:50
int Read(const std::string filename)
Definition EvtParser.cc:54