Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / examples / mfc / serverDoc.cpp
blob8941e455c90ee69418822068d163daedcef3007a
1 // serverDoc.cpp : implementation of the CServerDoc class
3 #include "stdafx.h"
4 #include "server.h"
6 #include "serverDoc.h"
8 #ifdef _DEBUG
9 #define new DEBUG_NEW
10 #undef THIS_FILE
11 static char THIS_FILE[] = __FILE__;
12 #endif
14 /////////////////////////////////////////////////////////////////////////////
15 // CServerDoc
17 IMPLEMENT_DYNCREATE(CServerDoc, CDocument)
19 BEGIN_MESSAGE_MAP(CServerDoc, CDocument)
20 //{{AFX_MSG_MAP(CServerDoc)
21 // NOTE - the ClassWizard will add and remove mapping macros here.
22 // DO NOT EDIT what you see in these blocks of generated code!
23 //}}AFX_MSG_MAP
24 END_MESSAGE_MAP()
26 /////////////////////////////////////////////////////////////////////////////
27 // CServerDoc construction/destruction
29 CServerDoc::CServerDoc()
31 // TODO: add one-time construction code here
34 CServerDoc::~CServerDoc()
38 BOOL CServerDoc::OnNewDocument()
40 if (!CDocument::OnNewDocument())
41 return FALSE;
43 // TODO: add reinitialization code here
44 // (SDI documents will reuse this document)
46 return TRUE;
49 /////////////////////////////////////////////////////////////////////////////
50 // CServerDoc serialization
52 void CServerDoc::Serialize(CArchive& ar)
54 if (ar.IsStoring())
56 // TODO: add storing code here
58 else
60 // TODO: add loading code here
64 /////////////////////////////////////////////////////////////////////////////
65 // CServerDoc diagnostics
67 #ifdef _DEBUG
68 void CServerDoc::AssertValid() const
70 CDocument::AssertValid();
73 void CServerDoc::Dump(CDumpContext& dc) const
75 CDocument::Dump(dc);
77 #endif //_DEBUG
79 /////////////////////////////////////////////////////////////////////////////
80 // CServerDoc commands