namedrgn.h

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

Generated on Tue Dec 14 13:18:31 2004 for TNTsdk by  doxygen 1.3.8-20040913