VR-Forces 4.0.4 Class Documentation
examples/tutorialDistributedSimulation3D/DistributedSimulationConnection3D.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2011 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00008 
00009 #pragma once
00010 
00011 #include <vrvCore/DtBaseConnection.h>
00012 #include <boost/signal.hpp>
00013 
00014 class DtExerciseConnInitializer;
00015 class DtExerciseConn;
00016 
00017 namespace makVrv
00018 {
00019 namespace tutorialDistributedSimulation3D
00020 {
00021 
00022 class DistributedSimulationConnection : public DtBaseConnection
00023 {
00024 public:
00025 
00027    DistributedSimulationConnection(DtAgentManagerInterface& aSceneInterface,
00028       DtSharedSettingsManager& settingsManager);
00029 
00031    virtual ~DistributedSimulationConnection();
00032 
00034    inline DtExerciseConn* exerciseConn()
00035    {
00036       return myConnection;
00037    }
00038 
00043    virtual bool connect(const DtExerciseConnInitializer& exConnInitializer);
00044 
00049    virtual bool disconnect();
00050 
00052    virtual bool connected() const;
00053 
00055    boost::signal<void ()> signal_toBeDisconnected;
00056 
00057 protected:
00058 
00059    DtExerciseConn* myConnection;
00060    DtExerciseConnInitializer* myExConnInitializer;
00061 };
00062 
00063 }
00064 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)