From: <sv...@ww...> - 2005-12-19 06:19:51
|
Author: mkrose Date: 2005-12-18 22:19:43 -0800 (Sun, 18 Dec 2005) New Revision: 1782 Modified: trunk/CSP/csp/csplib/data/Archive.h Log: Hide stream operators from swig. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1782 Modified: trunk/CSP/csp/csplib/data/Archive.h =================================================================== --- trunk/CSP/csp/csplib/data/Archive.h 2005-12-19 06:13:28 UTC (rev 1781) +++ trunk/CSP/csp/csplib/data/Archive.h 2005-12-19 06:19:43 UTC (rev 1782) @@ -117,6 +117,7 @@ bool _loadAll() const { return _load_all; } bool isComplete() const { return _read >= _end; } +#ifndef SWIG Reader& operator>>(char &x) { if (_read >= _end) throw DataUnderflow(); x = *_read++; @@ -218,6 +219,7 @@ _read += n; return *this; } +#endif // SWIG // old, fixed-width length implementation (DISABLED) // int32 _readLength() { int32 n; operator>>(n); return n; } @@ -321,6 +323,7 @@ public: virtual ~Writer() {} +#ifndef SWIG Writer& operator<<(const char y) { write(&y, sizeof(y)); return *this; @@ -388,6 +391,7 @@ write(y.data(), n); return *this; } +#endif // SWIG void writeLength(int32 length) { assert(length >= 0 && length <= 1073741823); |