vtkSMDeserializerXML.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkSMDeserializerXML_h
13 #define vtkSMDeserializerXML_h
14 
15 #include "vtkRemotingServerManagerModule.h" //needed for exports
16 #include "vtkSMDeserializer.h"
17 
18 class vtkPVXMLElement;
19 class vtkSMProxy;
20 class vtkSMProxyLocator;
21 
23 {
24 public:
25  static vtkSMDeserializerXML* New();
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
29 protected:
31  ~vtkSMDeserializerXML() override;
32 
33  // Friend to access NewProxy().
34  friend class vtkSMProxyLocator;
35 
39  vtkSMProxy* NewProxy(vtkTypeUInt32 id, vtkSMProxyLocator* locator) override;
40 
44  virtual vtkPVXMLElement* LocateProxyElement(vtkTypeUInt32 id);
45 
51  virtual int LoadProxyState(vtkPVXMLElement* element, vtkSMProxy*, vtkSMProxyLocator* locator);
52 
58  const char* xmlgroup, const char* xmlname, const char* subProxyName = nullptr) override;
59 
65  virtual void CreatedNewProxy(vtkTypeUInt32 id, vtkSMProxy* proxy);
66 
67 private:
69  void operator=(const vtkSMDeserializerXML&) = delete;
70 };
71 
72 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
virtual vtkSMProxy * CreateProxy(const char *xmlgroup, const char *xmlname, const char *subProxyName=nullptr)
Create a new proxy of the given group and name.
#define VTKREMOTINGSERVERMANAGER_EXPORT
deserializes proxies from their states.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
is used to locate proxies referred to in state xmls while loading state files.
deserializes proxies from their XML states.
virtual vtkSMProxy * NewProxy(vtkTypeUInt32 id, vtkSMProxyLocator *locator)=0
Create a new proxy with the id if possible.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
static vtkObject * New()