UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ldb_statics.hpp
1 /* ldb_statics.hpp */
2 /* $Id$ */
3 #ifndef __ldb_statics_hpp
4 #define __ldb_statics_hpp
5 
6 #include <vector>
7 #include <string>
8 #include <ldb/dbtools.h>
9 
11 namespace ldb_statics
12 {
14  struct ShotStatItem
15  {
16  int NSP;
17  float DATUM;
18  float STLVL;
19  float STRLF;
20  float STCOR1;
21  float STCOR2;
22  float STCOR3;
23  int NSL;
24  int NSS;
25  int XSP;
26  int YSP;
28  static bool nspLessCompare(const ShotStatItem &item1, const ShotStatItem &item2);
29  };
30 
32  struct RecvStatItem
33  {
34  int NRP;
35  float DATUM;
36  float STLVL;
37  float STRLF;
38  float STCOR1;
39  float STCOR2;
40  float STCOR3;
41  int NRL;
42  int NRS;
43  int XOP;
44  int YOP;
46  static bool nrpLessCompare(const RecvStatItem &item1, const RecvStatItem &item2);
47  };
48 
50  int loadShotBasedStatics(dbItem *dbi, std::vector<ShotStatItem> &statics);
51 
53  int saveShotBasedStatics(dbItem *dbi,
54  const std::string &name,
55  const std::vector<ShotStatItem> &statics,
56  int *saved_db_line = 0x0);
57 
58 
60  int loadRecvBasedStatics(dbItem *dbi, std::vector<RecvStatItem> &statics);
61 
63  int saveRecvBasedStatics(dbItem *dbi,
64  const std::string &name,
65  const std::vector<RecvStatItem> &statics,
66  int *saved_db_line = 0x0);
67 };
68 
69 #endif /* ldb_statics.hpp */
float STCOR2
Definition: ldb_statics.hpp:39
float STCOR3
Definition: ldb_statics.hpp:22
int YOP
Definition: ldb_statics.hpp:44
float STCOR3
Definition: ldb_statics.hpp:40
int NRS
Definition: ldb_statics.hpp:42
float STCOR2
Definition: ldb_statics.hpp:21
int YSP
Definition: ldb_statics.hpp:26
float STLVL
Definition: ldb_statics.hpp:18
float DATUM
Definition: ldb_statics.hpp:17
int NSL
Definition: ldb_statics.hpp:23
int XOP
Definition: ldb_statics.hpp:43
float STLVL
Definition: ldb_statics.hpp:36
Definition: ldb_statics.hpp:14
int saveShotBasedStatics(dbItem *dbi, const std::string &name, const std::vector< ShotStatItem > &statics, int *saved_db_line=0x0)
int loadRecvBasedStatics(dbItem *dbi, std::vector< RecvStatItem > &statics)
float DATUM
Definition: ldb_statics.hpp:35
float STCOR1
Definition: ldb_statics.hpp:20
float STRLF
Definition: ldb_statics.hpp:19
int NSS
Definition: ldb_statics.hpp:24
Definition: ldb_statics.hpp:32
int loadShotBasedStatics(dbItem *dbi, std::vector< ShotStatItem > &statics)
int XSP
Definition: ldb_statics.hpp:25
int NRP
Definition: ldb_statics.hpp:34
float STCOR1
Definition: ldb_statics.hpp:38
int saveRecvBasedStatics(dbItem *dbi, const std::string &name, const std::vector< RecvStatItem > &statics, int *saved_db_line=0x0)
int NSP
Definition: ldb_statics.hpp:16
float STRLF
Definition: ldb_statics.hpp:37
Definition: dbnamedefs.h:85
int NRL
Definition: ldb_statics.hpp:41