gdcmCodeString.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program: GDCM (Grassroots DICOM). A DICOM library
00004   Module:  $URL$
00005 
00006   Copyright (c) 2006-2009 Mathieu Malaterre
00007   All rights reserved.
00008   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 #ifndef __gdcmCodeString_h
00016 #define __gdcmCodeString_h
00017 
00018 #include "gdcmString.h"
00019 
00020 namespace gdcm
00021 {
00022 
00028 class GDCM_EXPORT CodeString : public String<'\\',16> /* PLEASE do not export me */
00029 {
00030 public:
00031   // typedef are not inherited:
00032   typedef String<'\\',16> Superclass;
00033   typedef Superclass::value_type             value_type;
00034   typedef Superclass::pointer                pointer;
00035   typedef Superclass::reference              reference;
00036   typedef Superclass::const_reference        const_reference;
00037   typedef Superclass::size_type              size_type;
00038   typedef Superclass::difference_type        difference_type;
00039   typedef Superclass::iterator               iterator;
00040   typedef Superclass::const_iterator         const_iterator;
00041   typedef Superclass::reverse_iterator       reverse_iterator;
00042   typedef Superclass::const_reverse_iterator const_reverse_iterator;
00043 
00044   // CodeString constructors.
00045   CodeString(): Superclass() {}
00046   CodeString(const value_type* s): Superclass(s) {}
00047   CodeString(const value_type* s, size_type n): Superclass(s, n) {}
00048   CodeString(const Superclass& s, size_type pos=0, size_type n=npos):
00049     Superclass(s, pos, n) {}
00050 
00051   bool IsValid() const;
00052 };
00053 
00054 } // end namespace gdcm
00055 
00056 #endif //__gdcmCodeString_h
00057 

Generated on Thu Jul 1 06:40:22 2010 for GDCM by doxygen 1.6.3
SourceForge.net Logo