catch_version.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Created by Phil on 13/11/2012.
  3. * Copyright 2012 Two Blue Cubes Ltd. All rights reserved.
  4. *
  5. * Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. */
  8. #ifndef TWOBLUECUBES_CATCH_VERSION_H_INCLUDED
  9. #define TWOBLUECUBES_CATCH_VERSION_H_INCLUDED
  10. #include <iosfwd>
  11. namespace Catch {
  12. // Versioning information
  13. struct Version {
  14. Version( Version const& ) = delete;
  15. Version& operator=( Version const& ) = delete;
  16. Version( unsigned int _majorVersion,
  17. unsigned int _minorVersion,
  18. unsigned int _patchNumber,
  19. char const * const _branchName,
  20. unsigned int _buildNumber );
  21. unsigned int const majorVersion;
  22. unsigned int const minorVersion;
  23. unsigned int const patchNumber;
  24. // buildNumber is only used if branchName is not null
  25. char const * const branchName;
  26. unsigned int const buildNumber;
  27. friend std::ostream& operator << ( std::ostream& os, Version const& version );
  28. };
  29. Version const& libraryVersion();
  30. }
  31. #endif // TWOBLUECUBES_CATCH_VERSION_H_INCLUDED