Skip to content

Commit

Permalink
stepping through copy ctors in the debugger is annoying
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Smith committed Jan 10, 2023
1 parent f243e92 commit 86b306d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions modules/c++/hdf5.lite/include/hdf5/lite/Info.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ struct FileInfo final : public GroupInfo
};


CODA_OSS_API FileInfo fileInfo(coda_oss::filesystem::path);
CODA_OSS_API GroupInfo groupInfo(coda_oss::filesystem::path, std::string loc);
CODA_OSS_API DatasetInfo datasetInfo(coda_oss::filesystem::path, std::string loc);
CODA_OSS_API FileInfo fileInfo(const coda_oss::filesystem::path&);
CODA_OSS_API GroupInfo groupInfo(const coda_oss::filesystem::path&, const std::string& loc);
CODA_OSS_API DatasetInfo datasetInfo(const coda_oss::filesystem::path&, const std::string& loc);

}
}
Expand Down
4 changes: 2 additions & 2 deletions modules/c++/hdf5.lite/include/hdf5/lite/Read.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ namespace hdf5
namespace lite
{

CODA_OSS_API types::RowCol<size_t> readFile(coda_oss::filesystem::path, std::string datasetName, std::vector<double>&);
CODA_OSS_API types::RowCol<size_t> readFile(coda_oss::filesystem::path, std::string datasetName, std::vector<float>&);
CODA_OSS_API types::RowCol<size_t> readFile(const coda_oss::filesystem::path&, const std::string& loc, std::vector<double>&);
CODA_OSS_API types::RowCol<size_t> readFile(const coda_oss::filesystem::path&, const std::string& loc, std::vector<float>&);

}
}
Expand Down
10 changes: 5 additions & 5 deletions modules/c++/hdf5.lite/source/Info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static std::vector<hdf5::lite::DatatypeInfo> getDatatypes(H5::Group& group)
}

// https://docs.hdfgroup.org/archive/support/HDF5/doc1.8/cpplus_RM/readdata_8cpp-example.html
static hdf5::lite::GroupInfo groupInfo_(coda_oss::filesystem::path filename, std::string loc)
static hdf5::lite::GroupInfo groupInfo_(const coda_oss::filesystem::path& filename, const std::string& loc)
{
hdf5::lite::GroupInfo retval;
retval.filename = filename.string();
Expand All @@ -144,11 +144,11 @@ static hdf5::lite::GroupInfo groupInfo_(coda_oss::filesystem::path filename, std

return retval;
}
hdf5::lite::GroupInfo hdf5::lite::groupInfo(coda_oss::filesystem::path filename, std::string loc)
hdf5::lite::GroupInfo hdf5::lite::groupInfo(const coda_oss::filesystem::path& filename, const std::string& loc)
{
return details::try_catch_H5Exceptions(groupInfo_, __FILE__, __LINE__, filename, loc);
}
hdf5::lite::FileInfo hdf5::lite::fileInfo(coda_oss::filesystem::path filename)
hdf5::lite::FileInfo hdf5::lite::fileInfo(const coda_oss::filesystem::path& filename)
{
hdf5::lite::FileInfo retval;
hdf5::lite::GroupInfo& retval_ = retval;
Expand Down Expand Up @@ -185,7 +185,7 @@ static hdf5::lite::Class H5T_class_to_Class(const H5::DataSet& dataset)
}

// https://docs.hdfgroup.org/archive/support/HDF5/doc1.8/cpplus_RM/readdata_8cpp-example.html
static hdf5::lite::DatasetInfo datasetInfo_(coda_oss::filesystem::path filename, std::string loc)
static hdf5::lite::DatasetInfo datasetInfo_(const coda_oss::filesystem::path& filename, const std::string& loc)
{
hdf5::lite::DatasetInfo retval;
retval.filename = filename.string();
Expand All @@ -206,7 +206,7 @@ static hdf5::lite::DatasetInfo datasetInfo_(coda_oss::filesystem::path filename,

return retval;
}
hdf5::lite::DatasetInfo hdf5::lite::datasetInfo(coda_oss::filesystem::path filename, std::string loc)
hdf5::lite::DatasetInfo hdf5::lite::datasetInfo(const coda_oss::filesystem::path& filename, const std::string& loc)
{
return details::try_catch_H5Exceptions(datasetInfo_, __FILE__, __LINE__, filename, loc);
}
8 changes: 4 additions & 4 deletions modules/c++/hdf5.lite/source/Read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ static types::RowCol<size_t> readFile_(const coda_oss::filesystem::path& fileNam
return readDataset_(dataset, result);
}

types::RowCol<size_t> hdf5::lite::readFile(coda_oss::filesystem::path fileName, std::string datasetName,
types::RowCol<size_t> hdf5::lite::readFile(const coda_oss::filesystem::path& fileName, const std::string& loc,
std::vector<double>& result)
{
return details::try_catch_H5Exceptions(readFile_<double>, __FILE__, __LINE__, fileName, datasetName, result);
return details::try_catch_H5Exceptions(readFile_<double>, __FILE__, __LINE__, fileName, loc, result);
}
types::RowCol<size_t> hdf5::lite::readFile(coda_oss::filesystem::path fileName, std::string datasetName,
types::RowCol<size_t> hdf5::lite::readFile(const coda_oss::filesystem::path& fileName, const std::string& loc,
std::vector<float>& result)
{
return details::try_catch_H5Exceptions(readFile_<float>, __FILE__, __LINE__, fileName, datasetName, result);
return details::try_catch_H5Exceptions(readFile_<float>, __FILE__, __LINE__, fileName, loc, result);
}

0 comments on commit 86b306d

Please sign in to comment.