forked from dlidstrom/ntest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSyncCommand2.h
62 lines (50 loc) · 1.27 KB
/
SyncCommand2.h
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
56
57
58
59
60
61
62
// $Id$
// Copyright Daniel Lidstrom
// All Rights Reserved
// This file is distributed subject to GNU GPL version 2. See the files
// Copying.txt and GPL.txt for details.
//! @file
//! Brief.
//! @author Daniel Lidstrom <[email protected]>
//! @date 2010-05-03 09:25
//! @ingroup
//!
#if !defined(SYNCCOMMAND2_H__20100503T0925)
#define SYNCCOMMAND2_H__20100503T0925
#include "Fwd.h"
#include "Variation.h"
#include <boost/serialization/vector.hpp>
#include <vector>
//!
//! @author Daniel Lidstrom <[email protected]>
//! @date 2010-05-03 09:25
//! @ingroup
//! Brief.
//!
class SyncCommand2
{
public:
SyncCommand2(CBook& book);
//!
//! Constructor.
//!
SyncCommand2(CBook& book, const VariationCollection& variations);
template<class Archive>
void save(Archive& archive, const unsigned int version) const
{
archive & *book.GetAddedOrUpdated();
archive & variations;
}
template<class Archive>
void load(Archive& archive, const unsigned int version)
{
archive & book;
archive & variations;
}
const VariationCollection& GetVariations() const;
BOOST_SERIALIZATION_SPLIT_MEMBER();
private:
CBook& book;
VariationCollection variations;
};
#endif