Download modules/gapi/src/streaming/onevpl/data_provider_interface_exception.cpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/streaming/onevpl/data_provider_interface_exception.cpp
- Command line
-
hf download hf://tgollogly/test/modules/gapi/src/streaming/onevpl/data_provider_interface_exception.cpp
-
curl -L -o data_provider_interface_exception.cpp https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/streaming/onevpl/data_provider_interface_exception.cpp
1.47 kB
| // This file is part of OpenCV project. | |
| // It is subject to the license terms in the LICENSE file found in the top-level directory | |
| // of this distribution and at http://opencv.org/license.html. | |
| // | |
| // Copyright (C) 2021 Intel Corporation | |
| namespace cv { | |
| namespace gapi { | |
| namespace wip { | |
| namespace onevpl { | |
| DataProviderException::DataProviderException(const std::string& descr) : | |
| reason(descr) { | |
| } | |
| DataProviderException::DataProviderException(std::string&& descr) : | |
| reason(std::move(descr)) { | |
| } | |
| const char* DataProviderException::what() const noexcept { | |
| return reason.c_str(); | |
| } | |
| DataProviderSystemErrorException::DataProviderSystemErrorException(int error_code, | |
| const std::string& description) : | |
| DataProviderException(description + ", error code: " + std::to_string(error_code) + " - " + strerror(error_code)) { | |
| } | |
| DataProviderUnsupportedException::DataProviderUnsupportedException(const std::string& description) : | |
| DataProviderException(description) { | |
| } | |
| DataProviderImplementationException::DataProviderImplementationException(const std::string& description) : | |
| DataProviderException(description) { | |
| } | |
| } // namespace onevpl | |
| } // namespace wip | |
| } // namespace gapi | |
| } // namespace cv | |