]> Creatis software - cpPlugins.git/blob - lib/mstch/state/in_section.hpp
Moved to version 1.0
[cpPlugins.git] / lib / mstch / state / in_section.hpp
1 #pragma once
2
3 #include <sstream>
4 #include <vector>
5
6 #include "render_state.hpp"
7 #include "template_type.hpp"
8
9 namespace mstch {
10
11 class in_section: public render_state {
12  public:
13   enum class type { inverted, normal };
14   in_section(type type, const token& start_token);
15   std::string render(render_context& context, const token& token) override;
16
17  private:
18   const type m_type;
19   const token& m_start_token;
20   template_type m_section;
21   int m_skipped_openings;
22 };
23
24 }