16#include <vrfMsgTransport/communicationManager.h>
17#include <vrvUtil/DtVirtualBaseClass.h>
18#include <boost/signals2.hpp>
24class DtBaseConnection;
27class DtMtlParameterDb;
28class DtSimulationModelSet;
45 const DtSimulationAddress& addr, makVrf::DtStateDataManager* sm = 0,
int threadPoolSize = -1);
69 const DtSimulationAddress& addr, makVrf::DtStateDataManager* sm = 0,
int threadPoolSize = -1);
148 const DtFilename& smsToLoad, std::vector<DtFilename>& opdFiles, std::vector<DtFilename>& searchPaths);
static DtVreCommunicationManager & instance(makVrv::DtBaseConnection &conn)
Gets or creates a singleton instance of DtVreCommunicationManager for the given connection.
bool mySmsChanged
Flag indicating whether simulation model sets have changed.
Definition vreCommunicationManager.h:167
virtual void slot_postThreadTick()
Slot called after each thread tick.
static DtCommunicationManager * creator(const DtSimulationAddress &addr, makVrf::DtStateDataManager *sm=0, int threadPoolSize=-1)
Factory method to create a new communication manager.
std::vector< DtFilename > mySimulationModelSets
Current simulation model sets.
Definition vreCommunicationManager.h:164
virtual bool setSimulationModelSets(const std::set< std::string > &smss)
Sets the simulation model sets from a set of strings.
virtual void parseOPDFiles(const DtFilename &smsToLoad, std::vector< DtFilename > &opdFiles, std::vector< DtFilename > &searchPaths)
Parses OPD files from a simulation model set.
double myParamDBTimerStart
Timer for parameter database updates.
Definition vreCommunicationManager.h:170
std::vector< DtFilename > myLastSearchPaths
Last used search paths for the parameter database.
Definition vreCommunicationManager.h:161
DtVreCommunicationManager(const DtSimulationAddress &addr, makVrf::DtStateDataManager *sm=0, int threadPoolSize=-1)
Constructor for the communication manager.
virtual void addSimulationModelSet(const std::string &sms)
Adds a single simulation model set.
virtual void disconnectForUpdate()
Disconnects from pre/post tick signals.
virtual bool setSimulationModelSets(const std::vector< DtString > &smss)
Sets the simulation model sets from a vector of DtString objects.
DtMtlParameterDb * myParamDB
Pointer to the parameter database.
Definition vreCommunicationManager.h:158
virtual void connectForUpdate(makVrv::DtBaseConnection &vrlConn)
Connects for pre/post tick to be able to advance frame.
virtual bool setSimulationModelSets(const std::vector< DtFilename > &smss)
Sets the simulation model sets from a vector of DtFilename objects.
virtual bool setupParameterDatabase()
Sets up the parameter database with the current simulation model sets.
virtual const std::vector< DtFilename > & simulationModelSets()
Gets the current simulation model sets.
Definition vreCommunicationManager.h:114
virtual bool setSimulationModelSets(const std::vector< std::string > &smss)
Sets the simulation model sets from a vector of strings.
static void registerInstance(makVrv::DtBaseConnection &sim, DtVreCommunicationManager *instance)
Registers an instance with the connection and connects it for updates.
virtual void clearSimModelSets()
Clears all simulation model sets.
virtual ~DtVreCommunicationManager() override
Virtual destructor.
boost::signals2::scoped_connection myPreTickConnection
Connection to the pre-tick signal.
Definition vreCommunicationManager.h:152
boost::signals2::scoped_connection myPostTickConnection
Connection to the post-tick signal.
Definition vreCommunicationManager.h:155
virtual void setParameterDatabase(DtVrfParameterDb *parameterDb) override
Sets the parameter database for the communication manager.
virtual void slot_preThreadTick()
Slot called before each thread tick.
Defines export macros for the VREngage Message Manager library.
#define MESSAGEMANAGER_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
Definition appLauncherComponent.h:28
Defines the base class for all VREngage messages.