GDCM
2.0.18
|
00001 /*========================================================================= 00002 00003 Program: GDCM (Grassroots DICOM). A DICOM library 00004 00005 Copyright (c) 2006-2011 Mathieu Malaterre 00006 All rights reserved. 00007 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. 00008 00009 This software is distributed WITHOUT ANY WARRANTY; without even 00010 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00011 PURPOSE. See the above copyright notice for more information. 00012 00013 =========================================================================*/ 00014 #ifndef GDCMCONSTCHARWRAPPER_H 00015 #define GDCMCONSTCHARWRAPPER_H 00016 00017 namespace gdcm 00018 { 00019 00020 #error 00021 00022 /* 00023 * This class is a pure hack. Its only goal is to work around a bad bug in : 00024 * $ swig -version 00025 * SWIG Version 1.3.31 00026 * 00027 * See 00028 * - http://sourceforge.net/mailarchive/forum.php?thread_name=bf0c3b3f0802290552y5163989t76572b80a044ce28%40mail.gmail.com&forum_name=swig-user 00029 * 00030 * As a side note there is also a problem with const reference to enum type: 00031 * - http://sourceforge.net/mailarchive/forum.php?thread_name=bf0c3b3f0802290552y5163989t76572b80a044ce28%40mail.gmail.com&forum_name=swig-user 00032 * 00033 * And to keep a track of isse with swig here is the last one: 00034 * 00035 * - http://sourceforge.net/mailarchive/forum.php?thread_name=bf0c3b3f0802290552y5163989t76572b80a044ce28%40mail.gmail.com&forum_name=swig-user 00036 */ 00037 00038 00042 class ConstCharWrapper 00043 { 00044 public: 00045 ConstCharWrapper(const char *i=0):Internal(i) {} 00046 operator const char * () const { return Internal; } 00047 private: 00048 const char *Internal; 00049 }; 00050 00051 } // end namespace gdcm 00052 00053 #endif //GDCMCONSTCHARWRAPPER_H