VR-Vantage API Documentation
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 


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)