VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
messageFactory.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
6 #pragma once
7 
11 
13 
14 #include <string>
15 #include <vector>
16 #include <map>
17 
18 class DtMessage;
19 class DtManagedInterface;
20 
22 typedef DtMessage* (*Decoder)(unsigned char* bytes, int length);
23 
26 {
27 public:
30 
32  virtual ~DtMessageFactory();
33 
35  virtual DtMessage* create(unsigned char* bytes, int length);
36 
38  virtual void registerCreator(std::string name, Decoder decoder);
39 
40 protected:
42 
43  std::map<std::string, Decoder> myCreatorMap;
44 };
#define MANAGEDINTERFACE_DLL
Definition: plugin.h:15
DtMessage *(* Decoder)(unsigned char *bytes, int length)
typedef of message decoder function
Definition: messageFactory.h:22
This is the DtMessage class.
Definition: message.h:20
The DtManagedInterface Class is a singleton that is used to manage the message flow between C# and th...
Definition: managedInterface.h:49
DtManagedInterface * myManagedInterface
Definition: messageFactory.h:41
the DtMessageFactory class
Definition: messageFactory.h:25
std::map< std::string, Decoder > myCreatorMap
Definition: messageFactory.h:43

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)