From 58e1f3691c3b3ae2c5d6bb26766487619fdff978 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 17 May 2009 17:11:35 -0400 Subject: [PATCH] FF4 - Snapshot - Added encode/decode Att methods. Necessary if description is to be an attribute, which will be quoted. --- src/rewrite/Att.cpp | 14 ++++++++++++++ src/rewrite/Att.h | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/src/rewrite/Att.cpp b/src/rewrite/Att.cpp index 8bd34fb1f..1082d77ad 100644 --- a/src/rewrite/Att.cpp +++ b/src/rewrite/Att.cpp @@ -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"); +} + +//////////////////////////////////////////////////////////////////////////////// diff --git a/src/rewrite/Att.h b/src/rewrite/Att.h index 2dd8ac8c2..e496a9261 100644 --- a/src/rewrite/Att.h +++ b/src/rewrite/Att.h @@ -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;