https://github.com/Kitware/CMake
Raw File
Tip revision: a15cc7706da8f4a1833539be3f37fbc63ee20e36 authored by Brad King on 08 February 2022, 15:43:14 UTC
CMake 3.23.0-rc1
Tip revision: a15cc77
cmHexFileConverter.h
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing for details.  */
#pragma once

#include "cmConfigure.h" // IWYU pragma: keep

#include <string>

/** \class cmHexFileConverter
 * \brief Can detects Intel Hex and Motorola S-record files and convert them
 *        to binary files.
 *
 */
class cmHexFileConverter
{
public:
  enum FileType
  {
    Binary,
    IntelHex,
    MotorolaSrec
  };
  static FileType DetermineFileType(const std::string& inFileName);
  static bool TryConvert(const std::string& inFileName,
                         const std::string& outFileName);
};
back to top