home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / istatnry.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  685 b   |  36 lines

  1. #include <istatnry.hpp>
  2.  
  3.  
  4. // Constructor
  5. template < class AModel, class AView >
  6. IComponentStationeryFor< AModel, AView >::IComponentStationeryFor()
  7.  : IComponentStationery()
  8. {
  9.  
  10. }
  11.  
  12. // Destructor
  13. template < class AModel, class AView >
  14. IComponentStationeryFor< AModel, AView >::~IComponentStationeryFor()
  15. {
  16.  
  17. }
  18.  
  19. // createModel
  20. // creates a model and returns a pointer
  21. template < class AModel, class AView >
  22. IModel*
  23. IComponentStationeryFor< AModel, AView >::createModel() const
  24. {
  25.     return new AModel();
  26. }
  27.  
  28. template < class AModel, class AView >
  29. IView*
  30. IComponentStationeryFor< AModel, AView >::createView() const
  31. {
  32.     return new AView( bundle() );
  33. }
  34.  
  35.  
  36.