VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Common
Core
vtkInformationStringVectorKey.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkInformationStringVectorKey.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
=========================================================================*/
23
#ifndef vtkInformationStringVectorKey_h
24
#define vtkInformationStringVectorKey_h
25
26
#include "vtkCommonCoreModule.h"
// For export macro
27
#include "
vtkInformationKey.h
"
28
29
#include "
vtkCommonInformationKeyManager.h
"
// Manage instances of this type.
30
31
#include <string>
// for std::string compat
32
33
class
VTKCOMMONCORE_EXPORT
vtkInformationStringVectorKey
:
public
vtkInformationKey
34
{
35
public
:
36
vtkTypeMacro(
vtkInformationStringVectorKey
,
vtkInformationKey
);
37
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
38
39
vtkInformationStringVectorKey
(
const
char
* name,
const
char
* location,
int
length = -1);
40
~vtkInformationStringVectorKey
()
override
;
41
47
static
vtkInformationStringVectorKey
*
MakeKey
(
48
const
char
* name,
const
char
* location,
int
length = -1)
49
{
50
return
new
vtkInformationStringVectorKey
(name, location, length);
51
}
52
54
58
void
Append
(
vtkInformation
* info,
const
char
* value);
59
void
Set
(
vtkInformation
* info,
const
char
* value,
int
index = 0);
60
void
Append
(
vtkInformation
* info,
const
std::string& value);
61
void
Set
(
vtkInformation
* info,
const
std::string& value,
int
idx = 0);
62
const
char
*
Get
(
vtkInformation
* info,
int
idx = 0);
63
int
Length
(
vtkInformation
* info);
65
71
void
ShallowCopy
(
vtkInformation
* from,
vtkInformation
* to)
override
;
72
76
void
Print
(ostream& os,
vtkInformation
* info)
override
;
77
78
protected
:
79
// The required length of the vector value (-1 is no restriction).
80
int
RequiredLength
;
81
82
private
:
83
vtkInformationStringVectorKey
(
const
vtkInformationStringVectorKey
&) =
delete
;
84
void
operator=(
const
vtkInformationStringVectorKey
&) =
delete
;
85
};
86
87
#endif
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkInformationKey
Superclass for vtkInformation keys.
Definition:
vtkInformationKey.h:39
vtkInformationStringVectorKey
Key for String vector values.
Definition:
vtkInformationStringVectorKey.h:34
vtkInformationStringVectorKey::Set
void Set(vtkInformation *info, const char *value, int index=0)
Get/Set the value associated with this key in the given information object.
vtkInformationStringVectorKey::Print
void Print(ostream &os, vtkInformation *info) override
Print the key's value in an information object to a stream.
vtkInformationStringVectorKey::ShallowCopy
void ShallowCopy(vtkInformation *from, vtkInformation *to) override
Copy the entry associated with this key from one information object to another.
vtkInformationStringVectorKey::Set
void Set(vtkInformation *info, const std::string &value, int idx=0)
Get/Set the value associated with this key in the given information object.
vtkInformationStringVectorKey::Append
void Append(vtkInformation *info, const char *value)
Get/Set the value associated with this key in the given information object.
vtkInformationStringVectorKey::Get
const char * Get(vtkInformation *info, int idx=0)
Get/Set the value associated with this key in the given information object.
vtkInformationStringVectorKey::MakeKey
static vtkInformationStringVectorKey * MakeKey(const char *name, const char *location, int length=-1)
This method simply returns a new vtkInformationStringVectorKey, given a name, a location and a requir...
Definition:
vtkInformationStringVectorKey.h:47
vtkInformationStringVectorKey::Append
void Append(vtkInformation *info, const std::string &value)
Get/Set the value associated with this key in the given information object.
vtkInformationStringVectorKey::~vtkInformationStringVectorKey
~vtkInformationStringVectorKey() override
vtkInformationStringVectorKey::vtkInformationStringVectorKey
vtkInformationStringVectorKey(const char *name, const char *location, int length=-1)
vtkInformationStringVectorKey::RequiredLength
int RequiredLength
Definition:
vtkInformationStringVectorKey.h:80
vtkInformationStringVectorKey::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformationStringVectorKey::Length
int Length(vtkInformation *info)
Get/Set the value associated with this key in the given information object.
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:183
vtkCommonInformationKeyManager.h
vtkInformationKey.h
Generated on Fri Apr 21 2023 10:28:28 for VTK by
1.9.6