VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtProctor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtProctor.h,v $ $Revision: 1.21 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCore/vrvCore.h>
15 #include <map>
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtMessage;
21 
25  {
26  public:
27 
29  enum ProctorId
30  {
32  ProctorId_DtDeProctor = 32,
33  ProctorId_DtSceneProctor = 33,
34  ProctorId_DtWindowProctor = 34,
35  ProctorID_DtChanneProctor = 35,
36  ProctorID_DtDisplayEngineProctor = 36,
37  ProctorID_DtDeSharedStateProctor = 37,
38 
40  ProctorId_UserStart = 0x8000,
41 
43  end_ProctorId = 0x10000
44  };
45 
47  DtProctor(DtDe&,unsigned short classId);
48 
50  virtual ~DtProctor();
51 
53  void executeFunction(DtMessage& msg);
54 
56  DtDe& de();
57 
58  protected:
59 
60  typedef void (*MessageFunction)(DtProctor*,DtMessage&);
61 
63  void registerFunction(unsigned int functionId,MessageFunction func);
64 
65  typedef std::map<int,MessageFunction> FunctionMap;
68  unsigned short myClassId;
69 
70  };
71 }
72 
ProctorId
Ids used for proctors. Each proctor class must have a unique id.
Definition: DtProctor.h:29
The IGI Message.
Definition: DtMessage.h:33
Base class for Proctor classes.
Definition: DtProctor.h:24
DtDe & myDe
Definition: DtProctor.h:67
FunctionMap myFunctions
Definition: DtProctor.h:66
unsigned short myClassId
Definition: DtProctor.h:68
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
std::map< int, MessageFunction > FunctionMap
Definition: DtProctor.h:65
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)