]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/quickbook/src/state_save.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / tools / quickbook / src / state_save.hpp
1 /*=============================================================================
2 Copyright (c) 2002 2004 2006 Joel de Guzman
3 Copyright (c) 2004 Eric Niebler
4 Copyright (c) 2011 Daniel James
5
6 Use, modification and distribution is subject to the Boost Software
7 License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
8 http://www.boost.org/LICENSE_1_0.txt)
9 =============================================================================*/
10 #if !defined(BOOST_SPIRIT_ACTIONS_STATE_HPP)
11 #define BOOST_SPIRIT_ACTIONS_STATE_HPP
12
13 #include "state.hpp"
14
15 namespace quickbook
16 {
17 // State savers
18 //
19 // Defined in state.cpp
20
21 struct state_save
22 {
23 enum scope_flags {
24 scope_none = 0,
25 scope_macros = 1,
26 scope_templates = 2,
27 scope_output = 4,
28 scope_callables = scope_macros + scope_templates,
29 scope_all = scope_callables + scope_output
30 };
31
32 explicit state_save(quickbook::state&, scope_flags);
33 ~state_save();
34
35 quickbook::state& state;
36 scope_flags scope;
37 unsigned qbk_version;
38 bool imported;
39 std::string doc_type;
40 file_ptr current_file;
41 quickbook_path current_path;
42 fs::path xinclude_base;
43 source_mode_info source_mode;
44 string_symbols macro;
45 int template_depth;
46 int min_section_level;
47 private:
48 state_save(state_save const&);
49 state_save& operator=(state_save const&);
50 };
51 }
52
53 #endif // BOOST_SPIRIT_ACTIONS_STATE_HPP