CARMA C++
Selector.h
Go to the documentation of this file.
1 #ifndef CARMA_DBMS_SELECTOR_H
2 #define CARMA_DBMS_SELECTOR_H
3 
15 #include <string>
16 
17 namespace carma {
18 namespace dbms {
19 
20 
24 class Selector {
25 
26 public:
27 
31  virtual ~Selector();
32 
36  virtual std::string toString() const = 0;
37 
41  void setTable(const std::string& tableName);
42 
47  std::string * getTable() const;
48 
49 
50 protected:
51  Selector();
52 
53  std::string *tableName_;
54 
55 
56 };
57 }}
58 
59 #endif // CARMA_DBMS_SELECTOR_H
60 
std::string * getTable() const
get the pointer to the table name.
void setTable(const std::string &tableName)
set the option table name or aliased table name for this selection
virtual std::string toString() const =0
string representation of this selector
Abstract base class to represent an SQL selection (portion of SELECT clause)
Definition: Selector.h:24
virtual ~Selector()
destructor