![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2012 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtTestInteractionInterface.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00009 //\file DtTestInteractionInterface.h 00010 00011 //\brief Contains DtTestInteractionInterface class. 00012 00013 #pragma once 00014 00015 #include <vrfGuiCore/DtNetworkMessageInterface.h> 00016 00017 #include <vector> 00018 #include <string> 00019 00020 //The DtTestInteractionInterface will be used to communicate from the network thread 00021 //to the Gui thread the contents of the Test Pdu. In order to register 00022 //for this message in the gui, use the static method ::name() as the item 00023 //to register for 00024 00025 class DtTestInteractionInterface : public makVrf::DtNetworkMessageInterface 00026 { 00027 public: 00028 DtTestInteractionInterface(); 00029 00030 //Copy constructor. Supply your own copy constructor and use 00031 //it from the clone method as that is the mechanism that will be 00032 //used to transfer the data from the network thread to the GUI thread 00033 DtTestInteractionInterface(const DtTestInteractionInterface&); 00034 00035 virtual ~DtTestInteractionInterface(); 00036 00037 //Override to provide a clone of your class 00038 virtual DtNetworkMessageInterface* clone() const; 00039 00040 void setMessage(const std::string&); 00041 const std::string& message() const; 00042 00043 //The unique name of this item. Typically will use class name. This is what 00044 //will be sent when notifying the gui of a receipt of a network message and 00045 //what the gui will register for to receive it 00046 static const char* theName(); 00047 00048 //Returns static member 00049 virtual const char* name() { return theName(); }; 00050 00051 protected: 00052 std::string myMessage; 00053 };