MAK RTIspy API Documentation for HLA Evolved
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(DtIFSPEC1516) || defined (DtIFSPEC1516E)
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,
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  virtual void setName(const char* nameValue);
60  virtual const char* name() const;
61 
63  virtual bool isName(const char* name);
64 
66  virtual void setHandle(DtDimensionHandle handleValue);
67  virtual DtDimensionHandle handle() const;
68 
70  virtual void setLowerBound(unsigned long lower);
71  virtual unsigned long lowerBound() const;
72 
74  virtual void setUpperBound(unsigned long upper);
75  virtual unsigned long upperBound() const;
76 
78  virtual void setMaxBound(unsigned long max);
79  virtual unsigned long maxBound() const;
80 
82  virtual void setExcluded(bool exclude);
83  virtual bool excluded() const;
84 
86  virtual void print() const;
87 
88 protected:
89 
90  MAKRti::DtString myName;
91  DtDimensionHandle myHandle;
92  unsigned long myMaxBound;
93  unsigned long myLowerBound;
94  unsigned long myUpperBound;
95  bool myExcluded;
96 };
97 
98 inline const char* DtDimInfo::name() const
99 {
100  return myName.string();
101 }
102 
103 inline DtDimensionHandle DtDimInfo::handle() const
104 {
105  return myHandle;
106 }
107 
108 #endif
109 #endif
110 
111 
112 
113 
114 
115 
116 

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)