// br6Doc.cpp : implementation of the CBr6Doc class // #include "stdafx.h" #include "br6.h" #include "br6Doc.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CBr6Doc IMPLEMENT_DYNCREATE(CBr6Doc, CDocument) BEGIN_MESSAGE_MAP(CBr6Doc, CDocument) //{{AFX_MSG_MAP(CBr6Doc) // 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() ///////////////////////////////////////////////////////////////////////////// // CBr6Doc construction/destruction CBr6Doc::CBr6Doc() { // TODO: add one-time construction code here } CBr6Doc::~CBr6Doc() { } BOOL CBr6Doc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CBr6Doc serialization void CBr6Doc::Serialize(CArchive& ar) { if (ar.IsStoring()) { int b; for(b=0;b<100;b++) { ar << Buildings[b].BuildingName; ar << Buildings[b].SquareFeet; } } else { int b; for(b=0;b<100;b++) { ar >> Buildings[b].BuildingName; ar >> Buildings[b].SquareFeet; } } } ///////////////////////////////////////////////////////////////////////////// // CBr6Doc diagnostics #ifdef _DEBUG void CBr6Doc::AssertValid() const { CDocument::AssertValid(); } void CBr6Doc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CBr6Doc commands