domain.hpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // Copyright (c) 2001-2011 Hartmut Kaiser
  2. // Copyright (c) 2001-2011 Joel de Guzman
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. #if !defined(BOOST_SPIRIT_KARMA_DOMAIN_FEB_20_2007_0943AM)
  7. #define BOOST_SPIRIT_KARMA_DOMAIN_FEB_20_2007_0943AM
  8. #if defined(_MSC_VER)
  9. #pragma once
  10. #endif
  11. #include <boost/spirit/home/support/unused.hpp>
  12. #include <boost/spirit/home/support/meta_compiler.hpp>
  13. #include <boost/spirit/home/support/info.hpp>
  14. #include <boost/spirit/home/support/argument.hpp>
  15. #include <boost/spirit/home/support/context.hpp>
  16. #include <boost/preprocessor/repeat.hpp>
  17. #include <boost/preprocessor/cat.hpp>
  18. namespace boost { namespace spirit { namespace karma
  19. {
  20. // karma's domain
  21. struct domain {};
  22. // bring in some of spirit parts into spirit::karma
  23. using spirit::unused;
  24. using spirit::unused_type;
  25. using spirit::compile;
  26. using spirit::info;
  27. // You can bring these in with the using directive
  28. // without worrying about bringing in too much.
  29. namespace labels
  30. {
  31. BOOST_PP_REPEAT(SPIRIT_ARGUMENTS_LIMIT, SPIRIT_USING_ARGUMENT, _)
  32. BOOST_PP_REPEAT(SPIRIT_ATTRIBUTES_LIMIT, SPIRIT_USING_ATTRIBUTE, _)
  33. using spirit::_pass_type;
  34. using spirit::_val_type;
  35. using spirit::_a_type;
  36. using spirit::_b_type;
  37. using spirit::_c_type;
  38. using spirit::_d_type;
  39. using spirit::_e_type;
  40. using spirit::_f_type;
  41. using spirit::_g_type;
  42. using spirit::_h_type;
  43. using spirit::_i_type;
  44. using spirit::_j_type;
  45. #ifndef BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
  46. using spirit::_pass;
  47. using spirit::_val;
  48. using spirit::_a;
  49. using spirit::_b;
  50. using spirit::_c;
  51. using spirit::_d;
  52. using spirit::_e;
  53. using spirit::_f;
  54. using spirit::_g;
  55. using spirit::_h;
  56. using spirit::_i;
  57. using spirit::_j;
  58. #endif
  59. }
  60. }}}
  61. #endif