VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
examples
networkCallbackManager
DtExampleEventSignaler.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtExampleEventSignaler.h,v $ $Revision: 1.4 $ $State: Exp $
7
******************************************************************************/
8
9
//\file DtExampleEventSignaler.h
10
//\brief Contains DtExampleEventSignaler class.
12
//An event signaler is a class that is used to signal boost style signals from
13
//the gui thread to the networking thread
14
15
#pragma once
16
17
#include <
vrfGuiCore/vrfGuiCore.h
>
18
#include <
vrvUtil/event_signal.h
>
19
#include <
vrvUtil/DtVirtualBaseClass.h
>
20
#include <
vrvUtil/signalslib.h
>
21
22
namespace
makVrv
23
{
24
class
DtDe;
25
class
DtSharedSettingsManager;
26
}
27
28
class
DtExampleEventSignaler
:
public
makVrv::DtVirtualBaseClass
29
{
30
public
:
31
32
//Get an instance of the simulation settings automatically from the
33
//settings manager. this will return a different signaler depending
34
//on what thread this function is called from.
35
static
DtExampleEventSignaler
&
instance
(
const
makVrv::DtSharedSettingsManager
&);
36
37
//Get an instance of the simulation settings from the event queue
38
//interface. This will return the same signaler independent of the thread.
39
static
DtExampleEventSignaler
&
instance
(
makVrv::DtEventQueueInterface
&);
40
41
//Find an instance of the signaler, for an interface, if one does not
42
//exist it will not be created.
43
//\retval NULL if the instance does not exist.
44
static
DtExampleEventSignaler
*
findInstance
(
45
makVrv::DtEventQueueInterface
*);
46
47
//DTOR
48
virtual
~DtExampleEventSignaler
();
49
50
//@name Signals
52
53
//\brief Signal to send a pdu from the network thread
54
makVrv::event_signal<void ()>
signal_sendPdu
;
56
57
protected
:
58
DtExampleEventSignaler
(
makVrv::DtEventQueueInterface
& eqi);
59
60
private
:
61
DtExampleEventSignaler
(
const
DtExampleEventSignaler
&);
62
DtExampleEventSignaler
&
operator=
(
const
DtExampleEventSignaler
&);
63
};
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)