![]() |
MAK RTIspy API Documentation for HLA 1.3
|
00001 /********************************************************************* 00002 ** Copyright (c) 2001 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: spaceInfo.h,v $ $Revision: 1.16 $ $State: Exp $ 00007 *********************************************************************/ 00010 00011 #ifndef DtSpaceInfo_H_ 00012 #define DtSpaceInfo_H_ 00013 00014 #ifdef DDM 00015 00016 #include "dimInfo.h" 00017 #include <vlutil/vlString.h> 00018 #include <vector> 00019 00020 typedef std::vector<DtDimInfo> DtDimVector; 00021 00022 class DT_DLL_LRC DtSpaceInfo 00023 { 00024 public: 00025 00027 DtSpaceInfo(); 00028 DtSpaceInfo(const char* spaceName, DtSpaceHandle handle); 00029 DtSpaceInfo(const DtSpaceInfo& orig); 00030 00032 DtSpaceInfo& operator=(const DtSpaceInfo& orig); 00033 bool operator!=(const DtSpaceInfo& orig); 00034 bool operator==(const DtSpaceInfo& orig); 00035 00037 virtual ~DtSpaceInfo(); 00038 00040 virtual void setName(const char* nameValue); 00041 virtual const char* name() const; 00042 00044 virtual void setHandle(DtSpaceHandle handleValue); 00045 virtual DtSpaceHandle handle() const; 00046 00048 virtual void addDim(const char* dimName, bool exclude=true, 00049 unsigned long max=MAX_EXTENT, unsigned long lower=MIN_EXTENT, 00050 unsigned long upper=MAX_EXTENT); 00051 00053 virtual bool isName(const char* name) const; 00054 00056 virtual DtDimensionHandle dimHandle ( 00057 const char* theName) const; 00058 00060 virtual const char* dimName ( 00061 DtDimensionHandle theHandle) const; 00062 00064 virtual DtDimInfo* dimByName(const char* theName); 00065 virtual DtDimInfo* dimByHandle(const DtDimensionHandle theHandle); 00066 00068 virtual DtDimensionHandleSet const& dimensions() const; 00069 00071 virtual const DtDimInfo* dimByName(const char* theName) const; 00072 virtual const DtDimInfo* dimByHandle( 00073 const DtDimensionHandle theHandle) const; 00074 00076 virtual unsigned long dimensionCount() const; 00077 00079 virtual void print() const; 00080 00081 protected: 00082 00083 DtSpaceInfo* self() const; 00084 00085 protected: 00086 00087 MAKRti::DtString myName; 00088 DtSpaceHandle myHandle; 00089 int myFirstMomDimension; 00090 int myDefaultDimension; 00091 00092 DtDimVector myDims; 00093 DtDimensionHandleSet myDimSet; 00094 }; 00095 00096 #endif 00097 #endif