-
Notifications
You must be signed in to change notification settings - Fork 0
/
diagram.cpp
88 lines (66 loc) · 1.64 KB
/
diagram.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/xml_iarchive.hpp>
#include <boost/archive/xml_oarchive.hpp>
#include <boost/serialization/base_object.hpp>
#include <boost/serialization/extended_type_info.hpp>
#include <boost/serialization/nvp.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/serialization/shared_ptr.hpp>
#include "diagram.h"
#include <boost/serialization/export.hpp>
BOOST_CLASS_EXPORT(cppgef::Diagram)
#include <ustring_serialization.h>
#include <glibmm/i18n.h>
#include <algorithm>
template
void cppgef::Diagram::serialize(
boost::archive::text_oarchive &ar,
const unsigned int /* file_version */
);
template
void cppgef::Diagram::serialize(
boost::archive::text_iarchive &ar,
const unsigned int /* file_version */
);
template
void cppgef::Diagram::serialize(
boost::archive::xml_oarchive &ar,
const unsigned int /* file_version */
);
template
void cppgef::Diagram::serialize(
boost::archive::xml_iarchive &ar,
const unsigned int /* file_version */
);
namespace cppgef
{
Diagram::Diagram()
{
}
Diagram::~Diagram()
{
}
void Diagram::setTitle(const Glib::ustring& value)
{
if (value != title_)
{
title_ = value;
signal_title_changed_.emit();
}
}
Glib::ustring Diagram::getTitle() const
{
return title_;
}
Diagram::signal_property_changed_t Diagram::signalTitleChanged()
{
return signal_title_changed_;
}
template< class Archive >
void Diagram::serialize(Archive & ar, const unsigned int version)
{
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(ComplexModelElementBase);
ar & BOOST_SERIALIZATION_NVP(title_);
}
}