TestSQLManager.h
Go to the documentation of this file.
1 #ifndef _sdet_TestSQLManager_h_
2 #define _sdet_TestSQLManager_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 fwk {
15 
24 
25  public:
26 #define TESTSQLMANAGER_GETDATA(_T_...) \
27  Status GetData(_T_& /*returnData*/, \
28  const std::string& /*tableName*/, \
29  const std::string& /*columnName*/, \
30  const IndexMap& /*componentIndex*/) const \
31  { INFO("Test."); Query("SELECT 1;"); return eFound; }
32 
36  //TESTSQLMANAGER_GETDATA(unsigned long long int)
37  TESTSQLMANAGER_GETDATA(std::vector<double>)
38  TESTSQLMANAGER_GETDATA(std::vector<std::string>)
39  TESTSQLMANAGER_GETDATA(std::vector<int>)
40  TESTSQLMANAGER_GETDATA(std::list<double>)
41  TESTSQLMANAGER_GETDATA(std::list<int>)
42  TESTSQLMANAGER_GETDATA(std::list<std::string>)
43  TESTSQLMANAGER_GETDATA(utl::TabulatedFunction)
44  TESTSQLMANAGER_GETDATA(std::list<std::pair<int, int> >)
45  TESTSQLMANAGER_GETDATA(std::map<int,utl::TabulatedFunction>)
46  TESTSQLMANAGER_GETDATA(utl::TabulatedFunctionComplexLgAmpPhase)
47  TESTSQLMANAGER_GETDATA(std::map<std::string, double>)
48  TESTSQLMANAGER_GETDATA(std::vector<bool>)
49 
50 #undef TESTSQLMANAGER_GETDATA
51 
52  private:
54 
55  };
56 
57 }
58 
59 
60 #endif
61 
62 // Configure (x)emacs for this file ...
63 // Local Variables:
64 // mode: c++
65 // compile-command: "cd ../../cmt; make -k test check"
66 // End:
Dummy manager for Testing DB selection.
Interface for detector managers that use MySQL.
#define VMANAGER_GETDATA_HANDLE_DENIED
Definition: VManager.h:75
#define TESTSQLMANAGER_GETDATA(_T_...)

, generated on Tue Sep 26 2023.