GDCM: gdcmConstCharWrapper.h Source File

GDCM 3.2.6

gdcmConstCharWrapper.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMCONSTCHARWRAPPER_H
15#define GDCMCONSTCHARWRAPPER_H
16
17namespace gdcm
18{
19
20#error
21
22/*
23 * This class is a pure hack. Its only goal is to work around a bad bug in :
24 * $ swig -version
25 * SWIG Version 1.3.31
26 *
27 * See
28 * - http://sourceforge.net/mailarchive/forum.php?thread_name=bf0c3b3f0802290552y5163989t76572b80a044ce28%40mail.gmail.com&forum_name=swig-user
29 *
30 * As a side note there is also a problem with const reference to enum type:
31 * - http://sourceforge.net/mailarchive/forum.php?thread_name=bf0c3b3f0802290552y5163989t76572b80a044ce28%40mail.gmail.com&forum_name=swig-user
32 *
33 * And to keep track of an issue with swig here is the last one:
34 *
35 * - http://sourceforge.net/mailarchive/forum.php?thread_name=bf0c3b3f0802290552y5163989t76572b80a044ce28%40mail.gmail.com&forum_name=swig-user
36 */
37
38
42 class ConstCharWrapper
43{
44public:
45 ConstCharWrapper(const char *i=0):Internal(i) {}
46 operator const char * () const { return Internal; }
47private:
48 const char *Internal;
49};
50
51} // end namespace gdcm
52
53#endif //GDCMCONSTCHARWRAPPER_H
gdcm::ConstCharWrapper::ConstCharWrapper
ConstCharWrapper(const char *i=0)
Definition gdcmConstCharWrapper.h:45
gdcm
Definition gdcmASN1.h:21