-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.hpp
61 lines (46 loc) · 945 Bytes
/
types.hpp
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
#ifndef WAYROUND_I2P_20241210_171354_668396
#define WAYROUND_I2P_20241210_171354_668396
// todo: delete this module?
// I don't currently use it, and
// probably never will
/*
class error : public std::exception
{
public:
error(std::string text)
{
this->text = text;
}
std::string getText();
private:
std::string text;
};
*/
namespace wayround_i2p::ccedit
{
template <class T>
class TableItemTpl;
template <class T>
using TableItemTplP = Glib::RefPtr<TableItemTpl<T>>;
template <class T>
class TableItemTpl : public Glib::Object
{
public:
T value;
static TableItemTplP<T> create()
{
return Glib::make_refptr_for_instance<TableItemTpl<T>>(
new TableItemTpl<T>()
);
}
~TableItemTpl()
{
}
protected:
TableItemTpl() :
Glib::ObjectBase(typeid(TableItemTpl<T>))
{
}
};
} // namespace wayround_i2p::ccedit
#endif