// docexampDoc.cpp : implementation of the CDocexampDoc class // #include "stdafx.h" #include "docexamp.h" #include "docexampDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDocexampDoc IMPLEMENT_DYNCREATE(CDocexampDoc, CDocument) BEGIN_MESSAGE_MAP(CDocexampDoc, CDocument) //{{AFX_MSG_MAP(CDocexampDoc) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDocexampDoc construction/destruction CDocexampDoc::CDocexampDoc() { // TODO: add one-time construction code here } CDocexampDoc::~CDocexampDoc() { } BOOL CDocexampDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CDocexampDoc serialization void CDocexampDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { int i; for(i=0;i<10;i++) { ar << Trucks[i].GetDriver(); } } else { CString tempname; int i; for(i=0;i<10;i++){ ar >> tempname; Trucks[i].SetDriver(tempname); } } } ///////////////////////////////////////////////////////////////////////////// // CDocexampDoc diagnostics #ifdef _DEBUG void CDocexampDoc::AssertValid() const { CDocument::AssertValid(); } void CDocexampDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CDocexampDoc commands