VTK  9.0.20200530
vtkStdString.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkStdString.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
24 #ifndef vtkStdString_h
25 #define vtkStdString_h
26 
27 #include "vtkCommonCoreModule.h" // For export macro
28 #include "vtkSystemIncludes.h" // For VTKCOMMONCORE_EXPORT.
29 #include <string> // For the superclass.
30 
31 class vtkStdString;
32 VTKCOMMONCORE_EXPORT ostream& operator<<(ostream&, const vtkStdString&);
33 
34 class vtkStdString : public std::string
35 {
36 public:
38  typedef StdString::value_type value_type;
39  typedef StdString::pointer pointer;
41  typedef StdString::const_reference const_reference;
42  typedef StdString::size_type size_type;
43  typedef StdString::difference_type difference_type;
44  typedef StdString::iterator iterator;
45  typedef StdString::const_iterator const_iterator;
46  typedef StdString::reverse_iterator reverse_iterator;
47  typedef StdString::const_reverse_iterator const_reverse_iterator;
48 
50  : StdString()
51  {
52  }
54  : StdString(s)
55  {
56  }
58  : StdString(s, n)
59  {
60  }
61  vtkStdString(const StdString& s, size_type pos = 0, size_type n = npos)
62  : StdString(s, pos, n)
63  {
64  }
65 
66  operator const char*() { return this->c_str(); }
67 };
68 
69 #endif
70 // VTK-HeaderTest-Exclude: vtkStdString.h
vtkStdString::pointer
StdString::pointer pointer
Definition: vtkStdString.h:39
vtkStdString::vtkStdString
vtkStdString(const value_type *s, size_type n)
Definition: vtkStdString.h:57
vtkStdString::vtkStdString
vtkStdString(const value_type *s)
Definition: vtkStdString.h:53
vtkStdString::size_type
StdString::size_type size_type
Definition: vtkStdString.h:42
vtkStdString::const_reference
StdString::const_reference const_reference
Definition: vtkStdString.h:41
vtkX3D::reference
Definition: vtkX3D.h:470
vtkStdString::vtkStdString
vtkStdString()
Definition: vtkStdString.h:49
vtkStdString::value_type
StdString::value_type value_type
Definition: vtkStdString.h:38
vtkStdString::const_iterator
StdString::const_iterator const_iterator
Definition: vtkStdString.h:45
vtkX3D::string
Definition: vtkX3D.h:496
vtkStdString::const_reverse_iterator
StdString::const_reverse_iterator const_reverse_iterator
Definition: vtkStdString.h:47
vtkStdString::reference
StdString::reference reference
Definition: vtkStdString.h:40
vtkStdString::vtkStdString
vtkStdString(const StdString &s, size_type pos=0, size_type n=npos)
Definition: vtkStdString.h:61
vtkStdString::reverse_iterator
StdString::reverse_iterator reverse_iterator
Definition: vtkStdString.h:46
vtkStdString::StdString
std::string StdString
Definition: vtkStdString.h:37
vtkStdString::difference_type
StdString::difference_type difference_type
Definition: vtkStdString.h:43
vtkStdString::iterator
StdString::iterator iterator
Definition: vtkStdString.h:44
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:34
operator<<
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &, const vtkStdString &)
vtkSystemIncludes.h