home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / allinone / collect / colledoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-03  |  1.6 KB  |  60 lines

  1. // colledoc.h : interface of the CCollectDoc class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. class CCollectDoc : public CDocument
  14. {
  15. protected: // create from serialization only
  16.     CCollectDoc();
  17.     DECLARE_DYNCREATE(CCollectDoc)
  18.  
  19. // Attributes
  20. public:
  21.     IStlStringListPtr m_stringList;
  22.     IStlMyStructListPtr m_mystructList;
  23.     IStlintListPtr m_intList;
  24.     IStlDWordArrayPtr m_dwArray;
  25.     IStlMyObjectArrayPtr m_myobArray;
  26.     IStlPointArrayPtr m_ptArray;
  27.     IStlMapStringToStringPtr m_mapStringToString;
  28.     IStlMapStringToMyObjectPtr m_mapStringToMyObject;
  29.     IStlMapDWordToMyStructPtr m_mapDWordToMyStruct;
  30.  
  31. // Operations
  32.  
  33. // Overrides
  34.     virtual void DeleteContents();
  35.     // ClassWizard generate virtual function overrides
  36.     //{{AFX_VIRTUAL(CCollectDoc)
  37.     protected:
  38.     virtual BOOL OnNewDocument();
  39.     //}}AFX_VIRTUAL
  40.  
  41. // Implementation
  42. public:
  43.     virtual ~CCollectDoc();
  44.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  45. #ifdef _DEBUG
  46.     virtual void AssertValid() const;
  47.     virtual void Dump(CDumpContext& dc) const;
  48. #endif
  49.  
  50. protected:
  51.  
  52. // Generated message map functions
  53. protected:
  54.     //{{AFX_MSG(CCollectDoc)
  55.     //}}AFX_MSG
  56.     DECLARE_MESSAGE_MAP()
  57. };
  58.  
  59. /////////////////////////////////////////////////////////////////////////////
  60.