home *** CD-ROM | disk | FTP | other *** search
- #ifndef _IVBVCLS_
- #define _IVBVCLS_
- /*******************************************************************************
- * FILE NAME: ivbvcls.h *
- * *
- * DESCRIPTION: *
- * Declaration of the class(es): *
- * IVBVariableClass - Variable template class for non pointer classes. *
- * *
- * COPYRIGHT: *
- * IBM(R) VisualAge(TM) for C++ *
- * (C) Copyright International Business Machines Corporation 1991, 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. *
- *******************************************************************************/
-
- #ifndef _IVBVCLSS_
- #include <ivbvclss.hpp>
- #endif
-
- /*----------------------------------------------------------------------------*/
- /* Align classes on four byte boundary. */
- /*----------------------------------------------------------------------------*/
- #pragma pack(4)
-
- template < class Element >
- class IVBVariableClass : public IVBVariableClassBase
- {
- public:
- /*--------------------------- PUBLIC -----------------------------------------*/
-
- /*------------------------ Constructors ----------------------------------------
- | You can construct an instance of this class in the following ways: |
- -----------------------------------------------------------------------------*/
- IVBVariableClass ();
-
- virtual
- ~IVBVariableClass ();
-
- /*-------------------------------- Attributes ----------------------------------
- | These operations can be used to query and change the attributes: |
- | target - Query the target attribute. |
- | setTarget - Set the target attribute. |
- | targetId - target attribute notification id. |
- | targetPtr - Query the target attribute as a pointer. |
- -----------------------------------------------------------------------------*/
- Element&
- target ();
-
- IVBVariableClass <Element>
- &setTarget (Element newTarget),
- &setTarget (Element* newTarget);
-
- Element*
- targetPtr () ;
-
- private:
- /*--------------------------------- PRIVATE ----------------------------------*/
- Element iTarget;
- };
-
- #if ! defined (__TEMPINC__)
- #include <ivbvcls.c>
- #endif
-
- /*----------------------------------------------------------------------------*/
- /* Resume compiler default packing. */
- /*----------------------------------------------------------------------------*/
- #pragma pack()
-
- #endif /* _IAVLVAR_ */
-