cmHexFileConverter.h 1004 B

12345678910111213141516171819202122232425262728
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmHexFileConverter_h
  11. #define cmHexFileConverter_h
  12. /** \class cmHexFileConverter
  13. * \brief Can detects Intel Hex and Motorola S-record files and convert them
  14. * to binary files.
  15. *
  16. */
  17. class cmHexFileConverter
  18. {
  19. public:
  20. enum FileType {Binary, IntelHex, MotorolaSrec};
  21. static FileType DetermineFileType(const char* inFileName);
  22. static bool TryConvert(const char* inFileName, const char* outFileName);
  23. };
  24. #endif