CARMA C++
Filter.h
Go to the documentation of this file.
1 #ifndef CARMA_DBMS_FILTER_H
2 #define CARMA_DBMS_FILTER_H
3 
16 #include <string>
17 
18 namespace carma {
19 namespace dbms {
20 
25 class Filter {
26 
27 public:
28 
29  virtual ~Filter( ) { }
30 
36  //virtual std::string toString() const = 0;
37 
41  virtual std::string name() const = 0;
42 
50  virtual std::string toString(const std::string& tableName = "",
51  const std::string& columnName = "") const = 0;
52 };
53 }}
54 
55 #endif // CARMA_DBMS_FILTER_H
56 
virtual std::string name() const =0
string representation of the filter.
virtual std::string toString(const std::string &tableName="", const std::string &columnName="") const =0
string representation of the filter.
abstract base class to represent an SQL query filter (part of a WHERE clause) .
Definition: Filter.h:25