[Gcblue-commits] gcb_wx/include/common cspDate.h,1.2,1.3 tcStream.h,1.1,1.2
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2004-04-13 21:51:44
|
Update of /cvsroot/gcblue/gcb_wx/include/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9290/include/common Modified Files: cspDate.h tcStream.h Log Message: Multiplayer related updates Index: cspDate.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/common/cspDate.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** cspDate.h 15 Dec 2003 04:19:59 -0000 1.2 --- cspDate.h 13 Apr 2004 21:37:39 -0000 1.3 *************** *** 61,65 **** typedef double degree_t; ! --- 61,65 ---- typedef double degree_t; ! class tcStream; *************** *** 335,338 **** --- 335,341 ---- */ virtual std::string typeString() const { return "type::Date"; } + + tcStream& operator<<(tcStream& stream); + tcStream& operator>>(tcStream& stream); private: *************** *** 543,546 **** --- 546,552 ---- virtual std::string typeString() const { return "type::Zulu"; } + tcStream& operator<<(tcStream& stream); + tcStream& operator>>(tcStream& stream); + private: time_t m_time; *************** *** 698,701 **** --- 704,710 ---- double getLST(radian_t longitude=0.0L) const; + tcStream& operator<<(tcStream& stream); + tcStream& operator>>(tcStream& stream); + }; Index: tcStream.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/common/tcStream.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tcStream.h 13 Apr 2004 00:24:37 -0000 1.1 --- tcStream.h 13 Apr 2004 21:37:39 -0000 1.2 *************** *** 6,9 **** --- 6,14 ---- { public: + enum + { + WRITE_DYNAMIC = 0, + WRITE_ALL = 1 + }; bool eof(); *************** *** 12,18 **** --- 17,27 ---- void write(const char* buff, std::streamsize count); + int GetDetailLevel() const; + void SetDetailLevel(int dl); + /// write operators tcStream& operator<<(int& val); tcStream& operator<<(long& val); + tcStream& operator<<(short& val); tcStream& operator<<(bool& val); tcStream& operator<<(unsigned char& val); *************** *** 25,28 **** --- 34,38 ---- tcStream& operator>>(int& val); tcStream& operator>>(long& val); + tcStream& operator>>(short& val); tcStream& operator>>(bool& val); tcStream& operator>>(unsigned char& val); *************** *** 35,38 **** --- 45,49 ---- tcStream(); private: + int detailLevel; |