#ifndef MESHIO_H #define MESHIO_H #include "mfem.hpp" #include /** * @brief Class for handling mesh input/output operations. */ class MeshIO { private: bool loaded_; ///< Flag to indicate if the mesh is loaded std::string mesh_file_; ///< Filename of the mesh file mfem::Mesh mesh_; ///< The mesh object public: /** * @brief Constructor that initializes the MeshIO object with a mesh file. * @param mesh_file The name of the mesh file. */ MeshIO(const std::string &mesh_file); /** * @brief Destructor for the MeshIO class. */ ~MeshIO(); /** * @brief Get the mesh object. * @return Reference to the mesh object. */ mfem::Mesh& GetMesh(); /** * @brief Check if the mesh is loaded. * @return True if the mesh is loaded, false otherwise. */ bool IsLoaded() const; }; #endif // MESHIO_H