mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-06 01:08:34 +02:00
Enhancement - Record::composeF4
- Implemented Record::composeF4.
This commit is contained in:
parent
4cbc67b30b
commit
2dc566a726
3 changed files with 19 additions and 2 deletions
|
@ -59,6 +59,22 @@ Record::~Record ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string Record::composeF4 ()
|
||||
{
|
||||
std::string ff4 = "[";
|
||||
|
||||
bool first = true;
|
||||
foreach (r, (*this))
|
||||
{
|
||||
ff4 += (first ? "" : " ");
|
||||
ff4 += r->second.composeF4 ();
|
||||
}
|
||||
|
||||
ff4 += "]";
|
||||
return ff4;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// start --> [ --> name --> : --> " --> value --> " --> ] --> end
|
||||
|
|
|
@ -39,8 +39,9 @@ public:
|
|||
Record& operator= (const Record&); // Assignment operator
|
||||
virtual ~Record (); // Destructor
|
||||
|
||||
virtual std::string composeF4 () = 0;
|
||||
virtual std::string composeCSV () = 0;
|
||||
|
||||
std::string composeF4 ();
|
||||
void parse (const std::string&);
|
||||
|
||||
std::vector <Att> all ();
|
||||
|
|
|
@ -36,7 +36,7 @@ T::T ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
T::T (const std::string& input)
|
||||
{
|
||||
throw std::string ("unimplemented T::T");
|
||||
parse (input);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue