Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Common/vtkStdString.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkStdString.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
00022 #ifndef __vtkStdString_h
00023 #define __vtkStdString_h
00024 
00025 #include "vtkSystemIncludes.h" // For VTK_COMMON_EXPORT.
00026 #include <vtkstd/string>       // For the superclass.
00027 
00028 class vtkStdString;
00029 VTK_COMMON_EXPORT ostream& operator<<(ostream&, const vtkStdString&);
00030 
00031 class vtkStdString : public vtkstd::string
00032 {
00033 public:
00034   typedef vtkstd::string StdString;
00035   typedef StdString::value_type             value_type;
00036   typedef StdString::pointer                pointer;
00037   typedef StdString::reference              reference;
00038   typedef StdString::const_reference        const_reference;
00039   typedef StdString::size_type              size_type;
00040   typedef StdString::difference_type        difference_type;
00041   typedef StdString::iterator               iterator;
00042   typedef StdString::const_iterator         const_iterator;
00043   typedef StdString::reverse_iterator       reverse_iterator;
00044   typedef StdString::const_reverse_iterator const_reverse_iterator;
00045 
00046   vtkStdString(): StdString() {}
00047   vtkStdString(const value_type* s): StdString(s) {}
00048   vtkStdString(const value_type* s, size_type n): StdString(s, n) {}
00049   vtkStdString(const StdString& s, size_type pos=0, size_type n=npos):
00050     StdString(s, pos, n) {}
00051 };
00052 
00053 #endif