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

MNPacketMultiplierSH.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_PACKET_MULTIPLIER_SH_H 00025 #define MN_PACKET_MULTIPLIER_SH_H 00026 00027 #include <sys/types.h> 00028 00029 #include "SH.h" 00030 #include "SHEndpoint.h" 00031 #include "SHEndpointSpec.h" 00032 #include "var_type.h" 00033 00034 class MNRTP; 00035 class MNUDPSocket; 00036 class MNRTPCodecBase; 00037 class MNRope; 00038 00039 namespace SH 00040 { 00041 00042 class PacketMultiplierSH; 00043 class PacketMultiplierSinkEndpointSpec; 00044 class PacketMultiplierSourceEndpointSpec; 00045 class PacketMultiplierSinkEndpoint; 00046 class PacketMultiplierSourceEndpoint; 00047 00052 /**********************************************************************/ 00053 /* PacketMultiplierSinkEndpoint */ 00054 /**********************************************************************/ 00055 00056 class PacketMultiplierSinkEndpoint 00057 : public SinkEndpoint 00058 { 00059 public: 00060 PacketMultiplierSinkEndpoint( PacketMultiplierSH* mySH ); 00061 virtual ~PacketMultiplierSinkEndpoint( ); 00062 00063 virtual SH_RC push( DataPtr item ); 00064 00065 PacketMultiplierSH* dsh(); 00066 }; 00067 00068 /**********************************************************************/ 00069 /* PacketMultiplierSourceEndpoint */ 00070 /**********************************************************************/ 00071 00072 class PacketMultiplierSourceEndpoint 00073 : public SourceEndpoint 00074 { 00075 public: 00076 PacketMultiplierSourceEndpoint( PacketMultiplierSH* mySH ); 00077 virtual ~PacketMultiplierSourceEndpoint( ); 00078 00079 virtual SH_RC pull( DataPtr& item, 00080 SourceUnit su = UnitDefault, 00081 size_t amount = 0 ); 00082 00083 PacketMultiplierSH* dsh(); 00084 }; 00085 00086 /**********************************************************************/ 00087 /* PacketMultiplierSH */ 00088 /**********************************************************************/ 00089 00090 class PacketMultiplierSH 00091 : public Base 00092 { 00093 00094 public: 00095 SH_RC push_decode( DataPtr item ); 00096 SH_RC pull_decode( DataPtr& item ); 00097 00098 public: 00099 PacketMultiplierSH( SHGraphManager* mgr, 00100 u_int32_t runtimeId, 00101 MNSelector& sel ); 00102 00103 private: 00104 00109 PacketMultiplierSH( const PacketMultiplierSH& ); 00110 00115 PacketMultiplierSH& operator=( const PacketMultiplierSH& ); 00116 00117 /******************************************************************/ 00118 /* functions required for Status */ 00119 /******************************************************************/ 00120 protected: 00121 friend class PacketMultiplierSinkEndpoint; 00122 friend class PacketMultiplierSourceEndpoint; 00123 00124 virtual void pushReport( ReportPtr report, Direction d ); 00125 00126 SinkEndpoint* _in_ep_a[1]; 00127 SourceEndpoint* _out_ep_a[2]; 00128 PacketMultiplierSinkEndpoint _inEP; 00129 PacketMultiplierSourceEndpoint _outEP1; 00130 PacketMultiplierSourceEndpoint _outEP2; 00131 00132 public: 00133 virtual SinkEndpoint** getSinkSpecs(); 00134 virtual SourceEndpoint** getSourceSpecs(); 00135 00145 virtual bool isConnected() const ; 00146 }; 00147 00149 00150 }; // namespace SH 00151 00152 #endif /* MN_PACKET_MULTIPLIER_SH_H*/ 00153

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