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

SHDummyData.h

Go to the documentation of this file.
00001 /* Copyright (C) 2002 Carsten Griwodz 00002 * 00003 * You are allowed to use all other parts of the code under the following terms: 00004 * 00005 * For non-commercial use, this code may be used in unmodified form 00006 * provided that this copyright notice and this permission notice appear 00007 * in supporting documentation. 00008 * 00009 * The code may be made subject to the terms of the GNU General Public 00010 * License, Version 2, and re-distributed under the terms of this license. 00011 * 00012 * Commercial use other than under the terms of the GNU General Public 00013 * License is allowed only after negotiation of conditions with the authors. 00014 */ 00015 #ifndef SH_DUMMY_DATA_H 00016 #define SH_DUMMY_DATA_H 00017 00018 #include <sys/types.h> 00019 #include "var_type.h" 00020 00021 #include "SHData.h" 00022 00023 class MNRope; 00024 00025 namespace SH 00026 { 00027 00039 class DummyData : public Data 00040 { 00041 public: 00046 DummyData( u_int32_t seqno, u_int32_t pri, u_int32_t len ); 00047 00050 virtual ~DummyData(); 00051 00054 virtual DataPtr clone(); 00055 00058 virtual size_t getByteSize( ) const; 00059 00060 virtual bool isDummyData( ) const { return true; } 00061 virtual bool isPlainData( ) const { return false; } 00062 virtual bool isOrderedData( ) const { return false; } 00063 virtual bool isRTPData( ) const { return false; } 00064 virtual bool isSHRTPData( ) const { return false; } 00067 u_int32_t seqno( ) const; 00068 u_int32_t priority( ) const; 00069 u_int32_t length( ) const; 00070 00071 protected: 00072 DummyData( const DummyData& orig ); 00073 00074 private: 00075 u_int32_t _seqno; 00076 u_int32_t _priority; 00077 u_int32_t _length; 00078 00080 DummyData& operator=( const DummyData& ); 00081 }; 00082 00083 class OrderedDummyData : public DummyData 00084 { 00085 public: 00086 OrderedDummyData( u_int32_t seqno, 00087 u_int32_t pri, 00088 u_int32_t len, 00089 u_int64_t bytepos ); 00090 OrderedDummyData( const OrderedDummyData& orig ); 00091 00093 virtual DataPtr clone(); 00094 00095 u_int64_t get_byte_pos( ) const; 00096 00097 virtual bool isOrderedData( ) const { return true; } 00098 00099 private: 00100 u_int64_t _bytepos; 00101 }; 00102 00104 00105 }; // namespace SH 00106 00107 #endif /* SH_DUMMY_DATA_H */ 00108

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