gdcmLO.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-2010 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 GDCMLO_H
00016 #define GDCMLO_H
00017 
00018 #include "gdcmString.h"
00019 
00020 namespace gdcm
00021 {
00022 
00028 class /*GDCM_EXPORT*/ LO : public String<'\\',64> /* PLEASE do not export me */
00029 {
00030 public:
00031   // typedef are not inherited:
00032   typedef String<'\\',64> 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   // LO constructors.
00045   LO(): Superclass() {}
00046   LO(const value_type* s): Superclass(s) {}
00047   LO(const value_type* s, size_type n): Superclass(s, n) {}
00048   LO(const Superclass& s, size_type pos=0, size_type n=npos):
00049     Superclass(s, pos, n) {}
00050 
00051   bool IsValid() const {
00052     if( !Superclass::IsValid() ) return false;
00053     // Implementation specific:
00054     return true;
00055   }
00056 };
00057 
00058 } // end namespace gdcm
00059 
00060 #endif //GDCMLO_H
00061 

Generated on Sat Dec 4 2010 08:58:44 for GDCM by doxygen 1.7.2
SourceForge.net Logo