AMolecularSQLManager.h
Go to the documentation of this file.
1 #ifndef _atm_AMolecularSQLManager_h_
2 #define _atm_AMolecularSQLManager_h_
3 
4 #include <utl/ErrorLogger.h>
5 #include <utl/config.h>
6 
7 #ifdef AUGER_SQLITE_ENABLED
8 # include <det/VSQLManager_SQLite.h>
9 #else
10 # include <det/VSQLManager_MySQL.h>
11 #endif
12 
13 
14 namespace atm {
15 
29 
30  public:
35  VSQLMANAGER_GETDATA_GETDBDATA(std::vector<int>)
36  VSQLMANAGER_GETDATA_GETDBDATA(std::vector<std::string>)
37 
38  //VMANAGER_GETDATA_DENIED(unsigned long long int)
39  VMANAGER_GETDATA_DENIED(std::vector<bool>)
42  VMANAGER_GETDATA_DENIED(std::list<double>)
43  VMANAGER_GETDATA_DENIED(std::list<int>)
44  VMANAGER_GETDATA_DENIED(std::list<std::string>)
45  VMANAGER_GETDATA_DENIED(std::list<std::pair<int, int> >)
46  VMANAGER_GETDATA_DENIED(std::map<int, utl::TabulatedFunction>)
47  VMANAGER_GETDATA_DENIED(std::map<std::string, double>)
48 
49  private:
50  // Helper methods that sends the DB query and retrieves a MYSQL_RES*.
51  // This method is present mainly to separate the comparitively verbose
52  // query code from the shorter bit of code which uses the templated type.
53 
54  // for fundamental types
55  virtual Status GetDBResFundamental(const std::string& tableName,
56  const std::string& columnName,
57  const IndexMap& componentIndex) const;
58 
59  // for vector of fundamental types
60  virtual Status GetDBResVector(const std::string& tableName,
61  const std::string& columnName,
62  const IndexMap& componentIndex) const;
63 
64  virtual Status GetDBDataCheckTranspose(std::vector<double>& returnData,
65  const std::string& tableName,
66  const std::string& columnName,
67  const IndexMap& componentIndex) const;
68 
70 
71  };
72 
73 }
74 
75 
76 #endif
77 
78 // Configure (x)emacs for this file ...
79 // Local Variables:
80 // mode: c++
81 // End:
virtual Status GetDBResFundamental(const std::string &tableName, const std::string &columnName, const IndexMap &componentIndex) const
overload this in all derived managers that need it
virtual Status GetDBDataCheckTranspose(std::vector< double > &returnData, const std::string &tableName, const std::string &columnName, const IndexMap &componentIndex) const
Class to hold collection (x,y) points and provide interpolation between them.
Manager for molecular portion of atmospheric monitoring database.
#define VMANAGER_GETDATA_CALL(_GetData_, _T_...)
Definition: VManager.h:59
Interface for detector managers that use MySQL.
Class to hold collection (x,y) points and provide interpolation between them, where y are complex num...
#define VMANAGER_GETDATA_DENIED(_T_...)
Definition: VManager.h:21
#define VMANAGER_GETDATA_HANDLE_DENIED
Definition: VManager.h:75
#define VSQLMANAGER_GETDATA_GETDBDATA(_T_...)
std::map< std::string, std::string > IndexMap
Definition: VManager.h:133
Status
Specifies success or (eventually) various possible failure modes.
Definition: VManager.h:127
virtual Status GetDBResVector(const std::string &tableName, const std::string &columnName, const IndexMap &componentIndex) const
overload this in all derived managers that need it

, generated on Tue Sep 26 2023.