You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
4.8 KiB

  1. /* /////////////////////////////////////////////////////////////////////////
  2. * File: pantheios/internal/stock_levels.hpp
  3. *
  4. * Purpose: Custom level class.
  5. *
  6. * Created: 22nd July 2006
  7. * Updated: 10th August 2009
  8. *
  9. * Home: http://www.pantheios.org/
  10. *
  11. * Copyright (c) 2006-2009, Matthew Wilson and Synesis Software
  12. * All rights reserved.
  13. *
  14. * Redistribution and use in source and binary forms, with or without
  15. * modification, are permitted provided that the following conditions are
  16. * met:
  17. *
  18. * - Redistributions of source code must retain the above copyright notice,
  19. * this list of conditions and the following disclaimer.
  20. * - Redistributions in binary form must reproduce the above copyright
  21. * notice, this list of conditions and the following disclaimer in the
  22. * documentation and/or other materials provided with the distribution.
  23. * - Neither the name(s) of Matthew Wilson and Synesis Software nor the
  24. * names of any contributors may be used to endorse or promote products
  25. * derived from this software without specific prior written permission.
  26. *
  27. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  28. * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  29. * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  30. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  31. * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  32. * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  33. * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  34. * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  35. * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  36. * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  37. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  38. *
  39. * ////////////////////////////////////////////////////////////////////// */
  40. /** \file pantheios/internal/stock_levels.hpp
  41. *
  42. * [C, C++] INTERNAL FILE: Defines the stock severity level pseudo-constants
  43. * debug, informational, notice, warning, error, critical, alert,
  44. * and
  45. * emergency.
  46. */
  47. #ifndef PANTHEIOS_INCLUDING_STOCKLEVELS
  48. # error This file may only be included from within the Pantheios main C header file.
  49. #endif /* !PANTHEIOS_INCLUDING_STOCKLEVELS */
  50. #ifndef PANTHEIOS_INCL_PANTHEIOS_INTERNAL_HPP_STOCK_LEVELS
  51. #define PANTHEIOS_INCL_PANTHEIOS_INTERNAL_HPP_STOCK_LEVELS
  52. /* /////////////////////////////////////////////////////////////////////////
  53. * Namespace
  54. */
  55. #if !defined(PANTHEIOS_NO_NAMESPACE)
  56. } /* namespace pantheios */
  57. #endif /* !PANTHEIOS_NO_NAMESPACE */
  58. /* /////////////////////////////////////////////////////////////////////////
  59. * Includes
  60. */
  61. #ifndef PANTHEIOS_INCL_PANTHEIOS_SEVERITY_HPP_LEVELS
  62. # include <pantheios/severity/levels.hpp>
  63. #endif /* !PANTHEIOS_INCL_PANTHEIOS_SEVERITY_HPP_LEVELS */
  64. /* /////////////////////////////////////////////////////////////////////////
  65. * Namespace
  66. */
  67. #if !defined(PANTHEIOS_NO_NAMESPACE)
  68. namespace pantheios
  69. {
  70. #endif /* !PANTHEIOS_NO_NAMESPACE */
  71. /* /////////////////////////////////////////////////////////////////////////
  72. * Constants
  73. */
  74. #ifndef PANTHEIOS_DOCUMENTATION_SKIP_SECTION
  75. namespace
  76. {
  77. #endif /* !PANTHEIOS_DOCUMENTATION_SKIP_SECTION */
  78. /** Instance of \link pantheios::level level\endlink that holds the SEV_DEBUG value. */
  79. static /* const */ level<SEV_DEBUG> debug;
  80. /** Instance of \link pantheios::level level\endlink that holds the SEV_INFORMATIONAL value. */
  81. static /* const */ level<SEV_INFORMATIONAL> informational;
  82. /** Instance of \link pantheios::level level\endlink that holds the SEV_NOTICE value. */
  83. static /* const */ level<SEV_NOTICE> notice;
  84. /** Instance of \link pantheios::level level\endlink that holds the SEV_WARNING value. */
  85. static /* const */ level<SEV_WARNING> warning;
  86. /** Instance of \link pantheios::level level\endlink that holds the SEV_ERROR value. */
  87. static /* const */ level<SEV_ERROR> error;
  88. /** Instance of \link pantheios::level level\endlink that holds the SEV_CRITICAL value. */
  89. static /* const */ level<SEV_CRITICAL> critical;
  90. /** Instance of \link pantheios::level level\endlink that holds the SEV_ALERT value. */
  91. static /* const */ level<SEV_ALERT> alert;
  92. /** Instance of \link pantheios::level level\endlink that holds the SEV_EMERGENCY value. */
  93. static /* const */ level<SEV_EMERGENCY> emergency;
  94. #ifndef PANTHEIOS_DOCUMENTATION_SKIP_SECTION
  95. } // anonymous namespace
  96. #endif /* !PANTHEIOS_DOCUMENTATION_SKIP_SECTION */
  97. /* ////////////////////////////////////////////////////////////////////// */
  98. #endif /* !PANTHEIOS_INCL_PANTHEIOS_INTERNAL_HPP_STOCK_LEVELS */
  99. /* ///////////////////////////// end of file //////////////////////////// */