]> SALOME platform Git repositories - modules/paravis.git/blob - src/Plugins/JSONReader/ParaViewPlugin/vtkJSONReader.h
Salome HOME
Fix possible problem with enclosed reloading of targets from SALOME modules
[modules/paravis.git] / src / Plugins / JSONReader / ParaViewPlugin / vtkJSONReader.h
1 //  Copyright (C) 2015 CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 // Autor: Roman NIKOLAEV (roman.nikolaev@opencascade.com)
20
21 #ifndef __vtkJSONReader_h_
22 #define __vtkJSONReader_h_
23
24 #include "vtkTableAlgorithm.h"
25
26 class vtkStringArray;
27 class vtkJSONParser;
28
29 class VTK_EXPORT vtkJSONReader: public vtkTableAlgorithm
30 {
31 public:
32   static vtkJSONReader* New();
33   vtkTypeMacro(vtkJSONReader, vtkTableAlgorithm)
34   void PrintSelf(ostream& os, vtkIndent indent);
35
36   // Description:
37   // Specifies the name of the file
38   vtkGetStringMacro(FileName);
39   vtkSetStringMacro(FileName);
40
41   // Description:
42   // Determine whether the given file can be read
43   virtual int CanReadFile(const char* fname);
44
45   // Description:
46   // Request Data
47   virtual int RequestData(vtkInformation*, 
48                           vtkInformationVector**,
49                           vtkInformationVector*);
50
51
52 protected:
53   vtkJSONReader();
54   ~vtkJSONReader();  
55   // name of the file to read from
56   char*            FileName;
57
58   vtkJSONParser*   Parser;
59
60 private:
61   vtkJSONReader(const vtkJSONReader&); // Not implemented.
62   void operator=(const vtkJSONReader&); // Not implemented.
63 };
64
65 #endif //__vtkJSONReader_h_