ParaView
ParaViewCore
Common
vtkStringList.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: ParaView
4
Module: vtkStringList.h
5
6
Copyright (c) Kitware, Inc.
7
All rights reserved.
8
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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
=========================================================================*/
23
#ifndef vtkStringList_h
24
#define vtkStringList_h
25
26
#include "vtkObject.h"
27
#include "vtkPVCommonModule.h"
// needed for export macro
28
29
class
VTKPVCOMMON_EXPORT
vtkStringList
:
public
vtkObject
30
{
31
public
:
32
static
vtkStringList
* New();
33
vtkTypeMacro(
vtkStringList
, vtkObject);
34
void
PrintSelf(ostream& os, vtkIndent indent);
35
37
40
void
AddString(
const
char
* str);
41
void
AddUniqueString(
const
char
* str);
43
47
void
AddFormattedString(
const
char
* EventString, ...);
48
52
void
RemoveAllItems();
53
57
void
SetString(
int
idx,
const
char
* str);
58
62
int
GetLength
() {
return
this->NumberOfStrings; }
63
67
int
GetIndex(
const
char
* str);
68
72
const
char
* GetString(
int
idx);
73
74
vtkGetMacro(NumberOfStrings,
int
);
75
76
protected
:
77
vtkStringList
();
78
~
vtkStringList
();
79
80
int
NumberOfStrings
;
81
int
StringArrayLength
;
82
char
**
Strings
;
83
void
Reallocate(
int
num);
84
void
DeleteStrings();
85
86
vtkStringList
(
const
vtkStringList
&) VTK_DELETE_FUNCTION;
87
void
operator=(const
vtkStringList
&) VTK_DELETE_FUNCTION;
88
};
89
90
#endif
vtkStringList::Strings
char ** Strings
Definition:
vtkStringList.h:82
vtkStringList::StringArrayLength
int StringArrayLength
Definition:
vtkStringList.h:81
vtkStringList::NumberOfStrings
int NumberOfStrings
Definition:
vtkStringList.h:80
vtkStringList::GetLength
int GetLength()
Get the length of the list.
Definition:
vtkStringList.h:62
vtkStringList
Definition:
vtkStringList.h:29
Generated by
1.8.12