resolve cyclic dependency with zstd
[platform/upstream/cmake.git] / Source / cmHexFileConverter.h
1 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2    file Copyright.txt or https://cmake.org/licensing for details.  */
3 #pragma once
4
5 #include "cmConfigure.h" // IWYU pragma: keep
6
7 #include <string>
8
9 /** \class cmHexFileConverter
10  * \brief Can detects Intel Hex and Motorola S-record files and convert them
11  *        to binary files.
12  *
13  */
14 class cmHexFileConverter
15 {
16 public:
17   enum FileType
18   {
19     Binary,
20     IntelHex,
21     MotorolaSrec
22   };
23   static FileType DetermineFileType(const std::string& inFileName);
24   static bool TryConvert(const std::string& inFileName,
25                          const std::string& outFileName);
26 };