cmHexFileConverter.h 645 B

1234567891011121314151617181920212223242526
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmHexFileConverter_h
  4. #define cmHexFileConverter_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. /** \class cmHexFileConverter
  7. * \brief Can detects Intel Hex and Motorola S-record files and convert them
  8. * to binary files.
  9. *
  10. */
  11. class cmHexFileConverter
  12. {
  13. public:
  14. enum FileType
  15. {
  16. Binary,
  17. IntelHex,
  18. MotorolaSrec
  19. };
  20. static FileType DetermineFileType(const char* inFileName);
  21. static bool TryConvert(const char* inFileName, const char* outFileName);
  22. };
  23. #endif