[Gcblue-commits] gcb_wx/src/common tcObjStream.cpp,NONE,1.1
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2004-05-01 21:50:35
|
Update of /cvsroot/gcblue/gcb_wx/src/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7315/src/common Added Files: tcObjStream.cpp Log Message: --- NEW FILE: tcObjStream.cpp --- /* ** @file tcObjStream.cpp ** ** Copyright (C) 2004 Dewitt Colclough (de...@tw...) ** All rights reserved. ** This file is part of the Global Conflict Blue (GCB) program. ** GCB is free software; you can redistribute it and/or modify ** it under the terms of version 2 of the GNU General Public License as ** published by the Free Software Foundation. ** GCB is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU General Public License for more details. ** You should have received a copy of the GNU General Public License ** along with GCB; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "common/tcStream.h" #include "common/tcObjStream.h" #include <iostream> #include <sstream> // ------------------------- tcCreateStream ------------------------- /** * */ tcCreateStream::tcCreateStream(const char* data, std::streamsize count) : tcStream(data, count) { } /** * copy constructor */ tcCreateStream::tcCreateStream(const tcStream& stream) : tcStream(stream) { } /** * */ tcCreateStream::tcCreateStream() { } // ------------------------- tcCommandStream ------------------------- /** * */ bool tcCommandStream::GetAck() const { return isAck; } /** * Sets ack state of this command stream */ void tcCommandStream::SetAck(bool state) { isAck = state; } /** * */ tcCommandStream::tcCommandStream(const char* data, std::streamsize count) : tcStream(data, count), isAck(false) { } /** * copy constructor */ tcCommandStream::tcCommandStream(const tcStream& stream) : tcStream(stream) { } /** * */ tcCommandStream::tcCommandStream() : isAck(false) { } // ------------------------- tcUpdateStream ------------------------- /** * */ tcUpdateStream::tcUpdateStream(const char* data, std::streamsize count) : tcStream(data, count) { } /** * copy constructor */ tcUpdateStream::tcUpdateStream(const tcStream& stream) : tcStream(stream) { } tcUpdateStream::tcUpdateStream() { } |