mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
FF4 - Snapshot
- Added encode/decode Att methods. Necessary if description is to be an attribute, which will be quoted.
This commit is contained in:
parent
fdd43a9619
commit
58e1f3691c
2 changed files with 18 additions and 0 deletions
|
@ -152,3 +152,17 @@ bool Att::internal () const
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// TODO Encode values prior to serialization.
|
||||
void Att::encode (std::string&) const
|
||||
{
|
||||
throw std::string ("unimplemented Att::internal");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// TODO Decode values after parse.
|
||||
void Att::decode (std::string&) const
|
||||
{
|
||||
throw std::string ("unimplemented Att::internal");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -57,6 +57,10 @@ public:
|
|||
bool required () const;
|
||||
bool internal () const;
|
||||
|
||||
private:
|
||||
void encode (std::string&) const;
|
||||
void decode (std::string&) const;
|
||||
|
||||
private:
|
||||
std::string mName;
|
||||
std::string mValue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue