00001 /*************************************************************************** 00002 l1394_frame.h - description 00003 ------------------- 00004 begin : Tue May 1 2001 00005 copyright : (C) 2001-2004 by Michael Repplinger 00006 email : repplix@studcs.uni-sb.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef L1394_FRAME_H 00019 #define L1394_FRAME_H 00020 00021 00022 00023 namespace L1394{ 00024 00025 /** 00026 *@author Michael Repplinger 00027 */ 00028 class Frame { 00029 public: 00030 Frame(char* , const int size); 00031 Frame(int size); 00032 virtual ~Frame(); 00033 00034 char* getBuffer() const { return buffer; } 00035 int getBufferSize() const { return buffer_size; } 00036 00037 void setBufferSize(int i ) { buffer_size = i; } 00038 void setBuffer(char* Buffer, const int buffer_size, bool is_owner = false); 00039 private: 00040 Frame(const Frame&); 00041 void operator=(const Frame&); 00042 bool is_own_buffer; 00043 char* buffer; 00044 int buffer_size; 00045 }; 00046 }//end namespace 00047 #endif