Viskores  1.0
VTKDataSetReader.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_io_VTKDataSetReader_h
19 #define viskores_io_VTKDataSetReader_h
20 
22 
23 namespace viskores
24 {
25 namespace io
26 {
27 
33 class VISKORES_IO_EXPORT VTKDataSetReader : public VTKDataSetReaderBase
34 {
35 public:
36  VISKORES_CONT VTKDataSetReader(const char* fileName);
38  VISKORES_CONT VTKDataSetReader(const std::string& fileName);
39  VISKORES_CONT ~VTKDataSetReader() override;
40 
41  VTKDataSetReader(const VTKDataSetReader&) = delete;
42  void operator=(const VTKDataSetReader&) = delete;
43 
44  VISKORES_CONT void PrintSummary(std::ostream& out) const override;
45 
46 private:
47  VISKORES_CONT void CloseFile() override;
48  VISKORES_CONT void Read() override;
49 
50  std::unique_ptr<VTKDataSetReaderBase> Reader;
51 };
52 
53 }
54 } // viskores::io
55 
56 #endif // viskores_io_VTKReader_h
viskores::io::VTKDataSetReader::Reader
std::unique_ptr< VTKDataSetReaderBase > Reader
Definition: VTKDataSetReader.h:50
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::io::VTKDataSetReader
Reads a legacy VTK file.
Definition: VTKDataSetReader.h:33
viskores::io::VTKDataSetReaderBase
Definition: VTKDataSetReaderBase.h:105
VTKDataSetReaderBase.h