MAK RTIspy API Documentation for HLA 1.3
wwwSpyRtiConnMgr.h
Go to the documentation of this file.
00001 /*********************************************************************
00002  ** Copyright (c) 2006 MaK Technologies, Inc.
00003  ** All rights reserved.
00004  *********************************************************************/
00005 /*******************************************************************************
00006  ** $RCSfile: wwwSpyRtiConnMgr.h,v $ $Revision: 1.4 $ $State: Exp $
00007  *******************************************************************************/
00010 
00011 #ifndef DtWebSpyRtiConnectionMgr_H_
00012 #define DtWebSpyRtiConnectionMgr_H_
00013 
00014 #include <rtiMsConfig.h>
00015 #include "webSpyUtils.h"
00016 #include <wwwControlMsg.h>
00017 #include <vlutil/vlString.h>
00018 #include <vlutil/vlTime.h>
00019 #include <memory>
00020 
00022 
00023 class DtWebSpyServer;
00024 
00031 class DT_DLL_WWW DtWebSpyRtiConnectionMgr
00032 {
00033 private:
00035    DtWebSpyRtiConnectionMgr( const DtWebSpyRtiConnectionMgr& );
00037    DtWebSpyRtiConnectionMgr& operator=( DtWebSpyRtiConnectionMgr& );
00038 
00039 public:
00040    
00042    typedef DtWebSpyRtiConnectionMgr* (*CreatorType)( DtWebSpyServer& parent );
00043    
00045    static DtWebSpyRtiConnectionMgr* create( DtWebSpyServer& parent );
00046 
00048    static void setCreatorFunction( CreatorType creator );
00049 
00050 public:
00052    virtual ~DtWebSpyRtiConnectionMgr();
00053 
00056    virtual bool tick( unsigned int timeout = 0 ) = 0;
00057 
00060    virtual void postCommand( const DtWebSpyUtils::ConnectionIdentifier& connInfo,
00061       std::auto_ptr<DtRtiMsg> command ) = 0;
00062 
00064    virtual unsigned int numConnections() const = 0;
00065 
00066 protected:
00067 
00069    DtWebSpyRtiConnectionMgr( DtWebSpyServer& parent );
00070 
00071 
00073    virtual DtString createDescription( DtWebSpyUtils::ConnectionType connType, 
00074       unsigned long connHandle, const DtString& info ) const;
00075 
00076 protected:
00077 
00079    unsigned int myRtiPort;
00080 
00082    DtWebSpyServer& myParent;
00083 
00085    DtClock myClock;
00086 
00088    static CreatorType theCreatorFunction;
00089 };
00090 
00091 #endif //! DtWebSpyRtiConnectionMgr_H_

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)