]> git.tdb.fi Git - libs/core.git/blob - source/io/handle.cpp
c20f067e5a6ca18b3d04c1c39b173d9ea7ccfe0b
[libs/core.git] / source / io / handle.cpp
1 #include "handle.h"
2 #include "handle_private.h"
3
4 namespace Msp {
5 namespace IO {
6
7 Handle::Handle():
8         priv(new Private)
9 { }
10
11 Handle::Handle(const Handle &other):
12         priv(new Private)
13 {
14         priv->handle = other.priv->handle;
15 }
16
17 Handle &Handle::operator=(const Handle &other)
18 {
19         priv->handle = other.priv->handle;
20         return *this;
21 }
22
23 Handle::~Handle()
24 {
25         delete priv;
26 }
27
28
29 Handle::Private::Private():
30         handle(INVALID_HANDLE_VALUE)
31 { }
32
33 Handle::Private &Handle::Private::operator=(PlatformHandle h)
34 {
35         handle = h;
36         return *this;
37 }
38
39 } // namespace IO
40 } // namespace Msp