Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision 3a6370bf39d14d68f194f1204ddf42fe2aa329d2 authored by Pierre Guillou on 11 October 2019, 13:16:44 UTC, committed by Pierre Guillou on 13 April 2022, 09:24:25 UTC
Add .gitignore
1 parent cdaa0c2
  • Files
  • Changes
  • 00735c9
  • /
  • Remoting
  • /
  • Misc
  • /
  • vtkSMProxyConfigurationReader.h
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:3a6370bf39d14d68f194f1204ddf42fe2aa329d2
directory badge Iframe embedding
swh:1:dir:4ac64288f196eb7774f692d78a56e2715f01a617
content badge Iframe embedding
swh:1:cnt:14f78095334a87d59a2df63f1987c62383ad6113
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
vtkSMProxyConfigurationReader.h
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkSMProxyConfigurationReader.h

  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm 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   vtkSMProxyConfigurationReader
 * @brief   Base readers of a vtkSMProxy's vtkSMProperty's.
 *
 *
 * vtkSMProxyConfigurationReader reads state for properties for a single
 * proxy. Internally the ParaView state machinery is employed.
 *
 * The notion of proxy configuration is similar to state but lighter
 * as the proxy its domains and and its server side objects are assumed to
 * already exist. Configuration also provides subseting mechanism so that
 * properties may be excluded if needed.
 *
 * The subsetting mechanism is implemented in the writer, the reader simply
 * reads which ever properties are found.
 *
 * @sa
 * vtkSMProxyConfigurationWriter
 *
 * @par Thanks:
 * This class was contribued by SciberQuest Inc.
 */

#ifndef vtkSMProxyConfigurationReader_h
#define vtkSMProxyConfigurationReader_h

#include "vtkRemotingMiscModule.h" //needed for exports
#include "vtkSMObject.h"

class vtkPVXMLElement;
class vtkSMProxy;

class VTKREMOTINGMISC_EXPORT vtkSMProxyConfigurationReader : public vtkSMObject
{
public:
  static vtkSMProxyConfigurationReader* New();
  vtkTypeMacro(vtkSMProxyConfigurationReader, vtkSMObject);
  void PrintSelf(ostream& os, vtkIndent indent) override;

  //@{
  /**
   * Set/Get the file name.
   */
  vtkSetStringMacro(FileName);
  vtkGetStringMacro(FileName);
  //@}

  //@{
  /**
   * Set the proxy to write out.
   */
  virtual void SetProxy(vtkSMProxy* proxy);
  vtkGetObjectMacro(Proxy, vtkSMProxy);
  //@}

  //@{
  /**
   * Set/get file meta data.
   */
  vtkSetStringMacro(FileIdentifier);
  vtkGetStringMacro(FileIdentifier);
  //@}

  vtkSetStringMacro(FileDescription);
  vtkGetStringMacro(FileDescription);

  vtkSetStringMacro(FileExtension);
  vtkGetStringMacro(FileExtension);

  //@{
  /**
   * Turns on/off proxy type validation. If on then the proxy's
   * type is compared with that found in the configuration file.
   * The read fails if they do not match. The feature is on by
   * default.
   */
  vtkSetMacro(ValidateProxyType, int);
  vtkGetMacro(ValidateProxyType, int);
  //@}

  /**
   * Return the reader version.
   */
  virtual const char* GetReaderVersion() { return "1.0"; }

  /**
   * Return true if the reader can read the specified version.
   */
  virtual bool CanReadVersion(const char* version);

  //@{
  /**
   * Read the configuration from the file. UpdateVTKObjects
   * is intentionally not called so that caller may have full
   * control as to when the push from client to server takes
   * place.
   */
  virtual int ReadConfiguration();
  virtual int ReadConfiguration(const char* filename);
  //@}
  /**
   * Read the configuration from the stream. PV state machinery is
   * employed.
   */
  virtual int ReadConfiguration(vtkPVXMLElement* xmlStream);

protected:
  vtkSMProxyConfigurationReader();
  ~vtkSMProxyConfigurationReader() override;

private:
  char* FileName;
  int ValidateProxyType;
  //-------------------
  vtkSMProxy* Proxy;
  //-------------------
  char* FileIdentifier;
  char* FileDescription;
  char* FileExtension;

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

#endif
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API