home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / acdf3 / acdfmdl3.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  1.5 KB  |  47 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //                      SAMPLE CODE
  3. //
  4. // FileName: ACDFMdl3.hpp
  5. //
  6. // ClassName: ACompDocFwkModel
  7. //
  8. // Description: Compound Document Framework Simple Container Model Header file  
  9. //              for the container. This sample is the basic container. 
  10. //              By inheriting from IEmbedder class the functionality to insert 
  11. //              an object is all inherited, therefore this sample contains very
  12. //              little. There is no model data, only streaming is provided.
  13. ///////////////////////////////////////////////////////////////////////////////
  14. #ifndef _COMPDOCFWK_MODEL_      
  15. #define _COMPDOCFWK_MODEL_
  16.  
  17. #ifdef IC_TRACE_DEVELOP
  18.     #include <itrace.hpp>
  19. #else
  20.     #define IFUNCTRACE_DEVELOP()
  21.     #define ITRACE_DEVELOP(x)
  22. #endif
  23.  
  24. #include <iembmod.hpp>
  25.  
  26. class ACompDocFwkModel : public IEmbedderModel // Inherits from IEmbedderModel
  27. {
  28. public:
  29.     TypeExtensionDeclarationsMacro(ACompDocFwkModel)
  30.  
  31.                                 ACompDocFwkModel();
  32.     virtual                     ~ACompDocFwkModel();
  33.  
  34.     virtual IBaseStream&        operator>>=( IBaseStream& towhere ) const;
  35.     virtual IBaseStream&        operator<<=( IBaseStream& fromwhere );
  36.  
  37. protected:
  38.                                 ACompDocFwkModel( const ACompDocFwkModel&);
  39.  
  40. private:
  41.     enum                        { kOriginalVersion };
  42.     ACompDocFwkModel&           operator=(const ACompDocFwkModel&);
  43. };
  44.  
  45. #endif
  46.     
  47.