00001 /** 00002 * \file namedrgn.h <mi32/namedrgn.h> 00003 * \brief NAMEDREGION class definition. 00004 * 00005 * \if NODOC 00006 * $Id: namedrgn.h_v 1.6 2005/03/31 16:57:19 fileserver!dwilliss Exp $ 00007 * 00008 * $Log: namedrgn.h_v $ 00009 * Revision 1.6 2005/03/31 16:57:19 fileserver!dwilliss 00010 * Rename one of our types to MIUNICODE because it conflicted with a Microsoft #define 00011 * 00012 * Revision 1.5 2005/03/07 18:25:01 scowan 00013 * Changed part of class to use descriptor. 00014 * 00015 * Revision 1.4 2003/09/15 13:49:56 fileserver!dwilliss 00016 * Doxygen 00017 * 00018 * Revision 1.3 2001/06/14 21:42:15 scowan 00019 * region class is now in RVC namespace. 00020 * 00021 * Revision 1.2 2001/01/26 23:03:53 mju 00022 * Add Load() method. 00023 * 00024 * Revision 1.1 2001/01/23 23:00:20 mju 00025 * Initial revision 00026 * 00027 * \endif 00028 **/ 00029 00030 #ifndef INC_MI32_NAMEDRGN_H 00031 #define INC_MI32_NAMEDRGN_H 00032 00033 #ifndef INC_RVC_REGIONCL_H 00034 #include <rvc/regioncl.h> 00035 #endif 00036 00037 #ifndef INC_MI32_OBSLIST_H 00038 #include <mi32/obslist.h> 00039 #endif 00040 00041 00042 //! Named region class. 00043 class NAMEDREGION : public RVC::REGION { 00044 public: 00045 //! Default constructor. 00046 NAMEDREGION ( 00047 ); 00048 00049 //! Copy constructor. 00050 NAMEDREGION ( 00051 const NAMEDREGION& rhs 00052 ); 00053 00054 //! Assignment from NAMEDREGION. 00055 NAMEDREGION& operator= ( 00056 const NAMEDREGION& rhs 00057 ); 00058 00059 //! Get region description. 00060 const MIUNICODE* GetDescription ( 00061 ) const; 00062 00063 //! Get region name. 00064 const MIUNICODE* GetName ( 00065 ) const; 00066 00067 //! Attach region to RVC object and load into memory. 00068 ERRVALUE Load ( 00069 const RVC::OBJITEM& objitem 00070 ); 00071 00072 //! Set region description. 00073 //! If region is bound to an object the object will be changed. 00074 ERRVALUE SetDescription ( 00075 const RVC::OBJECTDESC& desc 00076 ); 00077 00078 //! Set region name. 00079 //! If region is bound to an object the object will be changed. 00080 ERRVALUE SetName ( 00081 const RVC::OBJECTNAME& name 00082 ); 00083 00084 private: 00085 #ifndef GENERATING_DOXYGEN_OUTPUT 00086 00087 RVC::OBJECTNAME m_name; 00088 RVC::OBJECTDESC m_desc; 00089 00090 virtual ERRVALUE GetDftNameDesc ( 00091 const RVC::OBJECT& parent, 00092 RVC::DESCRIPTOR& Descriptor 00093 ); 00094 #endif // GENERATING_DOXYGEN_OUTPUT 00095 }; 00096 00097 00098 //! List (observable) of named regions. 00099 typedef OBSERVABLE_LIST<NAMEDREGION> NAMEDREGION_LIST; 00100 00101 00102 #endif //!< INC_MI32_NAMEDRGN_H
1.3.8-20040913