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 =========================================================================*/ 00032 #ifndef __vtkStdString_h 00033 #define __vtkStdString_h 00034 00035 #include "vtkSystemIncludes.h" // For VTK_COMMON_EXPORT. 00036 #include <vtkstd/string> // For the superclass. 00037 00038 class vtkStdString; 00039 VTK_COMMON_EXPORT ostream& operator<<(ostream&, const vtkStdString&); 00040 00041 class vtkStdString : public vtkstd::string 00042 { 00043 public: 00044 typedef vtkstd::string StdString; 00045 typedef StdString::value_type value_type; 00046 typedef StdString::pointer pointer; 00047 typedef StdString::reference reference; 00048 typedef StdString::const_reference const_reference; 00049 typedef StdString::size_type size_type; 00050 typedef StdString::difference_type difference_type; 00051 typedef StdString::iterator iterator; 00052 typedef StdString::const_iterator const_iterator; 00053 typedef StdString::reverse_iterator reverse_iterator; 00054 typedef StdString::const_reverse_iterator const_reverse_iterator; 00055 00056 vtkStdString(): StdString() {} 00057 vtkStdString(const value_type* s): StdString(s) {} 00058 vtkStdString(const value_type* s, size_type n): StdString(s, n) {} 00059 vtkStdString(const StdString& s, size_type pos=0, size_type n=npos): 00060 StdString(s, pos, n) {} 00061 }; 00062 00063 #endif