Skip to content

Commit

Permalink
change the string to the file::path
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhouyuan-Chen committed Oct 17, 2023
1 parent 0f2f57d commit ba330b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/wmtk/io/EdgeMeshReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <map>

namespace wmtk {
EdgeMeshReader::EdgeMeshReader(const std::string& filename, const file_type type)
EdgeMeshReader::EdgeMeshReader(const std::filesystem::path& filename, const file_type type)
: m_filename(filename)
, m_type(type)
{}
Expand Down
4 changes: 2 additions & 2 deletions src/wmtk/io/EdgeMeshReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class EdgeMeshReader
public:
enum data_type { V, L, VT, VN, VP, COMMENT };
enum file_type { OBJ, OFF };
EdgeMeshReader(const std::string& filename, const file_type type);
EdgeMeshReader(const std::filesystem::path& filename, const file_type type);
void read(
Eigen::Matrix<long, -1, -1>& edges,
Eigen::MatrixXd& vertices,
Expand Down Expand Up @@ -45,7 +45,7 @@ class EdgeMeshReader
}
}

std::string m_filename;
const std::filesystem::path m_filename;
file_type m_type;
};
} // namespace wmtk

0 comments on commit ba330b0

Please sign in to comment.