MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
spaceInfo.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: spaceInfo.h,v $ $Revision: 1.16 $ $State: Exp $
7 *********************************************************************/
10 
11 #ifndef DtSpaceInfo_H_
12 #define DtSpaceInfo_H_
13 
14 #ifdef DDM
15 
16 #include "dimInfo.h"
17 #include <vlutil/vlString.h>
18 #include <vector>
19 
20 typedef std::vector<DtDimInfo> DtDimVector;
21 
22 class DT_DLL_LRC DtSpaceInfo
23 {
24 public:
25 
27  DtSpaceInfo();
28  DtSpaceInfo(const char* spaceName, DtSpaceHandle handle);
29  DtSpaceInfo(const DtSpaceInfo& orig);
30 
32  DtSpaceInfo& operator=(const DtSpaceInfo& orig);
33  bool operator!=(const DtSpaceInfo& orig);
34  bool operator==(const DtSpaceInfo& orig);
35 
37  virtual ~DtSpaceInfo();
38 
40  virtual void setName(const char* nameValue);
41  virtual const char* name() const;
42 
44  virtual void setHandle(DtSpaceHandle handleValue);
45  virtual DtSpaceHandle handle() const;
46 
48  virtual void addDim(const char* dimName, bool extend13and1516interop, bool shouldSort,
49  bool exclude=true, const MAKRti::DtString& normalization=MAKRti::DtString::nullString(),
50  unsigned long max=MAX_EXTENT, unsigned long lower=MIN_EXTENT,
51  unsigned long upper=MAX_EXTENT);
52 
54  virtual bool isName(const char* name) const;
55 
57  virtual DtDimensionHandle dimHandle (
58  const char* theName) const;
59 
61  virtual const char* dimName (
62  DtDimensionHandle theHandle) const;
63 
65  virtual DtDimInfo* dimByName(const char* theName);
66  virtual DtDimInfo* dimByHandle(const DtDimensionHandle theHandle);
67 
69  virtual DtDimensionHandleSet const& dimensions() const;
70 
72  virtual const DtDimInfo* dimByName(const char* theName) const;
73  virtual const DtDimInfo* dimByHandle(
74  const DtDimensionHandle theHandle) const;
75 
77  virtual unsigned long dimensionCount() const;
78 
80  virtual void print() const;
81 
82 protected:
83 
86  virtual void checkMomDimensionSpec(const char* dimName, bool exclude, const MAKRti::DtString& normalization,
87  unsigned long max, unsigned long lower, unsigned long upper);
88 
89  DtSpaceInfo* self() const;
90 
91 protected:
92 
93  MAKRti::DtString myName;
94  DtSpaceHandle myHandle;
95  int myFirstMomDimension;
96  int myDefaultDimension;
97 
98  DtDimVector myDims;
99  DtDimensionHandleSet myDimSet;
100  const DtDimInfo myServiceGroupDimSpec;
101  const DtDimInfo myFederateDimSpec;
102 };
103 
104 #endif
105 #endif

Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)