arma_version.hpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
  2. // Copyright 2008-2016 National ICT Australia (NICTA)
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // ------------------------------------------------------------------------
  15. //! \addtogroup arma_version
  16. //! @{
  17. #define ARMA_VERSION_MAJOR 9
  18. #define ARMA_VERSION_MINOR 900
  19. #define ARMA_VERSION_PATCH 6
  20. #define ARMA_VERSION_NAME "Nocturnal Misbehaviour"
  21. struct arma_version
  22. {
  23. static const unsigned int major = ARMA_VERSION_MAJOR;
  24. static const unsigned int minor = ARMA_VERSION_MINOR;
  25. static const unsigned int patch = ARMA_VERSION_PATCH;
  26. static
  27. inline
  28. std::string
  29. as_string()
  30. {
  31. const char* nickname = ARMA_VERSION_NAME;
  32. std::ostringstream ss;
  33. ss << arma_version::major
  34. << '.'
  35. << arma_version::minor
  36. << '.'
  37. << arma_version::patch
  38. << " ("
  39. << nickname
  40. << ')';
  41. return ss.str();
  42. }
  43. };
  44. //! @}