MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dimInfo.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: dimInfo.h,v $ $Revision: 1.21 $ $State: Exp $
7 *********************************************************************/
10 
11 #ifndef DtDimInfo_H_
12 #define DtDimInfo_H_
13 
14 #ifdef DDM
15 
16 #include "rtiMsConfig.h"
17 #include <vlutil/vlMachineTypes.h>
18 #include "internalTypes.h"
19 #include <vlutil/vlString.h>
20 
21 #ifdef DtIFSPEC13
22 #ifdef DtIFSPEC13DLC
23 #include "RTI13.h"
24 #define MIN_EXTENT 0
25 #define MAX_EXTENT ULONG_MAX
26 #else
27 #include "RTI.hh"
28 #endif
29 #endif
30 
31 #if !defined(DtIFSPEC13)
32 #include <limits.h>
33 #define MIN_EXTENT 0
34 #define MAX_EXTENT ULONG_MAX
35 #endif
36 
37 class DtDimInfo;
38 
39 class DT_DLL_LRC DtDimInfo
40 {
41 public:
42 
44  DtDimInfo();
45  DtDimInfo(const char* dimName, int handle, bool exclude=true, const char* normalization=0,
46  unsigned long lower=MIN_EXTENT, unsigned long upper=MAX_EXTENT,
47  unsigned long max=MAX_EXTENT);
48  DtDimInfo(const DtDimInfo& orig);
49 
51  DtDimInfo& operator=(const DtDimInfo& orig);
52  bool operator!=(const DtDimInfo& orig);
53  bool operator==(const DtDimInfo& orig);
54 
56  virtual ~DtDimInfo();
57 
59 
60  virtual void setName(const char* nameValue);
61  virtual const char* name() const;
63 
65  virtual bool isName(const char* name);
66 
68 
69  virtual void setHandle(DtDimensionHandle handleValue);
70  virtual DtDimensionHandle handle() const;
72 
74 
75  virtual void setLowerBound(unsigned long lower);
76  virtual unsigned long lowerBound() const;
78 
80 
81  virtual void setUpperBound(unsigned long upper);
82  virtual unsigned long upperBound() const;
84 
86 
87  virtual void setMaxBound(unsigned long max);
88  virtual unsigned long maxBound() const;
90 
92 
93  virtual void setExcluded(bool exclude);
94  virtual bool excluded() const;
96 
98 
99  void setNormalization(const char* normValue);
100  const MAKRti::DtString& normalization() const;
102 
104  virtual void print() const;
105 
106 protected:
107 
108  MAKRti::DtString myName;
109  DtDimensionHandle myHandle;
110  unsigned long myMaxBound;
111  unsigned long myLowerBound;
112  unsigned long myUpperBound;
113  bool myExcluded;
114  MAKRti::DtString myNormalization;
115 };
116 
117 inline const char* DtDimInfo::name() const
118 {
119  return myName.string();
120 }
121 
122 inline DtDimensionHandle DtDimInfo::handle() const
123 {
124  return myHandle;
125 }
126 
127 #endif
128 #endif
129 
130 
131 
132 
133 
134 
135 
DtHandle DtDimensionHandle
Definition: internalTypes.h:62
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
The declaration of internal types.

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)