VTK
vtkInformationObjectBaseKey.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInformationObjectBaseKey.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 =========================================================================*/
22 #ifndef vtkInformationObjectBaseKey_h
23 #define vtkInformationObjectBaseKey_h
24 
25 #include "vtkCommonCoreModule.h" // For export macro
26 #include "vtkInformationKey.h"
27 
28 #include "vtkCommonInformationKeyManager.h" // Manage instances of this type.
29 
30 class vtkObjectBase;
31 
33 {
34 public:
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
38  vtkInformationObjectBaseKey(const char* name, const char* location,
39  const char* requiredClass=0);
41 
43 
47  static vtkInformationObjectBaseKey* MakeKey(const char* name, const char* location,
48  const char* requiredClass=0)
49  {
50  return new vtkInformationObjectBaseKey(name, location, requiredClass);
51  }
53 
55 
57  void Set(vtkInformation* info, vtkObjectBase*);
60 
64  virtual void ShallowCopy(vtkInformation* from, vtkInformation* to);
65 
67  virtual void Report(vtkInformation* info, vtkGarbageCollector* collector);
68 
69 protected:
70  // The type required of all objects stored with this key.
71  const char* RequiredClass;
72 
73  vtkInformationKeySetStringMacro(RequiredClass);
74 
75 private:
76  vtkInformationObjectBaseKey(const vtkInformationObjectBaseKey&); // Not implemented.
77  void operator=(const vtkInformationObjectBaseKey&); // Not implemented.
78 };
79 
80 #endif
virtual void Report(vtkInformation *info, vtkGarbageCollector *collector)
virtual void ShallowCopy(vtkInformation *from, vtkInformation *to)=0
Store vtkAlgorithm input/output information.
#define VTKCOMMONCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
Detect and break reference loops.
Superclass for vtkInformation keys.
a simple class to control print indentation
Definition: vtkIndent.h:38
Key for vtkObjectBase values.
abstract base class for most VTK objects
Definition: vtkObjectBase.h:59
vtkInformationKeySetStringMacro(Name)
static vtkInformationObjectBaseKey * MakeKey(const char *name, const char *location, const char *requiredClass=0)