TW-1704: Task: Use Task::identifier to reference the task

To achieve consistent output, use a helper method to generate a proper
handle - ID for tasks with non-zero ID, UUID otherwise.
This commit is contained in:
Tomas Babej
2015-10-30 00:37:20 +01:00
committed by Paul Beckingham
parent 1236abc7d5
commit 2d25cf6f59
16 changed files with 50 additions and 57 deletions

View File

@@ -92,6 +92,7 @@ public:
void setAsNow (const std::string&);
bool has (const std::string&) const;
std::vector <std::string> all ();
const std::string identifier (bool shortened = false) const;
const std::string get (const std::string&) const;
const std::string& get_ref (const std::string&) const;
int get_int (const std::string&) const;