VR-Forces 4.0.4 Class Documentation
examples/tutorialDistributedSimulation3B/DistributedSimulationConnection3B.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 using namespace makVrv;
00015 
00016 class DtExerciseConnInitializer;
00017 class DtExerciseConn;
00018 
00019 namespace makVrv
00020 {
00021 namespace tutorialDistributedSimulation3B
00022 {
00023 
00024 class DistributedSimulationConnection : public DtBaseConnection
00025 {
00026 public:
00027 
00029    DistributedSimulationConnection(DtAgentManagerInterface& aSceneInterface,
00030       DtSharedSettingsManager& settingsManager);
00031 
00033    virtual ~DistributedSimulationConnection();
00034 
00036    inline DtExerciseConn* exerciseConn()
00037    {
00038       return myConnection;
00039    }
00040 
00045    virtual bool connect(const DtExerciseConnInitializer& exConnInitializer);
00046 
00051    virtual bool disconnect();
00052 
00054    virtual bool connected() const;
00055 
00057    boost::signal<void ()> signal_toBeDisconnected;
00058 
00059 protected:
00060 
00061    DtExerciseConn* myConnection;
00062    DtExerciseConnInitializer* myExConnInitializer;
00063 };
00064 
00065 }
00066 }

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)