FF4 - Snapshot
- Added encode/decode Att methods. Necessary if description is to be an attribute, which will be quoted.
This commit is contained in:
@@ -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 required () const;
|
||||||
bool internal () const;
|
bool internal () const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
void encode (std::string&) const;
|
||||||
|
void decode (std::string&) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string mName;
|
std::string mName;
|
||||||
std::string mValue;
|
std::string mValue;
|
||||||
|
|||||||
Reference in New Issue
Block a user