-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBrood.cpp
43 lines (36 loc) · 868 Bytes
/
Brood.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Brood.cpp: implementation of the CBrood class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "varroapop.h"
#include "Brood.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CBrood::CBrood()
{
m_Mites = 0;
}
CBrood::~CBrood()
{
}
void CBrood::Serialize(CArchive& ar)
{
int tempval = 0;
if (ar.IsStoring())
{ // storing code
// ar << m_Mites;
ar << tempval; // bogus - fix later by serializing CMite
}
else
{ // loading code
// ar >> m_Mites;
ar >> tempval; // bogus - fix later by serializing CMite
}
CBee::Serialize(ar);
}