VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
32 class VTKCOMMONCORE_EXPORT vtkInformationObjectBaseKey : public vtkInformationKey
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 
45  void Set(vtkInformation* info, vtkObjectBase*);
46  vtkObjectBase* Get(vtkInformation* info);
48 
52  virtual void ShallowCopy(vtkInformation* from, vtkInformation* to);
53 
55  virtual void Report(vtkInformation* info, vtkGarbageCollector* collector);
56 
57 protected:
58  // The type required of all objects stored with this key.
59  const char* RequiredClass;
60 private:
61  vtkInformationObjectBaseKey(const vtkInformationObjectBaseKey&); // Not implemented.
62  void operator=(const vtkInformationObjectBaseKey&); // Not implemented.
63 };
64 
65 #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:38
Key for vtkObjectBase values.
abstract base class for most VTK objects
Definition: vtkObjectBase.h:57