[Gcblue-commits] gcb_wx/src/common tcObjStream.cpp,1.1,1.2
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-04-17 22:35:39
|
Update of /cvsroot/gcblue/gcb_wx/src/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14954/src/common Modified Files: tcObjStream.cpp Log Message: fixed problem writing to account database, added command state update as part of create update for new objects at client, removed application-level command ack Index: tcObjStream.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/common/tcObjStream.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tcObjStream.cpp 1 May 2004 21:50:27 -0000 1.1 --- tcObjStream.cpp 17 Apr 2005 22:35:30 -0000 1.2 *************** *** 27,30 **** --- 27,39 ---- // ------------------------- tcCreateStream ------------------------- + + /** + * Added crosscast as workaround to support mixtures of streams + */ + tcCommandStream& tcCreateStream::AsCommandStream() + { + return (tcCommandStream&)(*this); + } + /** * *************** *** 53,70 **** // ------------------------- tcCommandStream ------------------------- - /** - * - */ - bool tcCommandStream::GetAck() const - { - return isAck; - } /** ! * Sets ack state of this command stream */ ! void tcCommandStream::SetAck(bool state) { ! isAck = state; } --- 62,72 ---- // ------------------------- tcCommandStream ------------------------- /** ! * Added crosscast as workaround to support mixtures of streams */ ! tcCreateStream& tcCommandStream::AsCreateStream() { ! return (tcCreateStream&)(*this); } *************** *** 73,77 **** */ tcCommandStream::tcCommandStream(const char* data, std::streamsize count) ! : tcStream(data, count), isAck(false) { } --- 75,79 ---- */ tcCommandStream::tcCommandStream(const char* data, std::streamsize count) ! : tcStream(data, count) { } *************** *** 90,94 **** */ tcCommandStream::tcCommandStream() - : isAck(false) { } --- 92,95 ---- |