- The Columns::is_uda() method allows identification of UDA attributes.
This commit is contained in:
Paul Beckingham 2014-04-15 21:11:10 -04:00
parent 416b597c8a
commit 194db8634e
3 changed files with 8 additions and 0 deletions

View file

@ -56,6 +56,12 @@ ColumnUDA::~ColumnUDA ()
{
}
////////////////////////////////////////////////////////////////////////////////
bool ColumnUDA::is_uda () const
{
return true;
}
////////////////////////////////////////////////////////////////////////////////
bool ColumnUDA::validate (std::string& value)
{

View file

@ -39,6 +39,7 @@ public:
ColumnUDA ();
~ColumnUDA ();
bool is_uda () const;
bool validate (std::string&);
void measure (Task&, unsigned int&, unsigned int&);
void render (std::vector <std::string>&, Task&, int, Color&);

View file

@ -50,6 +50,7 @@ public:
std::string label () const { return _label; }
std::string type () const { return _type; }
bool modifiable () const { return _modifiable; }
bool is_uda () const { return false; }
std::vector <std::string> styles () const { return _styles; }
std::vector <std::string> examples () const { return _examples; }