ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Represent/Binary.hpp
(Generate patch)

Comparing Represent/Binary.hpp (file contents):
Revision 370 by douglas, 2004-12-21T22:04:06-08:00 vs.
Revision 373 by douglas, 2004-12-22T17:27:28-08:00

# Line 15 | Line 15
15  
16   class Binary
17   {
18 < private:
18 > protected:
19          ext::Vector<byte_t> bytes;
20 +        Binary(size_t size, byte_t value) : bytes(size, value) {}
21   public:
22          Binary() : bytes(size_t(1), 0) {}
23          Binary(const ext::String& string, bool signed_);
24          template <typename Type> Binary(const Type& type);
25          template <typename Type> Type convert(bool signed_);
26 <        operator ext::String() const;
26 >        virtual operator ext::String() const;
27   };
28  
29   template <typename Type>
# Line 47 | Line 48 | Type Binary::convert(bool signed_)
48          return type;
49   }
50  
51 + inline ios::PrintWriter& operator<<(ios::PrintWriter& out, const Binary& binary)
52 + {
53 +        return out << binary.operator ext::String();
54 + }
55 +
56   #endif // _Binary_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines