VTK
vtkInformationVariantKey.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInformationVariantKey.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 vtkInformationVariantKey_h
26 #define vtkInformationVariantKey_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  vtkInformationVariantKey(const char* name, const char* location);
43 
45 
48  static vtkInformationVariantKey* MakeKey(const char* name, const char* location)
49  {
51  }
53 
55 
60 
64  virtual void ShallowCopy(vtkInformation* from, vtkInformation* to);
65 
67  virtual void Print(ostream& os, vtkInformation* info);
68 
69 protected:
74 
75 private:
76  vtkInformationVariantKey(const vtkInformationVariantKey&); // Not implemented.
77  void operator=(const vtkInformationVariantKey&); // Not implemented.
78 };
79 
80 #endif
vtkInformationVariantKey::Set
void Set(vtkInformation *info, const vtkVariant &)
vtkCommonInformationKeyManager.h
VTKCOMMONCORE_EXPORT
#define VTKCOMMONCORE_EXPORT
Definition: vtkCommonCoreModule.h:15
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkInformationVariantKey::vtkInformationVariantKey
vtkInformationVariantKey(const char *name, const char *location)
vtkInformationVariantKey::Print
virtual void Print(ostream &os, vtkInformation *info)
vtkInformationVariantKey::Get
const vtkVariant & Get(vtkInformation *info)
vtkgl::name
GLuint const GLchar * name
Definition: vtkgl.h:11983
vtkCommonCoreModule.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkVariant
A atomic type representing the union of many types.
Definition: vtkVariant.h:79
vtkInformationVariantKey::MakeKey
static vtkInformationVariantKey * MakeKey(const char *name, const char *location)
Definition: vtkInformationVariantKey.h:48
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkInformationVariantKey::ShallowCopy
virtual void ShallowCopy(vtkInformation *from, vtkInformation *to)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkInformationVariantKey::GetWatchAddress
vtkVariant * GetWatchAddress(vtkInformation *info)
vtkgl::location
GLint location
Definition: vtkgl.h:12002
vtkInformationVariantKey::~vtkInformationVariantKey
~vtkInformationVariantKey()
vtkInformationVariantKey::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkInformationVariantKey
Key for variant values in vtkInformation.
Definition: vtkInformationVariantKey.h:36
vtkInformationKey.h
vtkInformationKey
Superclass for vtkInformation keys.
Definition: vtkInformationKey.h:38