VTK  9.7.1
vtkOverrideAttribute.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
40 #ifndef vtkOverrideAttribute_h
41 #define vtkOverrideAttribute_h
42 #include "vtkObject.h"
43 
44 #include "vtkCommonCoreModule.h" // For export macro
45 #include "vtkSmartPointer.h" // For vtkSmartPointer
46 
47 #include <string> // for std::string
48 
49 VTK_ABI_NAMESPACE_BEGIN
50 class VTKCOMMONCORE_EXPORT vtkOverrideAttribute : public vtkObject
51 {
52 public:
53  static vtkOverrideAttribute* New();
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
59  vtkGetCharFromStdStringMacro(Name);
60 
62 
64  vtkGetCharFromStdStringMacro(Value);
66 
68 
70  vtkGetSmartPointerMacro(Next, vtkOverrideAttribute);
72 
73  static vtkOverrideAttribute* CreateAttributeChain(
74  const char* name, const char* value, vtkOverrideAttribute* nextInChain);
75 
76 protected:
78  ~vtkOverrideAttribute() override;
79 
80 private:
82  void operator=(const vtkOverrideAttribute&) = delete;
83 
84  std::string Name;
85  std::string Value;
87 };
88 
89 VTK_ABI_NAMESPACE_END
90 #endif
Attribute for vtkObjectFactory overrides.
abstract base class for most VTK objects
Definition: vtkObject.h:52
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...