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 "vtkInformationKey.h"
26 
27 #include "vtkCommonInformationKeyManager.h" // Manage instances of this type.
28 
29 class vtkObjectBase;
30 
32 {
33 public:
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
37  vtkInformationObjectBaseKey(const char* name, const char* location,
38  const char* requiredClass=0);
40 
42 
44  void Set(vtkInformation* info, vtkObjectBase*);
45  vtkObjectBase* Get(vtkInformation* info);
47 
51  virtual void ShallowCopy(vtkInformation* from, vtkInformation* to);
52 
54  virtual void Report(vtkInformation* info, vtkGarbageCollector* collector);
55 
56 protected:
57  // The type required of all objects stored with this key.
58  const char* RequiredClass;
59 private:
60  vtkInformationObjectBaseKey(const vtkInformationObjectBaseKey&); // Not implemented.
61  void operator=(const vtkInformationObjectBaseKey&); // Not implemented.
62 };
63 
64 #endif
virtual void Report(vtkInformation *info, vtkGarbageCollector *collector)
virtual void ShallowCopy(vtkInformation *from, vtkInformation *to)=0
Store vtkAlgorithm input/output information.
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:37
Key for vtkObjectBase values.
#define VTK_COMMON_EXPORT
abstract base class for most VTK objects
Definition: vtkObjectBase.h:59