home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / cnr / help / devmodel.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  1.2 KB  |  52 lines

  1. #ifndef _DEVMODEL_
  2. #define _DEVMODEL_
  3. //************************************************************
  4. // Container Control - Help in the Container                    
  5. //
  6. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  7. // Copyright (c) 1997 John Wiley & Sons, Inc. 
  8. // All Rights Reserved.
  9. //************************************************************
  10. #include <icnrobj.hpp>
  11. #include <istring.hpp>
  12.  
  13. class Developer : public IContainerObject
  14. {
  15. public:
  16.  Developer    ( const IString& name,
  17.                 const IString& compuServeId,
  18.                 unsigned long  age);
  19.  
  20. IString
  21.   name                  ( ) const,
  22.   address               ( ) const,
  23.   age                   ( ) const;
  24.  
  25. Developer
  26.  &setHelpId            ( unsigned long helpId);
  27.  
  28. virtual unsigned long
  29.   helpId               ( ) const;
  30.  
  31.  
  32. // Column support
  33. enum Column 
  34. { kNameColumn, 
  35.   kCompuServeIdColumn,
  36.   kAgeColumn
  37. };
  38. static IContainerColumn
  39.  *createAndOrphanColumnFor ( IContainerControl& container,
  40.                              Column             column);
  41. static void
  42.   createAllColumnsFor      ( IContainerControl&  container);
  43.  
  44. private:
  45. IString
  46.   fCompuServeId,
  47.   fAge;
  48. unsigned long
  49.   fHelpId;
  50. };
  51. #endif // _DEVMODEL_
  52.