VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
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
=========================================================================*/
29
#ifndef __vtkStdString_h
30
#define __vtkStdString_h
31
32
#include "
vtkSystemIncludes.h
"
// For VTK_COMMON_EXPORT.
33
#include <vtkstd/string>
// For the superclass.
34
35
class
vtkStdString
;
36
VTK_COMMON_EXPORT
ostream&
operator<<
(ostream&,
const
vtkStdString
&);
37
38
// Workaround for a difference between GCC visibility and MSVC dllexport
39
// Not setting the visibility of this class caused the
40
// vtkArrayIteratorTemplate<vtkStdString> symbols to be hidden on Apple GCC 4.2
41
// but exporting would cause failure on MSVC 10 (works either way with GCC 4.4
42
#if defined(__APPLE__) && __GNUC__ >=4
43
class
VTK_COMMON_EXPORT
vtkStdString
:
public
vtkstd::string
44
#else
45
class
vtkStdString
:
public
vtkstd::string
46
#endif
47
{
48
public
:
49
typedef
vtkstd::string
StdString
;
50
typedef
StdString::value_type
value_type
;
51
typedef
StdString::pointer
pointer
;
52
typedef
StdString::reference
reference
;
53
typedef
StdString::const_reference
const_reference
;
54
typedef
StdString::size_type
size_type
;
55
typedef
StdString::difference_type
difference_type
;
56
typedef
StdString::iterator
iterator
;
57
typedef
StdString::const_iterator
const_iterator
;
58
typedef
StdString::reverse_iterator
reverse_iterator
;
59
typedef
StdString::const_reverse_iterator
const_reverse_iterator
;
60
61
vtkStdString
():
StdString
() {}
62
vtkStdString
(
const
value_type
* s):
StdString
(s) {}
63
vtkStdString
(
const
value_type
* s,
size_type
n):
StdString
(s, n) {}
64
vtkStdString
(
const
StdString
& s,
size_type
pos=0,
size_type
n=npos):
65
StdString
(s, pos, n) {}
66
67
operator
const
char
*() {
return
this->c_str(); }
68
};
69
70
#endif
Generated on Wed Nov 21 2012 21:33:40 for VTK by
1.8.2