AOverallQualitySQLManager.h
Go to the documentation of this file.
1 #ifndef _atm_AOverallQualitySQLManager_h_
2 #define _atm_AOverallQualitySQLManager_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 namespace atm {
14 
28 
29  public:
33 
34  //VMANAGER_GETDATA_NOTFOUND(unsigned long long int)
37  VMANAGER_GETDATA_NOTFOUND(std::vector<double>)
38  VMANAGER_GETDATA_NOTFOUND(std::vector<int>)
39  VMANAGER_GETDATA_NOTFOUND(std::vector<std::string>)
40  VMANAGER_GETDATA_NOTFOUND(std::vector<bool>)
41  VMANAGER_GETDATA_NOTFOUND(std::list<std::pair<int, int> >)
42  VMANAGER_GETDATA_NOTFOUND(std::list<double>)
43  VMANAGER_GETDATA_NOTFOUND(std::list<int>)
44  VMANAGER_GETDATA_NOTFOUND(std::list<std::string>)
45  VMANAGER_GETDATA_NOTFOUND(std::map<int, utl::TabulatedFunction>)
46  VMANAGER_GETDATA_DENIED(std::map<std::string, double>)
47 
48  private:
49  // Helper methods that sends the DB query and retrieves a MYSQL_RES*.
50  // This method is present mainly to separate the comparitively verbose
51  // query code from the shorter bit of code which uses the templated type.
52 
53  // for fundamental types
54  virtual Status GetDBResFundamental(const std::string& tableName,
55  const std::string& columnName,
56  const IndexMap& componentIndex) const;
57 
59 
60  };
61 
62 }
63 
64 
65 #endif
66 
67 // Configure (x)emacs for this file ...
68 // Local Variables:
69 // mode: c++
70 // 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
Class to hold collection (x,y) points and provide interpolation between them.
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
#define VMANAGER_GETDATA_NOTFOUND(_T_...)
Definition: VManager.h:41
Manager for aerosol portion of atmospheric monitoring database.
Status
Specifies success or (eventually) various possible failure modes.
Definition: VManager.h:127

, generated on Tue Sep 26 2023.