This commit is contained in:
Erik Fröjdh
2024-10-31 18:03:17 +01:00
parent 49da039ff9
commit b8a4498379
8 changed files with 227 additions and 2 deletions

22
src/CtbRawFile.cpp Normal file
View File

@ -0,0 +1,22 @@
#include "aare/CtbRawFile.hpp"
namespace aare{
CtbRawFile::CtbRawFile(const std::filesystem::path &fname){
if(!std::filesystem::exists(fname)){
throw std::runtime_error(LOCATION + "File does not exist");
}
m_fnc = parse_fname(fname);
if(!m_fnc.valid){
throw std::runtime_error(LOCATION + "Could not parse master file name");
}
}
} // namespace aare