GEOSX
VTKVTMWriter.hpp
1 /*
2  * ------------------------------------------------------------------------------------------------------------
3  * SPDX-License-Identifier: LGPL-2.1-only
4  *
5  * Copyright (c) 2018-2020 Lawrence Livermore National Security LLC
6  * Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University
7  * Copyright (c) 2018-2020 TotalEnergies
8  * Copyright (c) 2019- GEOSX Contributors
9  * All rights reserved
10  *
11  * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
12  * ------------------------------------------------------------------------------------------------------------
13  */
14 
15 #ifndef GEOS_FILEIO_VTK_VTKVTMWRITER_HPP_
16 #define GEOS_FILEIO_VTK_VTKVTMWRITER_HPP_
17 
19 
20 namespace geos
21 {
22 namespace vtk
23 {
24 
31 {
32 public:
37  explicit VTKVTMWriter( string filePath );
38 
42  void write() const;
43 
50  void addDataSet( std::vector< string > const & blockPath,
51  string const & dataSetName,
52  string const & filePath ) const;
53 
54 private:
55 
57  xmlWrapper::xmlDocument m_document;
58 
60  xmlWrapper::xmlNode m_blockRoot;
61 
63  string m_filePath;
64 };
65 
66 } // namespace vtk
67 } // namespace geos
68 
69 #endif
VTM Writer class.
VTKVTMWriter(string filePath)
Build the VTM Writer.
void write() const
Triggers the file output.
void addDataSet(std::vector< string > const &blockPath, string const &dataSetName, string const &filePath) const
Add a dataset block to the VTM file.
pugi::xml_node xmlNode
Definition: xmlWrapper.hpp:57