Menu

[r14]: / trunk / src / UrlInfo.h  Maximize  Restore  History

Download this file

78 lines (61 with data), 1.4 kB

 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
#pragma once
#include "svn_client.h"
#include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include <string>
#pragma warning( push )
#pragma warning( disable : 4512 )
#pragma warning( disable : 4100 )
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <boost/serialization/base_object.hpp>
#include <boost/serialization/utility.hpp>
#include <boost/serialization/vector.hpp>
#pragma warning( pop )
using namespace std;
using namespace boost;
class CUrlInfo
{
friend class boost::serialization::access;
public:
CUrlInfo(void);
~CUrlInfo(void);
wstring username;
wstring password;
wstring url;
__time64_t lastchecked;
svn_revnum_t lastcheckedrev;
int minutesinterval;
bool fetchdiffs;
private:
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
{
ar & username;
ar & password;
ar & url;
ar & lastchecked;
ar & lastcheckedrev;
ar & minutesinterval;
ar & fetchdiffs;
}
};
class CUrlInfos
{
friend class boost::serialization::access;
public:
CUrlInfos(void);
~CUrlInfos(void);
void Save(LPCWSTR filename);
void Load(LPCWSTR filename);
vector<CUrlInfo> infos;
private:
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
{
ar & infos;
}
};
BOOST_CLASS_TRACKING(CUrlInfos, boost::serialization::track_never)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.