1 |
jengbou |
1.1 |
#ifndef _ReadBeamSpot_h_
|
2 |
|
|
#define _ReadBeamSpot_h_
|
3 |
|
|
|
4 |
|
|
#include <ostream>
|
5 |
|
|
#include <fstream>
|
6 |
|
|
#include <string>
|
7 |
|
|
#include <sstream>
|
8 |
|
|
#include <algorithm>
|
9 |
|
|
|
10 |
|
|
using namespace std;
|
11 |
|
|
|
12 |
|
|
bool myci_equal(char ch1, char ch2);
|
13 |
|
|
|
14 |
|
|
class ReadBeamSpot{
|
15 |
|
|
public:
|
16 |
|
|
ReadBeamSpot();
|
17 |
|
|
~ReadBeamSpot();
|
18 |
|
|
void openHtmlFile (string fileName);
|
19 |
|
|
void closeHtmlFile (void);
|
20 |
|
|
void makePlots ();
|
21 |
|
|
void findString (string what);
|
22 |
|
|
void setStyle();
|
23 |
|
|
friend ostream& operator<<(ostream& out, const ReadBeamSpot& reader);
|
24 |
|
|
private:
|
25 |
|
|
ifstream theFile_;
|
26 |
|
|
string text_;
|
27 |
|
|
string dataDir_;
|
28 |
|
|
stringstream textFound_;
|
29 |
|
|
|
30 |
|
|
size_t ci_find(string& str1, string str2, int stringPos);
|
31 |
|
|
};
|
32 |
|
|
|
33 |
|
|
#endif
|