Expression support

- Added Context::getColumns to return a vector of column names.
  This is to help a shift toward using the Column objects to assist
  in the parsing/validation of data entry/modifications.
- Added Column::modifiable to delegate an attributes readable/writeable
  state.  This means the columns will be in charge of their own
  mutability, which will simplify and generalize Command::modify_task.
This commit is contained in:
Paul Beckingham 2011-07-23 12:08:13 -04:00
parent ee9199b4e0
commit 1164ea5cf1
6 changed files with 49 additions and 27 deletions

View file

@ -45,11 +45,12 @@ public:
bool operator== (const Column&) const; // TODO Is this necessary?
~Column ();
std::string style () const { return _style; }
std::string label () const { return _label; }
std::string type () const { return _type; }
std::vector <std::string> styles () const { return _styles; }
std::vector <std::string> examples () const { return _examples; }
std::string style () const { return _style; }
std::string label () const { return _label; }
std::string type () const { return _type; }
bool modifiable () const { return _modifiable; }
std::vector <std::string> styles () const { return _styles; }
std::vector <std::string> examples () const { return _examples; }
virtual void setStyle (const std::string& value) { _style = value; }
virtual void setLabel (const std::string& value) { _label = value; }
@ -68,6 +69,7 @@ protected:
std::string _style;
std::string _label;
std::string _report;
bool _modifiable;
std::vector <std::string> _styles;
std::vector <std::string> _examples;
};