vtkSMProxyConfigurationWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMProxyConfigurationWriter.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
38 #ifndef vtkSMProxyConfigurationWriter_h
39 #define vtkSMProxyConfigurationWriter_h
40 
41 #include "vtkRemotingMiscModule.h" //needed for exports
42 #include "vtkSMObject.h"
43 
45 class vtkSMProxy;
46 class vtkStringList;
47 
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
59  virtual void SetProxy(vtkSMProxy* proxy);
60  vtkGetObjectMacro(Proxy, vtkSMProxy);
62 
64 
68  virtual void SetPropertyIterator(vtkSMPropertyIterator* iter);
69  vtkGetObjectMacro(PropertyIterator, vtkSMPropertyIterator);
71 
73 
76  vtkSetStringMacro(FileName);
77  vtkGetStringMacro(FileName);
79 
81 
84  vtkSetStringMacro(FileIdentifier);
85  vtkGetStringMacro(FileIdentifier);
87 
88  vtkSetStringMacro(FileDescription);
89  vtkGetStringMacro(FileDescription);
90 
91  vtkSetStringMacro(FileExtension);
92  vtkGetStringMacro(FileExtension);
93 
97  virtual const char* GetWriterVersion() { return "1.0"; }
98 
100 
103  virtual int WriteConfiguration();
104  virtual int WriteConfiguration(const char* fileName);
106 
109  virtual int WriteConfiguration(ostream& os);
110 
111 protected:
113  ~vtkSMProxyConfigurationWriter() override;
114 
115 private:
117  void operator=(const vtkSMProxyConfigurationWriter&) = delete;
118 
119 private:
120  char* FileName;
121  //-------------------
122  vtkSMProxy* Proxy;
123  vtkSMPropertyIterator* PropertyIterator;
124  //-------------------
125  char* FileIdentifier;
126  char* FileDescription;
127  char* FileExtension;
128 };
129 
130 #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:29
#define VTKREMOTINGMISC_EXPORT
static vtkSMObject * New()
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
Manages allocation and freeing for a string list.
Definition: vtkStringList.h:30
iterates over the properties of a proxy
void PrintSelf(ostream &os, vtkIndent indent) override