home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c09 / lab01 / ex01 / employeedoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.3 KB  |  56 lines

  1. // EmployeeDoc.h : interface of the CEmployeeDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CEmployeeDoc : public CDocument
  6. {
  7. protected: // create from serialization only
  8.     CEmployeeDoc();
  9.     DECLARE_DYNCREATE(CEmployeeDoc)
  10.     CDatabase m_DB;
  11.  
  12. // Attributes
  13. public:
  14.     CEmployeePersonalSet m_employeePersonalInfoSet;
  15.     CEmployeePersonalSet * GetEmployeeInfoSet( )
  16.     {
  17.         return & m_employeePersonalInfoSet;
  18.     }
  19.  
  20.     CEmployeePaySet m_employeePaySet;
  21.     CEmployeePaySet * GetEmployeePaySet()
  22.     {
  23.         return & m_employeePaySet;
  24.     }
  25.  
  26. // Operations
  27. public:
  28.  
  29. // Overrides
  30.     // ClassWizard generated virtual function overrides
  31.     //{{AFX_VIRTUAL(CEmployeeDoc)
  32.     public:
  33.     virtual BOOL OnNewDocument();
  34.     //}}AFX_VIRTUAL
  35.  
  36. // Implementation
  37. public:
  38.     virtual ~CEmployeeDoc();
  39. #ifdef _DEBUG
  40.     virtual void AssertValid() const;
  41.     virtual void Dump(CDumpContext& dc) const;
  42. #endif
  43.  
  44. protected:
  45.  
  46. // Generated message map functions
  47. protected:
  48.     //{{AFX_MSG(CEmployeeDoc)
  49.         // NOTE - the ClassWizard will add and remove member functions here.
  50.         //    DO NOT EDIT what you see in these blocks of generated code !
  51.     //}}AFX_MSG
  52.     DECLARE_MESSAGE_MAP()
  53. };
  54.  
  55. /////////////////////////////////////////////////////////////////////////////
  56.