CARMA C++
OneComponentFilter.h
Go to the documentation of this file.
1 #ifndef CARMA_DBMS_ONECOMPONENTFILTER_H
2 #define CARMA_DBMS_ONECOMPONENTFILTER_H
3 
15 #include <string>
17 
18 namespace carma {
19 namespace dbms {
20 
25 class OneComponentFilter : public Filter {
26 
27 public:
28 
33  std::string getColumnName() const;
34 
39  void setColumnName(const std::string& columnName);
40 
45  virtual std::string name() const = 0;
46 
47 
48 protected:
49  std::string columnName_;
50  std::string fullyQualifiedColumnName_(const std::string& tableName,
51  const std::string& columName) const;
52 
53 };
54 
55 
56 
57 
58 }}
59 
60 #endif // CARMA_DBMS_FILTERONECOMPONENT_H
61 
abstract base class to represent an SQL query one component filter (part of a WHERE clause) ...
void setColumnName(const std::string &columnName)
set the column name associated with the filter
abstract base class to represent an SQL query filter (part of a WHERE clause) .
std::string getColumnName() const
return the column name associated with the filter
abstract base class to represent an SQL query filter (part of a WHERE clause) .
Definition: Filter.h:25
virtual std::string name() const =0
get the class name for log messages etc.