Replace MessageReader and MessageWriter with Message.

Change-Id: I4b23d5a1e0e39dc2487f252a0947f11328e33090
This commit is contained in:
Peter Johnson
2015-07-12 11:24:34 -07:00
parent 1760d32019
commit 2016bcb37a
12 changed files with 435 additions and 446 deletions

View File

@@ -18,6 +18,7 @@
namespace ntimpl {
class Message;
class StringValueTest;
class Storage;
class Value;
@@ -28,6 +29,7 @@ class WireDecoder;
* C++ wrapper class around NT_String.
*/
class StringValue : private NT_String {
friend class Message;
friend class StringValueTest;
friend class Value;
friend class WireDecoder;
@@ -83,8 +85,9 @@ inline bool operator!=(const StringValue& lhs, llvm::StringRef rhs) {
* C++ wrapper class around NT_Value.
*/
class Value : private NT_Value {
friend class ValueTest;
friend class Message;
friend class Storage;
friend class ValueTest;
friend class WireDecoder;
public:
Value() { NT_InitValue(this); }