00001 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- 00002 this file is part of rcssserver3D 00003 Fri May 9 2003 00004 Copyright (C) 2003 Koblenz University 00005 $Id: netmessage.h,v 1.1 2004/04/25 16:51:16 rollmark Exp $ 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; version 2 of the License. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 */ 00020 #ifndef OXYGEN_NETMESSAGE_H 00021 #define OXYGEN_NETMESSAGE_H 00022 00023 #include <zeitgeist/class.h> 00024 #include <zeitgeist/leaf.h> 00025 00026 namespace oxygen 00027 { 00028 class NetBuffer; 00029 00040 class NetMessage : public zeitgeist::Leaf 00041 { 00042 public: 00043 NetMessage(); 00044 virtual ~NetMessage(); 00045 00050 virtual void PrepareToSend(std::string& msg); 00051 00059 virtual bool Extract(boost::shared_ptr<NetBuffer> buffer, std::string& msg); 00060 }; 00061 00062 DECLARE_CLASS(NetMessage); 00063 00064 } // namespace oxygen 00065 00066 #endif // OXYGEN_NETMESSAGE_H