Mercurial > hg > orthanc
comparison Core/SQLite/NonCopyable.h @ 1221:2255e66da726
getting rid of the dependency against Boost in the SQLite C++ wrapper
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 10 Nov 2014 17:05:50 +0100 |
parents | |
children | 63d47b1fa239 |
comparison
equal
deleted
inserted
replaced
1220:9b9026560a5f | 1221:2255e66da726 |
---|---|
1 /** | |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
3 * | |
4 * Copyright (C) 2012-2014 Sebastien Jodogne <s.jodogne@gmail.com>, | |
5 * Medical Physics Department, CHU of Liege, Belgium | |
6 * | |
7 * Redistribution and use in source and binary forms, with or without | |
8 * modification, are permitted provided that the following conditions are | |
9 * met: | |
10 * | |
11 * * Redistributions of source code must retain the above copyright | |
12 * notice, this list of conditions and the following disclaimer. | |
13 * * Redistributions in binary form must reproduce the above | |
14 * copyright notice, this list of conditions and the following disclaimer | |
15 * in the documentation and/or other materials provided with the | |
16 * distribution. | |
17 * * Neither the name of Google Inc., the name of the CHU of Liege, | |
18 * nor the names of its contributors may be used to endorse or promote | |
19 * products derived from this software without specific prior written | |
20 * permission. | |
21 * | |
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
33 **/ | |
34 | |
35 | |
36 #pragma once | |
37 | |
38 namespace Orthanc | |
39 { | |
40 namespace SQLite | |
41 { | |
42 // This class mimics "boost::noncopyable" | |
43 class NonCopyable | |
44 { | |
45 private: | |
46 NonCopyable(const NonCopyable&); | |
47 | |
48 NonCopyable& operator= (const NonCopyable&); | |
49 | |
50 protected: | |
51 NonCopyable() | |
52 { | |
53 } | |
54 | |
55 ~NonCopyable() | |
56 { | |
57 } | |
58 }; | |
59 } | |
60 } |