vtkSMProxyConfigurationWriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
26 #ifndef vtkSMProxyConfigurationWriter_h
27 #define vtkSMProxyConfigurationWriter_h
28 
29 #include "vtkRemotingMiscModule.h" //needed for exports
30 #include "vtkSMObject.h"
31 
33 class vtkSMProxy;
34 class vtkStringList;
35 
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  virtual void SetProxy(vtkSMProxy* proxy);
48  vtkGetObjectMacro(Proxy, vtkSMProxy);
50 
52 
56  virtual void SetPropertyIterator(vtkSMPropertyIterator* iter);
57  vtkGetObjectMacro(PropertyIterator, vtkSMPropertyIterator);
59 
61 
64  vtkSetStringMacro(FileName);
65  vtkGetStringMacro(FileName);
67 
69 
72  vtkSetStringMacro(FileIdentifier);
73  vtkGetStringMacro(FileIdentifier);
75 
76  vtkSetStringMacro(FileDescription);
77  vtkGetStringMacro(FileDescription);
78 
79  vtkSetStringMacro(FileExtension);
80  vtkGetStringMacro(FileExtension);
81 
85  virtual const char* GetWriterVersion() { return "1.0"; }
86 
88 
91  virtual int WriteConfiguration();
92  virtual int WriteConfiguration(const char* fileName);
94 
97  virtual int WriteConfiguration(ostream& os);
98 
99 protected:
101  ~vtkSMProxyConfigurationWriter() override;
102 
103 private:
105  void operator=(const vtkSMProxyConfigurationWriter&) = delete;
106 
107  char* FileName;
108  //-------------------
109  vtkSMProxy* Proxy;
110  vtkSMPropertyIterator* PropertyIterator;
111  //-------------------
112  char* FileIdentifier;
113  char* FileDescription;
114  char* FileExtension;
115 };
116 
117 #endif
Base readers of a vtkSMProxy's vtkSMProperty's.
virtual const char * GetWriterVersion()
Return the writer version string.
superclass for most server manager classes
Definition: vtkSMObject.h:17
#define VTKREMOTINGMISC_EXPORT
static vtkSMObject * New()
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
Manages allocation and freeing for a string list.
Definition: vtkStringList.h:18
iterates over the properties of a proxy
void PrintSelf(ostream &os, vtkIndent indent) override