VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtExampleEventSignaler.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 //\brief Contains DtExampleEventSignaler class.
8 //An event signaler is a class that is used to signal boost style signals from
9 //the gui thread to the networking thread
10 
11 #pragma once
12 
13 #include <vrfGuiCore/vrfGuiCore.h>
14 #include <vrvUtil/event_signal.h>
16 #include <vrvUtil/signalslib.h>
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtSharedSettingsManager;
22 }
23 
25 {
26 public:
27 
28  //Get an instance of the simulation settings automatically from the
29  //settings manager. this will return a different signaler depending
30  //on what thread this function is called from.
32 
33  //Get an instance of the simulation settings from the event queue
34  //interface. This will return the same signaler independent of the thread.
36 
37  //Find an instance of the signaler, for an interface, if one does not
38  //exist it will not be created.
39  //\retval NULL if the instance does not exist.
42 
43  //DTOR
44  virtual ~DtExampleEventSignaler();
45 
46  //@name Signals
48 
49  //\brief Signal to send a pdu from the network thread
52 
53 protected:
55 
56 private:
59 };
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
static DtExampleEventSignaler * findInstance(makVrv::DtEventQueueInterface *)
DtExampleEventSignaler(makVrv::DtEventQueueInterface &eqi)
Definition: DtExampleEventSignaler.h:24
makVrv::event_signal< void()> signal_sendPdu
Definition: DtExampleEventSignaler.h:50
The shared settings manager, is the global object responsible for managing any shared settings object...
Definition: DtSharedSettingsManager.h:42
Contains makVrv::event_signal class.
The event queue interface is a cross thread event queue used to emit event_signal across thread bound...
Definition: DtEventQueueInterface.h:26
Contains makVrv::DtVirtualBaseClass class.
static DtExampleEventSignaler & instance(const makVrv::DtSharedSettingsManager &)
DtExampleEventSignaler & operator=(const DtExampleEventSignaler &)
virtual ~DtExampleEventSignaler()

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)