VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtMessageClient.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtMessageClient_H_
11 #define DtMessageClient_H_
12 
13 #include <vrvUtil/vrvUtil.h>
14 #include <string>
15 #include <vector>
16 
17 namespace makVrv
18 {
19 
20  class DtMessage;
21 
22 
28  {
29  public:
30 
32 
34  DtMessageClient(const std::string& clientName);
35 
37  virtual ~DtMessageClient();
38 
40  virtual void deliver(DtMessage& msg) = 0;
41 
42  typedef std::vector<DtMessage*> MessageList;
43 
46  virtual void getServerMessages(MessageList&) = 0;
47 
50  typedef unsigned short IGIInterfaceID;
51 
53  virtual const std::string& name() const;
54 
55  protected:
56 
57  //Quick lookup map for Interface IDs.
58  std::vector<IGIInterfaceID> myInterfaceMap;
59 
60  std::string myName;
61 
62  };
63 
64 }
65 
66 #endif
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
The IGI Message. Is easily encoded and decoding using stream operators. It also provides validation d...
Definition: DtMessage.h:30
std::string myName
Definition: DtMessageClient.h:60
unsigned short IGIInterfaceID
The IGIInterfaceID type. An IGIInterfaceID uniquely defines an instance.
Definition: DtMessageClient.h:50
Contains DLL export macros.
std::vector< DtMessage * > MessageList
Definition: DtMessageClient.h:42
IGI Client is responsible for delivering IGI messages to other remote managers. IGI Client is the abs...
Definition: DtMessageClient.h:27
std::vector< IGIInterfaceID > myInterfaceMap
Definition: DtMessageClient.h:58

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)