/*=========================================================================

  Program:   ParaView
  Module:    vtkSMDataSourceProxy.h

  Copyright (c) Kitware, Inc.
  All rights reserved.
  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/
/**
 * @class   vtkSMDataSourceProxy
 * @brief   "data-centric" proxy for VTK source on a server
 *
 * vtkSMDataSourceProxy adds a CopyData method to the vtkSMSourceProxy API
 * to give a "data-centric" behaviour; the output data of the input
 * vtkSMSourceProxy (to CopyData) is copied by the VTK object managed
 * by the vtkSMDataSourceProxy.
 * @sa
 * vtkSMSourceProxy
*/

#ifndef vtkSMDataSourceProxy_h
#define vtkSMDataSourceProxy_h

#include "vtkPVServerManagerCoreModule.h" //needed for exports
#include "vtkSMSourceProxy.h"

class VTKPVSERVERMANAGERCORE_EXPORT vtkSMDataSourceProxy : public vtkSMSourceProxy
{
public:
  static vtkSMDataSourceProxy* New();
  vtkTypeMacro(vtkSMDataSourceProxy, vtkSMSourceProxy);
  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;

  /**
   * Copies data from source proxy object to object represented by this
   * source proxy object.
   */
  void CopyData(vtkSMSourceProxy* sourceProxy);

protected:
  vtkSMDataSourceProxy();
  ~vtkSMDataSourceProxy() override;

private:
  vtkSMDataSourceProxy(const vtkSMDataSourceProxy&) = delete;
  void operator=(const vtkSMDataSourceProxy&) = delete;
};

#endif
