www.pudn.com > MiniFox.rar > AccTreeData.cpp
// AccTreeData.cpp : implementation file
//
#include "stdafx.h"
#include "MiniFox.h"
#include "AccTreeData.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBox
IMPLEMENT_SERIAL( CBox, CObject, VERSIONABLE_SCHEMA | 0 )
CBox::CBox()
{
}
CBox::~CBox()
{
}
/////////////////////////////////////////////////////////////////////////////
// CBox diagnostics
#ifdef _DEBUG
void CBox::AssertValid() const
{
CObject::AssertValid();
}
void CBox::Dump(CDumpContext& dc) const
{
CObject::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CBox serialization
void CBox::Serialize(CArchive& ar)
{
CObject::Serialize( ar );
if (ar.IsStoring())
{
ar << m_strBoxName << m_strFileName;
}
else
{
ar >> m_strBoxName >> m_strFileName;
}
m_boxList.Serialize( ar );
}
/////////////////////////////////////////////////////////////////////////////
// CBox commands
/////////////////////////////////////////////////////////////////////////////
// CAccProfile
IMPLEMENT_SERIAL( CAccProfile, CObject, VERSIONABLE_SCHEMA | 0 )
CAccProfile::CAccProfile()
{
m_strAccName = _T( "" );
m_strMailPath = _T( "" );
m_nNewBoxCount = 0;
}
CAccProfile::~CAccProfile()
{
// Whether to delete the contents depends on whether Serialize()
// will delete those objects automatically.
}
/////////////////////////////////////////////////////////////////////////////
// CAccProfile diagnostics
#ifdef _DEBUG
void CAccProfile::AssertValid() const
{
CObject::AssertValid();
}
void CAccProfile::Dump(CDumpContext& dc) const
{
CObject::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CAccProfile serialization
void CAccProfile::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
ar << m_nNewBoxCount << m_strAccName << m_strMailPath;
}
else
{
ar >> m_nNewBoxCount >> m_strAccName >> m_strMailPath;
}
m_boxList.Serialize( ar );
}
/////////////////////////////////////////////////////////////////////////////
// CAccProfile commands