home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / ipoatseq.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.0 KB  |  52 lines

  1. /********************************************************************************/
  2. /* File:  ipoatseq.hpp                                                          */
  3. /* Class: IPOAttributeSequence                                                  */
  4. /*                                                                              */
  5. /* IPOAttributeSequence - a sequence of attributes                              */
  6. /********************************************************************************/
  7.  
  8. /***********************************************
  9.  
  10.     Licensed Materials - Property of IBM
  11.  
  12.     5622-880   5801-AAR
  13.  
  14.     (c) Copyright IBM Corp 1991, 1996.
  15.  
  16. ************************************************/
  17.  
  18. #ifndef _IPOATSEQ_HPP_
  19. #define _IPOATSEQ_HPP_
  20.  
  21. #include <ipoattr.hpp>
  22. #include <iseq.h>
  23.  
  24. class IPOBufferSequence;
  25.  
  26. class _Export IPOAttributeSequence : protected ISequence <IPOAttributeBase*>
  27. {
  28.    public:
  29.      IPOAttributeSequence();
  30.      virtual ~IPOAttributeSequence();
  31.  
  32. /*------------------- Attribute Seq Functions ----------------------------------
  33. | These methods deals with Attribute Seq functions:                            |
  34. |   allocateBuffers - Allocate buffers                                         |
  35. |   addAttribute   - add an attribute to sequence                              |
  36. |   setIntoBuffers - set data into buffers                                     |
  37. |   getFromBuffers - get data from buffers                                     |
  38. ------------------------------------------------------------------------------*/
  39.      void allocateBuffers( IPOBufferSequence* pBuffers);
  40.      void addAttribute (IPOAttributeBase* pAttribute );
  41.      void setIntoBuffers ( IPOBufferSequence* pBuffers);
  42.      void getFromBuffers ( IPOBufferSequence* pBuffers);
  43.  
  44.     private:
  45.      static Boolean allocateBuffer( IPOAttributeBase*& pAttribute, void* pBuffers);
  46.      static Boolean setIntoBuffer( IPOAttributeBase*& pAttribute, void* aCursor);
  47.      static Boolean getFromBuffer( IPOAttributeBase*& pAttribute, void* aCursor);
  48. };
  49.  
  50.  
  51. #endif
  52.