summaryrefslogtreecommitdiff
path: root/test/testStructures.cpp
blob: fd0715854c8cd0bac55328728f8bfe973f66a9b4 (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
#include "testStructures.h"

bool
AbsObject::persist(Persistence::PersistenceStore & store)
{
	return STORE_TYPE && STORE_MEMBER(base);
}

bool
SubObject::persist(Persistence::PersistenceStore & store)
{
	return STORE_TYPE && AbsObject::persist(store) && STORE_MEMBER(sub);
}

void
SubObject::dummy() const
{
}

std::string
SubObject::getId() const
{
	return "someid";
}

bool
SubObject2::persist(Persistence::PersistenceStore & store)
{
	return STORE_TYPE && AbsObject::persist(store);
}

void
SubObject2::dummy() const
{
}

bool
TestObject::persist(Persistence::PersistenceStore & store)
{
	return STORE_TYPE && STORE_MEMBER(flt) && STORE_MEMBER(str) && STORE_MEMBER(bl) && STORE_MEMBER(pos)
			&& STORE_MEMBER(gpos) && STORE_MEMBER(flts) && STORE_MEMBER(poss) && STORE_MEMBER(nest) && STORE_MEMBER(ptr)
			&& STORE_MEMBER(aptr) && STORE_MEMBER(vptr);
}

void
TestObject::postLoad()
{
	postLoadCalled++;
}

bool
SharedTestObject::persist(Persistence::PersistenceStore & store)
{
	return STORE_TYPE && STORE_MEMBER(sptr) && STORE_MEMBER(ssptr);
}