mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Enhancement - Att object
- Improved new Att object. - Added new constructor to accommodate integer attribute values. - Implemented unit tests.
This commit is contained in:
parent
6600f9bac4
commit
c860d58641
7 changed files with 205 additions and 47 deletions
|
@ -36,6 +36,7 @@ class Att
|
|||
public:
|
||||
Att (); // Default constructor
|
||||
Att (const std::string&, const std::string&); // Simple constructor
|
||||
Att (const std::string&, int); // Simple constructor
|
||||
Att (const Att&); // Copy constructor
|
||||
Att& operator= (const Att&); // Assignment operator
|
||||
~Att (); // Destructor
|
||||
|
@ -44,6 +45,7 @@ public:
|
|||
std::string composeF4 () const;
|
||||
|
||||
void addMod (const std::string&);
|
||||
// TODO Need method to access mods.
|
||||
|
||||
std::string name () const;
|
||||
void name (const std::string&);
|
||||
|
@ -54,10 +56,6 @@ public:
|
|||
int value_int () const;
|
||||
void value_int (int);
|
||||
|
||||
bool filter () const;
|
||||
bool required () const;
|
||||
bool reserved () const;
|
||||
|
||||
private:
|
||||
void enquote (std::string&) const;
|
||||
void dequote (std::string&) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue