1 // Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and 2 // other Axom Project Developers. See the top-level COPYRIGHT file for details. 3 // 4 // SPDX-License-Identifier: (BSD-3-Clause) 5 6 #ifndef AXOM_KLEE_IO_HPP 7 #define AXOM_KLEE_IO_HPP 8 9 #include <string> 10 #include <istream> 11 12 #include "axom/klee/ShapeSet.hpp" 13 14 namespace axom 15 { 16 namespace klee 17 { 18 /** 19 * Read a ShapeSet from an input stream. 20 * 21 * \param stream the stream from which to read the ShapeSet 22 * \throws runtime_error if the input is invalid 23 */ 24 ShapeSet readShapeSet(std::istream &stream); 25 26 /** 27 * Read a ShapeSet from a specified file 28 * 29 * \param filePath the file from which to read the ShapeSet 30 * \return the ShapeSet read from the file 31 * \throws runtime_error if the input is invalid 32 */ 33 ShapeSet readShapeSet(const std::string &filePath); 34 35 } // namespace klee 36 } // namespace axom 37 38 #endif //AXOM_KLEE_IO_HPP 39