vtkSMProxyConfigurationReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSMProxyConfigurationReader.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 =========================================================================*/
38 #ifndef vtkSMProxyConfigurationReader_h
39 #define vtkSMProxyConfigurationReader_h
40 
41 #include "vtkRemotingMiscModule.h" //needed for exports
42 #include "vtkSMObject.h"
43 
44 class vtkPVXMLElement;
45 class vtkSMProxy;
46 
48 {
49 public:
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
55 
58  vtkSetStringMacro(FileName);
59  vtkGetStringMacro(FileName);
61 
63 
66  virtual void SetProxy(vtkSMProxy* proxy);
67  vtkGetObjectMacro(Proxy, vtkSMProxy);
69 
71 
74  vtkSetStringMacro(FileIdentifier);
75  vtkGetStringMacro(FileIdentifier);
77 
78  vtkSetStringMacro(FileDescription);
79  vtkGetStringMacro(FileDescription);
80 
81  vtkSetStringMacro(FileExtension);
82  vtkGetStringMacro(FileExtension);
83 
85 
91  vtkSetMacro(ValidateProxyType, int);
92  vtkGetMacro(ValidateProxyType, int);
94 
98  virtual const char* GetReaderVersion() { return "1.0"; }
99 
103  virtual bool CanReadVersion(const char* version);
104 
106 
112  virtual int ReadConfiguration();
113  virtual int ReadConfiguration(const char* filename);
115 
119  virtual int ReadConfiguration(vtkPVXMLElement* xmlStream);
120 
121 protected:
123  ~vtkSMProxyConfigurationReader() override;
124 
125 private:
126  char* FileName;
127  int ValidateProxyType;
128  //-------------------
129  vtkSMProxy* Proxy;
130  //-------------------
131  char* FileIdentifier;
132  char* FileDescription;
133  char* FileExtension;
134 
135 private:
137  void operator=(const vtkSMProxyConfigurationReader&) = delete;
138 };
139 
140 #endif
version
Base readers of a vtkSMProxy's vtkSMProperty's.
superclass for most server manager classes
Definition: vtkSMObject.h:29
virtual const char * GetReaderVersion()
Return the reader version.
#define VTKREMOTINGMISC_EXPORT
static vtkSMObject * New()
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
void PrintSelf(ostream &os, vtkIndent indent) override