VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
networkCallbackManager
DtTestInteractionInterface.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtTestInteractionInterface.h,v $ $Revision: 1.1 $ $State: Exp $
7
******************************************************************************/
8
9
//\file DtTestInteractionInterface.h
10
11
//\brief Contains DtTestInteractionInterface class.
12
13
#pragma once
14
15
#include <
vrfGuiCore/DtNetworkMessageInterface.h
>
16
17
#include <vector>
18
#include <string>
19
20
//The DtTestInteractionInterface will be used to communicate from the network thread
21
//to the Gui thread the contents of the Test Pdu. In order to register
22
//for this message in the gui, use the static method ::name() as the item
23
//to register for
24
25
class
DtTestInteractionInterface
:
public
makVrf::DtNetworkMessageInterface
26
{
27
public
:
28
DtTestInteractionInterface
();
29
30
//Copy constructor. Supply your own copy constructor and use
31
//it from the clone method as that is the mechanism that will be
32
//used to transfer the data from the network thread to the GUI thread
33
DtTestInteractionInterface
(
const
DtTestInteractionInterface
&);
34
35
virtual
~DtTestInteractionInterface
();
36
37
//Override to provide a clone of your class
38
virtual
DtNetworkMessageInterface
*
clone
()
const
;
39
40
void
setMessage
(
const
std::string&);
41
const
std::string&
message
()
const
;
42
43
//The unique name of this item. Typically will use class name. This is what
44
//will be sent when notifying the gui of a receipt of a network message and
45
//what the gui will register for to receive it
46
static
const
char
*
theName
();
47
48
//Returns static member
49
virtual
const
char
*
name
() {
return
theName
(); };
50
51
protected
:
52
std::string
myMessage
;
53
};
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)