AAerosolSQLManager.h
Go to the documentation of this file.
1 #ifndef _atm_AAerosolSQLManager_h_
2 #define _atm_AAerosolSQLManager_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 
28 
29  public:
31 
35  VSQLMANAGER_GETDATA_GETDBDATA(std::vector<double>)
36  VSQLMANAGER_GETDATA_GETDBDATA(std::vector<int>)
37  VSQLMANAGER_GETDATA_GETDBDATA(std::vector<std::string>)
38 
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 comparatively 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 VManager::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 VManager::IndexMap& componentIndex) const;
63 
64  virtual Status GenericGetData(VManager::Handle& returnData,
65  const std::string& component,
66  const std::string& property,
67  const VManager::IndexMap&) const;
68 
69  };
70 
71 }
72 
73 
74 #endif
Manager for aerosol portion of atmospheric monitoring database.
virtual Status GetDBResFundamental(const std::string &tableName, const std::string &columnName, const VManager::IndexMap &componentIndex) const
Class to hold collection (x,y) points and provide interpolation between them.
Interface for detector managers that use MySQL.
virtual Status GenericGetData(VManager::Handle &returnData, const std::string &component, const std::string &property, const VManager::IndexMap &) const
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 VSQLMANAGER_GETDATA_GETDBDATA(_T_...)
virtual Status GetDBResVector(const std::string &tableName, const std::string &columnName, const VManager::IndexMap &componentIndex) const
Status
Specifies success or (eventually) various possible failure modes.
Definition: VManager.h:127

, generated on Tue Sep 26 2023.