Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SHPlainData.h

Go to the documentation of this file.
00001 /* Copyright (C) 2000 KOM/Darmstadt University of Technology 00002 * 00003 * You are allowed to use all other parts of the code under the following terms: 00004 * 00005 * For non-commercial use, code may be used in unmodified form provided 00006 * that this copyright notice and this permission notice appear in 00007 * supporting documentation. 00008 * 00009 * This software is provided "as is" and without any express or implied 00010 * warranties, including, without limitation, the implied warranty of 00011 * fitness for a particular purpose. 00012 * 00013 * The code may be subjected to the GNU General Public License, Version 2, 00014 * and re-distributed under the terms of this license. 00015 * As a special exception, permission is granted to link this code 00016 * with the Qt library and distribute executables, as long as you 00017 * follow the requirements of the GNU GPL in regard to all of the 00018 * software in the executable aside from Qt. 00019 * 00020 * Commercial use other than under the terms of the GNU General Public 00021 * License is allowed only after express negotiation of conditions 00022 * with the authors. 00023 */ 00024 #ifndef MN_SH_PLAIN_DATA_H 00025 #define MN_SH_PLAIN_DATA_H 00026 00027 #include <sys/types.h> 00028 #include "var_type.h" 00029 00030 #include "SHData.h" 00031 00032 class MNRope; 00033 00034 namespace SH 00035 { 00036 00048 class SHPlainData : public Data 00049 { 00050 public: 00051 static const bool Consume = true; 00052 static const bool DontConsume = false; 00053 00054 public: 00057 SHPlainData( MNRope*& data, bool consume_rope ); 00058 00062 SHPlainData( const uchar_t* data, size_t len ); 00063 00066 virtual ~SHPlainData(); 00067 00069 virtual DataPtr clone(); 00070 00072 virtual size_t getByteSize( ) const; 00073 00075 MNRope* extract_payload(); 00076 00077 virtual bool isPlainData( ) const { return true; } 00078 virtual bool isOrderedData( ) const { return false; } 00079 virtual bool isRTPData( ) const { return false; } 00080 virtual bool isDummyData( ) const { return false; } 00081 virtual bool isSHRTPData( ) const { return false; } 00083 MNRope* getRope(); 00084 protected: 00085 MNRope* _data; 00086 00087 private: 00089 SHPlainData( const SHPlainData& ); 00090 00092 SHPlainData& operator=( const SHPlainData& ); 00093 }; 00094 00096 00097 }; // namespace SH 00098 00099 #endif /* MN_SH_PLAIN_DATA_H */ 00100

Generated on Sun Mar 6 13:35:50 2005 for Komssys by doxygen 1.3.8