00001
00002
00003 #ifndef __PPFSYSTEM_HPP__
00004 #define __PPFSYSTEM_HPP__
00005
00006 #include <vector>
00007 #include <string>
00008 #include "ppftypes.hpp"
00009 #include "ppfdatatype.hpp"
00010
00011 using namespace std;
00012
00013 namespace ppf
00014 {
00016 class system
00017 {
00018 public:
00019
00020
00021
00024 void connect();
00025
00029 void connect(string user);
00030
00036 void connect(const string user, const accessflag flag);
00037
00044 void read(datatype &d, const long shot, const string DDA, const string dtype);
00045
00054 void read(datatype &d, const long shot, const string DDA, const string dtype, const ioflag flag);
00055
00063 void read(datatype &d, const long shot, const long sequence, const string DDA, const string dtype);
00064
00074 void read(datatype &d, const long shot, const long sequence, const string DDA, const string dtype, const ioflag flag);
00075
00080 void create(long shot);
00081
00088 void create(long shot, long status);
00089
00096 void create(long shot, string comment);
00097
00105 void create(long shot, long status, string comment);
00106
00113 void write(datatype &d, string DDA, string dtype);
00114
00122 void write(datatype &d, string DDA, string dtype, ioflag flag);
00123
00126 void closeDDA();
00127
00132 void closeDDA(int status);
00133
00138 void closeDDA(string comment);
00139
00145 void closeDDA(int status, string comment);
00146
00150 void abort();
00151
00155 int commit();
00156
00162 int commit(string program, int version);
00163
00164 private:
00165
00166
00167
00168 long openshot;
00169 long lastXRef;
00170 long lastTRef;
00171
00172 };
00173 };
00174
00175 #endif
00176