- Refactored column objects to contain a ::validate method, for the
  validation of incoming data.
- Context.columns is now a vector of one of each column object,
  indexed by attribute name, for validation purposes.
This commit is contained in:
Paul Beckingham 2011-06-24 00:39:28 -04:00
parent a7d6b91ad3
commit 3c1c900b5b
38 changed files with 252 additions and 76 deletions

View file

@ -33,8 +33,8 @@
////////////////////////////////////////////////////////////////////////////////
ColumnEnd::ColumnEnd ()
{
_name = "end";
_label = STRING_COLUMN_LABEL_COMPLETE;
_attribute = "end";
}
////////////////////////////////////////////////////////////////////////////////
@ -43,3 +43,9 @@ ColumnEnd::~ColumnEnd ()
}
////////////////////////////////////////////////////////////////////////////////
bool ColumnEnd::validate (std::string& value)
{
return ColumnDate::validate (value);
}
////////////////////////////////////////////////////////////////////////////////