cmHexFileConverter.h 598 B

123456789101112131415161718192021222324
  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. /** \class cmHexFileConverter
  6. * \brief Can detects Intel Hex and Motorola S-record files and convert them
  7. * to binary files.
  8. *
  9. */
  10. class cmHexFileConverter
  11. {
  12. public:
  13. enum FileType
  14. {
  15. Binary,
  16. IntelHex,
  17. MotorolaSrec
  18. };
  19. static FileType DetermineFileType(const char* inFileName);
  20. static bool TryConvert(const char* inFileName, const char* outFileName);
  21. };
  22. #endif