-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/libhictk/hic/include/hictk/hic/impl/validation_impl.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (C) 2023 Roberto Rossini <roberros@uio.no> | ||
// | ||
// SPDX-License-Identifier: MIT | ||
|
||
#pragma once | ||
|
||
#include <algorithm> | ||
#include <cstdint> | ||
#include <filesystem> | ||
#include <vector> | ||
|
||
#include "hictk/hic/file_reader.hpp" | ||
|
||
namespace hictk::hic::utils { | ||
inline bool is_hic_file(const std::filesystem::path& path) { | ||
return internal::HiCFileReader::checkMagicString(path.string()); | ||
} | ||
|
||
} // namespace hictk::hic::utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (C) 2023 Roberto Rossini <roberros@uio.no> | ||
// | ||
// SPDX-License-Identifier: MIT | ||
|
||
#pragma once | ||
|
||
#include <filesystem> | ||
|
||
namespace hictk::hic::utils { | ||
[[nodiscard]] bool is_hic_file(const std::filesystem::path &path); | ||
} // namespace hictk::hic::utils | ||
|
||
#include "./impl/validation_impl.hpp" // NOLINT |