ByteArrayMessage.h

Go to the documentation of this file.
00001 //
00002 // (C) 2005 Vojtech Janota
00003 //
00004 // This library is free software, you can redistribute it
00005 // and/or modify
00006 // it under  the terms of the GNU Lesser General Public License
00007 // as published by the Free Software Foundation;
00008 // either version 2 of the License, or any later version.
00009 // The library 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.
00012 // See the GNU Lesser General Public License for more details.
00013 //
00014 
00015 #ifndef __INET_BYTEARRAYMESSAGE_H
00016 #define __INET_BYTEARRAYMESSAGE_H
00017 
00018 #include "ByteArrayMessage_m.h"
00019 
00023 class ByteArrayMessage : public ByteArrayMessage_Base
00024 {
00025   public:
00026     ByteArrayMessage(const char *name=NULL, int kind=0) : ByteArrayMessage_Base(name,kind) {}
00027     ByteArrayMessage(const ByteArrayMessage& other) : ByteArrayMessage_Base(other.getName()) {operator=(other);}
00028     ByteArrayMessage& operator=(const ByteArrayMessage& other) {ByteArrayMessage_Base::operator=(other); return *this;}
00029     virtual ByteArrayMessage *dup() const {return new ByteArrayMessage(*this);}
00030 
00031     virtual void setDataFromBuffer(const void *ptr, int length);
00032     virtual void copyDataToBuffer(void *ptr, int length);
00033     virtual void removePrefix(int length);
00034 };
00035 
00036 #endif
00037 
00038 
00039