Skip to content

File spread_sheet_io.h

File List > include > uipc > io > spread_sheet_io.h

Go to the documentation of this file

#pragma once
#include <uipc/geometry/simplicial_complex.h>
namespace uipc::geometry
{
class UIPC_IO_API SpreadSheetIO
{
  public:
    SpreadSheetIO(std::string_view output_folder = "./");
    void write_json(std::string_view geo_name, const SimplicialComplex& simplicial_complex) const;
    void write_json(const SimplicialComplex& simplicial_complex) const;
    void write_csv(std::string_view geo_name, const SimplicialComplex& simplicial_complex) const;
    void write_csv(const SimplicialComplex& simplicial_complex) const;

  private:
    string m_output_folder;
};
}  // namespace uipc::geometry