IPv6ControlInfo.h

Go to the documentation of this file.
00001 //
00002 // Copyright (C) 2005 Andras Varga
00003 //
00004 // This program is free software; you can redistribute it and/or
00005 // modify it under the terms of the GNU Lesser General Public
00006 // License as published by the Free Software Foundation; either
00007 // version 2.1 of the License, or (at your option) any later version.
00008 //
00009 // This program is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU Lesser General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU Lesser General Public
00015 // License along with this program; if not, see <http://www.gnu.org/licenses/>.
00016 //
00017 
00018 #ifndef __IPv6CONTROLINFO_H
00019 #define __IPv6CONTROLINFO_H
00020 
00021 #include "IPv6ControlInfo_m.h"
00022 
00023 class IPv6Datagram;
00024 
00030 class INET_API IPv6ControlInfo : public IPv6ControlInfo_Base
00031 {
00032   protected:
00033     IPv6Datagram *dgram;
00034   public:
00035     IPv6ControlInfo() : IPv6ControlInfo_Base() {dgram=NULL;}
00036     virtual ~IPv6ControlInfo();
00037     IPv6ControlInfo(const IPv6ControlInfo& other) : IPv6ControlInfo_Base() {dgram=NULL; operator=(other);}
00038     IPv6ControlInfo& operator=(const IPv6ControlInfo& other) {IPv6ControlInfo_Base::operator=(other); return *this;}
00039 
00040     virtual void setOrigDatagram(IPv6Datagram *d);
00041     virtual IPv6Datagram *getOrigDatagram() const {return dgram;}
00042     virtual IPv6Datagram *removeOrigDatagram();
00043 };
00044 
00045 #endif
00046 
00047