VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkInformationVariantVectorKey.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInformationVariantVectorKey.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 =========================================================================*/
25 #ifndef __vtkInformationVariantVectorKey_h
26 #define __vtkInformationVariantVectorKey_h
27 
28 #include "vtkCommonCoreModule.h" // For export macro
29 #include "vtkInformationKey.h"
30 
31 #include "vtkCommonInformationKeyManager.h" // Manage instances of this type.
32 
33 class vtkVariant;
34 
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
41  vtkInformationVariantVectorKey(const char* name, const char* location,
42  int length=-1);
44 
46 
48  void Append(vtkInformation* info, const vtkVariant& value);
49  void Set(vtkInformation* info, const vtkVariant* value, int length);
50  const vtkVariant* Get(vtkInformation* info) const;
51  const vtkVariant& Get(vtkInformation* info, int idx) const;
52  void Get(vtkInformation* info, vtkVariant* value) const;
53  int Length(vtkInformation* info) const;
55 
59  virtual void ShallowCopy(vtkInformation* from, vtkInformation* to);
60 
62  virtual void Print(ostream& os, vtkInformation* info);
63 
64 protected:
65  // The required length of the vector value (-1 is no restriction).
67 
68 private:
70  void operator=(const vtkInformationVariantVectorKey&); // Not implemented.
71 };
72 
73 #endif
virtual void ShallowCopy(vtkInformation *from, vtkInformation *to)=0
Store vtkAlgorithm input/output information.
#define VTKCOMMONCORE_EXPORT
GLuint GLsizei GLsizei * length
Definition: vtkgl.h:11992
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
void PrintSelf(ostream &os, vtkIndent indent)
A atomic type representing the union of many types.
Definition: vtkVariant.h:78
void Print(vtkInformation *info)
Superclass for vtkInformation keys.
GLuint const GLchar * name
Definition: vtkgl.h:11983
a simple class to control print indentation
Definition: vtkIndent.h:38
GLint location
Definition: vtkgl.h:12002