MAK RTIspy API Documentation for HLA 1516
privRefs.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2011 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 #ifdef DtIFSPEC13
11 
12 #include "ambImp.h"
13 
14 #ifndef DtIFSPEC13DLC
15 #include "RTI.hh"
16 #else
17 #include "RTI13.h"
18 #endif
19 
20 class DtRIDParameters;
22 
23 class DT_DLL_LRC DtPrivRefs
24 {
25 public:
26  DtRtiAmbassadorImplementor* amb;
27 };
28 
29 inline DtPrivRefs* DtRtiPrivateData(RTI::RTIambassador* rtiAmb)
30 {
31  return (DtPrivRefs*)rtiAmb->privateData;
32 }
33 
34 inline DtRIDParameters* DtRtiPrivateDataParams(RTI::RTIambassador* rtiAmb)
35 {
36  return ((DtPrivRefs*)rtiAmb->privateData)->amb->params();
37 }
38 
39 inline DtRtiAmbassadorImplementor* DtRtiPrivateDataImplementor(
40  RTI::RTIambassador* rtiAmb)
41 {
42  return ((DtPrivRefs*)rtiAmb->privateData)->amb;
43 }
44 
45 inline DtRtiAmbObserverList* DtRtiPrivateDataObservers(
46  RTI::RTIambassador* rtiAmb)
47 {
48  return ((DtPrivRefs*)rtiAmb->privateData)->amb->observers();
49 }
50 
51 #endif
52 

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)