00001
00002
00003
00004
00005
00006
00007
00008 #ifndef _SMI_H_
00009 #define _SMI_H_
00010
00011 #include <string>
00012 #include <vector>
00013 #include <map>
00014 using namespace std;
00015
00016 class SMI {
00018
00019 public:
00021 SMI(const string& = "");
00022
00024 bool read(const string&);
00025
00027 pair<float,float> B_POR(size_t) const;
00028
00030 pair<float,float> B_POR(const string&) const;
00031
00032 protected:
00034 const vector<string> *data_find(const string&) const;
00035
00037 float data_float(const vector<string>*, size_t) const;
00038
00040 map<string,vector<string> > data;
00041
00042 };
00043
00044 #endif // _SMI_H_
00045