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

OSGPointConnection.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002  *                                OpenSG                                     *
00003  *                                                                           *
00004  *                                                                           *
00005  *             Copyright (C) 2000-2002 by the OpenSG Forum                   *
00006  *                                                                           *
00007  *                            www.opensg.org                                 *
00008  *                                                                           *
00009  *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          *
00010  *                                                                           *
00011 \*---------------------------------------------------------------------------*/
00012 /*---------------------------------------------------------------------------*\
00013  *                                License                                    *
00014  *                                                                           *
00015  * This library is free software; you can redistribute it and/or modify it   *
00016  * under the terms of the GNU Library General Public License as published    *
00017  * by the Free Software Foundation, version 2.                               *
00018  *                                                                           *
00019  * This library is distributed in the hope that it will be useful, but       *
00020  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
00022  * Library General Public License for more details.                          *
00023  *                                                                           *
00024  * You should have received a copy of the GNU Library General Public         *
00025  * License along with this library; if not, write to the Free Software       *
00026  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
00027  *                                                                           *
00028 \*---------------------------------------------------------------------------*/
00029 /*---------------------------------------------------------------------------*\
00030  *                                Changes                                    *
00031  *                                                                           *
00032  *                                                                           *
00033  *                                                                           *
00034  *                                                                           *
00035  *                                                                           *
00036  *                                                                           *
00037 \*---------------------------------------------------------------------------*/
00038 
00039 
00040 #ifndef _POINTCONNECTION_H_
00041 #define _POINTCONNECTION_H_
00042 #ifdef __sgi
00043 #pragma once
00044 #endif
00045 
00046 //---------------------------------------------------------------------------
00047 //  Includes
00048 //---------------------------------------------------------------------------
00049 
00050 #include <string>
00051 #include <OSGBase.h>
00052 #include <OSGBaseTypes.h>
00053 #include <OSGConnection.h>
00054 #include <OSGTime.h>
00055 
00056 OSG_BEGIN_NAMESPACE
00057 
00058 class OSG_BASE_DLLMAPPING PointConnection : public Connection
00059 {
00060     /*==========================  PUBLIC  =================================*/
00061   public:
00062 
00063     /*---------------------------------------------------------------------*/
00067              PointConnection ( int zeroCopyThreshold );
00068     virtual ~PointConnection ( void                  ); 
00069 
00071     /*---------------------------------------------------------------------*/
00075     virtual const ConnectionType *getType (void) = 0;
00076 
00078     /*---------------------------------------------------------------------*/
00082     virtual Channel connectGroup(const std::string &address,
00083                                        Time        timeout=-1) = 0;
00084     virtual void    disconnect  (      void                  ) = 0;
00085     virtual Channel acceptGroup (      Time        timeout=-1) = 0;
00086 
00088     /*---------------------------------------------------------------------*/
00092     virtual bool wait  (Time timeout=-1) throw (ReadError)  = 0;
00093     virtual void signal(void           ) throw (WriteError) = 0;
00094 
00097     /*=========================  PROTECTED  ===============================*/
00098   protected:
00099     /*---------------------------------------------------------------------*/
00103     bool _pointToPoint;
00104 
00107     /*==========================  PRIVATE  ================================*/
00108   private:
00109 
00110     typedef Connection Inherited;
00111 
00112     // prohibit default functions (move to 'public' if you need one)
00113     PointConnection(const PointConnection &source);
00114     PointConnection& operator =(const PointConnection &source);
00115 };
00116 
00117 //---------------------------------------------------------------------------
00118 //   Exported Types
00119 //---------------------------------------------------------------------------
00120 
00121 // class pointer
00122 
00123 typedef PointConnection *PointConnectionP;
00124 
00125 OSG_END_NAMESPACE
00126 
00127 #define OSG_POINTCONNECTION_HEADER_CVSID "@(#)$Id: $"
00128 
00129 #endif /* _CONNECTION_H_ */

Generated on Thu Aug 25 04:08:28 2005 for OpenSG by  doxygen 1.4.3