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

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //                          SAMPLE CODE
  3. //
  4. // FileName: ACDFMy2.hpp
  5. //
  6. // ClassName: ACompDocFwkMyObject
  7. //
  8. // Description: Header file for the Compound Document Framework 
  9. //              MyObject
  10. ///////////////////////////////////////////////////////////////////////////////
  11. #ifndef _MYOBJECT_
  12. #define _MYOBJECT_
  13.  
  14. #ifdef IC_TRACE_DEVELOP
  15.      #include <itrace.hpp>
  16. #else
  17.      #define IFUNCTRACE_DEVELOP()
  18.      #define ITRACE_DEVELOP(x)
  19. #endif
  20.  
  21. #include <istring.hpp>
  22.  
  23. class ACompDocFwkMyObject
  24. {
  25. public:
  26.      TypeExtensionDeclarationsMacro(ACompDocFwkMyObject)
  27.  
  28.                             ACompDocFwkMyObject();
  29.                             ACompDocFwkMyObject(IString myStr);
  30.      virtual                ~ACompDocFwkMyObject();
  31.  
  32.      virtual IString        getMyString() const;
  33.      virtual Boolean        setMyString(const IString&);
  34.  
  35.      virtual IBaseStream&   operator>>=( IBaseStream& towhere ) const;
  36.      virtual IBaseStream&   operator<<=( IBaseStream& fromwhere );
  37.  
  38. protected:
  39.                             ACompDocFwkMyObject(const ACompDocFwkMyObject&);
  40.  
  41. private:
  42.      enum                   { kOriginalVersion };
  43.      ACompDocFwkMyObject&   operator=(const ACompDocFwkMyObject&);
  44.  
  45.      IString                fMyString;
  46. };
  47.  
  48. #endif
  49.