From 5be58df2943359b20c4584fb89045cc90d7f5677 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Wed, 18 Sep 2024 15:53:36 +0800 Subject: [PATCH] update --- src/main.cpp | 16 ++++++++++------ src/tools/tools.hpp | 16 ++++++++-------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index c27ce38..7884ff5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,15 +1,19 @@ #include #include #include +#include #include #include #include #include -#include #include"tools.hpp" // std::string reversedComplement(std::string DNAsequence); +#define OPEN_IFS_AND_CHECK(file_path,value_name)std::ifstream value_name(file_path);if(value_name.is_open()==false){std::stringstream ss;ss<<"cannot open input file stream : "< - inline void check_fstream_isopen(const Args&...args)noexcept(false){ - bool is_open=true; - (((!args.is_open())?is_open=false:true),...); - if(is_open==false){ - throw std::runtime_error("cannot open file stream "); - } - } + // template + // inline void check_fstream_isopen(const Args&...args)noexcept(false){ + // bool is_open=true; + // (((!args.is_open())?is_open=false:true),...); + // if(is_open==false){ + // throw std::runtime_error("cannot open file stream "); + // } + // } } \ No newline at end of file