cnstream_version.hpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*************************************************************************
  2. * Copyright (C) [2019] by Cambricon, Inc. All rights reserved
  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. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * The above copyright notice and this permission notice shall be included in
  11. * all copies or substantial portions of the Software.
  12. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  13. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  14. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  15. * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  16. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  17. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  18. * THE SOFTWARE.
  19. *************************************************************************/
  20. #ifndef CNSTREAM_VERSION_HPP_
  21. #define CNSTREAM_VERSION_HPP_
  22. /**
  23. * @file cnstream_version.hpp
  24. *
  25. * This file contains a declaration of CNStream versions.
  26. */
  27. #define CNSTREAM_MAJOR_VERSION 6
  28. #define CNSTREAM_MINOR_VERSION 1
  29. #define CNSTREAM_PATCH_VERSION 0
  30. namespace cnstream {
  31. // Group:Framework Function
  32. /**
  33. * Gets the CNStream version string.
  34. *
  35. * @return Returns the version string formatted as "v%major.%minor.%patch".
  36. * e.g. "v3.5.1".
  37. */
  38. const char* VersionString();
  39. // Group:Framework Function
  40. /**
  41. * Gets the CNStream major version.
  42. *
  43. * @return Returns the major version, [0, MAXINT].
  44. */
  45. const int MajorVersion();
  46. // Group:Framework Function
  47. /**
  48. * Gets the CNStream minor version.
  49. *
  50. * @return Returns the minor version, [0, MAXINT].
  51. */
  52. const int MinorVersion();
  53. // Group:Framework Function
  54. /**
  55. * Gets the CNStream patch version.
  56. *
  57. * @return Returns the patch version, [0, MAXINT].
  58. */
  59. const int PatchVersion();
  60. } // namespace cnstream
  61. #endif // CNSTREAM_VERSION_HPP_