home *** CD-ROM | disk | FTP | other *** search
- --------------------------------------------------------------------------------
- -- FILE NAME: WIZCLASS.HT
- --
- -- DESCRIPTION:
- -- OLE Compound Document Framework class file template
- --
- -- COPYRIGHT:
- -- IBM Open Class Library
- -- (C) Copyright International Business Machines Corporation 1992, 1996
- -- Licensed Material - Program-Property of IBM - All Rights Reserved.
- -- US Government Users Restricted Rights - Use, duplication, or disclosure
- -- restricted by GSA ADP Schedule Contract with IBM Corp.
- --
- --------------------------------------------------------------------------------
- --------------------------------------------------------------------------------
- -- Basic class template
- --------------------------------------------------------------------------------
- <include wizfile.ht>
- <code CLASS>
- <define FILE_HDR_CLASSES>
- //----------------------------------------------------------------------
- // $CLASS_NAME$
- //----------------------------------------------------------------------
-
- class $CLASS_NAME$ \<>
- <if ($CLASS_SUPERS$)> :
- </if>
- <repeat CLASS_SUPERS separate ,>
- public $CLASS_SUPERS$
- </repeat>
- {
- <if ($PUBLIC_MACROS$)>
- public:
- $PUBLIC_MACROS$
- </if>
- <if ($PUBLIC_MEMBERS$)>
- public:
- $PUBLIC_MEMBERS$
- </if>
- <if ($PROTECTED_MEMBERS$)>
- protected:
- $PROTECTED_MEMBERS$
- </if>
- <if ($PRIVATE_MEMBERS$)>
- private:
- $PRIVATE_MEMBERS$
- </if>
- <if ($DATA_MEMBERS$)>
- private:
- $DATA_MEMBERS$\<>
- </if>
- };
-
- </define>
- <clear CLASS_NAME>
- <clear CLASS_SUPERS>
- <clear PUBLIC_MACROS>
- <clear PUBLIC_MEMBERS>
- <clear PROTECTED_MEMBERS>
- <clear PRIVATE_MEMBERS>
- <clear DATA_MEMBERS>
- </code CLASS>
-
- -------------------------------------------------------------------------------
- -- Standard operations template
- --------------------------------------------------------------------------------
- --
- -- options:
- -- PROTECT_CONSTRUCT - if defined protect default constructor
- -- PROTECT_COPY - if defined protect copy constructor
- -- ASSIGNMENT - if defined puts operator= in public else in private
- --
- <code STANDARD_OPERATIONS>
- -- public members
- <define PUBLIC_MEMBERS>
- --<if ($PUBLIC_MEMBERS$)>
- --</if>
- <if (!$PROTECT_CONSTRUCT$)>
- $CLASS_NAME$();
- </if>
- <if (!$PROTECT_COPY$)>
- $CLASS_NAME$( const $CLASS_NAME$& copy );
- </if>
- virtual ~$CLASS_NAME$();
- <if ($ASSIGNMENT$)>
- $CLASS_NAME$& operator=( const $CLASS_NAME$& copy );
- </if>
- </define>
- -- protected members
- <define PROTECTED_MEMBERS>
- <if ($PROTECT_CONSTRUCT$)>
- <if ($NO_DEF_CONSTRUCT$ != t)>
- $CLASS_NAME$();
- </if>
- </if>
- <if ($PROTECT_COPY$)>
- <if ($NO_COPY_CONSTRUCT$ != t)>
- $CLASS_NAME$( const $CLASS_NAME$& copy );
- </if>
- </if>
- </define>
- -- private members
- <define PRIVATE_MEMBERS>
- <if (!$ASSIGNMENT$)>
- // Hide assignment operator
- $CLASS_NAME$& operator=( const $CLASS_NAME$& copy );
- </if>
- </define>
- <clear PROTECT_CONSTRUCT>
- <clear PROTECT_COPY>
- <clear ASSIGNMENT>
- <clear NO_DEF_CONSTRUCT>
- <clear NO_COPY_CONSTRUCT>
- </code STANDARD_OPERATIONS>
-
- -------------------------------------------------------------------------------
- -- Streaming operators template
- --------------------------------------------------------------------------------
- <code STREAMING>
- $TYPE_EXTENSION$\<>
- -- public members
- <define PUBLIC_MEMBERS>
-
- virtual IBaseStream& operator>>=( IBaseStream& toWhere ) const;
- virtual IBaseStream& operator<<=( IBaseStream& fromWhere );
- </define>
- -- private members
- <define PRIVATE_MEMBERS>
- enum { kOriginalVersion };
- </define>
- </code STREAMING>
-
- -------------------------------------------------------------------------------
- -- Extended type template
- --------------------------------------------------------------------------------
- <code TYPE_EXTENSION>
- -- public macros
- <if (!$PUBLIC_MACROS$)>
- <define PUBLIC_MACROS>
- TypeExtensionDeclarationsMacro($CLASS_NAME$)
- </define>
- </if>
- $STANDARD_OPERATIONS$\<>
- </code TYPE_EXTENSION>