VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
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 
26 {
27 public:
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
34 
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 Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)