![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2002 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: echelonId.h,v $ $Revision: 1.4 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #ifndef DtEchelonId_H_ 00013 #define DtEchelonId_H_ 00014 00015 #include <vlutil/vlString.h> 00016 00017 #include "vrfutil/vrfutilDefines.h" 00018 class DT_DLL_vrfutil DtEchelonId 00019 { 00020 public: 00021 DtEchelonId(); 00022 virtual ~DtEchelonId(); 00023 00024 DtEchelonId(const DtEchelonId& orig); 00025 DtEchelonId& operator=(const DtEchelonId& orig); 00026 00027 virtual bool operator==(const DtEchelonId& rhs) const; 00028 virtual bool operator==(const DtString& rhs) const; 00029 00030 virtual bool operator!=(const DtEchelonId& rhs) const; 00031 virtual bool operator!=(const DtString& rhs) const; 00032 00033 virtual void setDesignator(int designator); 00034 virtual int designator() const; 00035 00036 virtual void setCatagory(const DtString& catagory); 00037 virtual const DtString& catagory() const; 00038 00039 virtual void setLevel(const DtString& level); 00040 virtual const DtString& level() const; 00041 00042 virtual void setSuperior(const DtEchelonId& superior); 00043 virtual const DtEchelonId& superior() const; 00044 00047 virtual const DtString& string() const; 00048 00051 virtual bool setFromString(const DtString& str); 00052 00054 virtual bool isNull() const; 00055 00056 static const DtEchelonId& nullId(); 00057 00058 protected: 00060 virtual void generateStringRep() const; 00061 00062 protected: 00063 int myDesignator; 00064 DtString myCatagory; 00065 DtString myLevel; 00066 DtEchelonId* mySuperior; 00067 00068 mutable bool myStringRepDirty; 00069 mutable DtString myStringRep; 00070 }; 00071 00072 extern const DtEchelonId theNullEchelonId; 00073 00074 #endif