vtkSMDeserializerProtobuf.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMDeserializerProtobuf.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 =========================================================================*/
24 #ifndef vtkSMDeserializerProtobuf_h
25 #define vtkSMDeserializerProtobuf_h
26 
27 #include "vtkRemotingServerManagerModule.h" //needed for exports
28 #include "vtkSMDeserializer.h"
29 
30 class vtkPVXMLElement;
31 class vtkSMProxy;
32 class vtkSMProxyLocator;
33 class vtkSMStateLocator;
34 
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
46  vtkGetObjectMacro(StateLocator, vtkSMStateLocator);
47  virtual void SetStateLocator(vtkSMStateLocator*);
49 
50 protected:
52  ~vtkSMDeserializerProtobuf() override;
53 
54  // Friend to access NewProxy().
55  friend class vtkSMProxyLocator;
56 
61  vtkSMProxy* NewProxy(vtkTypeUInt32 id, vtkSMProxyLocator* locator) override;
62 
64 
65 private:
67  void operator=(const vtkSMDeserializerProtobuf&) = delete;
68 };
69 
70 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
#define VTKREMOTINGSERVERMANAGER_EXPORT
deserializes proxies from their states.
deserializes proxies from their Protobuf states.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
is used to locate proxies referred to in state xmls while loading state files.
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()
Class used to retrieve a given message state based on its GlobalID.