CARMA C++
PDB_Query.h
1 /*
2  * CARMA Project Database Query Functionality
3  */
4 
5 #ifndef PDB_QUERY_H
6 #define PDB_QUERY_H
7 
8 #include <carma/observertools/ProjectDatabaseManagerImpl.h>
9 #include <carma/observertools/ProjectDatabaseManager.h>
10 #include <carma/observertools/PDB_MongoDB.h>
11 
12 #include <vector>
13 
14 namespace carma {
15 namespace observertools {
16 
17 class PDB_Query {
18 public:
19  PDB_Query(const PDB_DB_Params &db, const ItemValueSequence &theQuery);
20  PDB_Query(const PDB_DB_Params &db, const std::vector<ItemValue> &theQuery);
21  std::vector<Project> run() const;
22 
23 private:
24  const PDB_DB_Params db_;
25  const std::vector<ItemValue> queryParams_;
26 };
27 
28 } // namespace carma::observertools
29 } // namespace carma
30 
31 #endif /* PDB_QUERY_H */
32 
33 /* vim: set ts=8 sts=8 sw=8 noet tw=92: */
sequence< ItemValue > ItemValueSequence
Sequence of an Item name and value pairs.
Definition: ItemValue.idl:26