IDS peak ICV
v1.0.0
Loading...
Searching...
No Matches
peak_icv_pipeline_utils.hpp
Go to the documentation of this file.
1
11
#pragma once
12
13
#include <
peak_icv/exceptions/peak_icv_exception.hpp
>
14
15
namespace
peak
16
{
17
namespace
pipeline
18
{
19
namespace
detail
20
{
21
22
inline
void
ValidateVersion
(int64_t version,
const
std::string& moduleName)
23
{
24
if
(version < 1)
25
{
26
throw
peak::icv::CorruptedException
(
"The 'Version' entry "
+ std::to_string(version) +
" in the archive for module "
27
+ moduleName +
" is invalid! Must be at least 1."
);
28
}
29
}
30
}
// namespace detail
31
}
// namespace pipeline
32
}
// namespace peak
peak::icv::CorruptedException
Thrown when input data or a file is malformed, unreadable, or otherwise corrupted.
Definition
peak_icv_exception.hpp:263
peak::pipeline::detail::ValidateVersion
void ValidateVersion(int64_t version, const std::string &moduleName)
Definition
peak_icv_pipeline_utils.hpp:22
peak
Definition
peak_common_math.hpp:20
peak_icv_exception.hpp
peak_icv
pipeline
detail
peak_icv_pipeline_utils.hpp
Send mail feedback
Generated on Fri Sep 5 2025 - ©
IDS Imaging Development Systems GmbH