X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Fmstch%2Fstate%2Fin_section.hpp;fp=lib%2Fmstch%2Fstate%2Fin_section.hpp;h=14ca2f7791fbf99751739fd14132b6f1a1fd14da;hb=2e142df11d6f312a2a2b5097b8da73571ed523e8;hp=0000000000000000000000000000000000000000;hpb=61b3659afe961ed248f30e26f9ca8f28fcfafddc;p=cpPlugins.git diff --git a/lib/mstch/state/in_section.hpp b/lib/mstch/state/in_section.hpp new file mode 100644 index 0000000..14ca2f7 --- /dev/null +++ b/lib/mstch/state/in_section.hpp @@ -0,0 +1,24 @@ +#pragma once + +#include +#include + +#include "render_state.hpp" +#include "template_type.hpp" + +namespace mstch { + +class in_section: public render_state { + public: + enum class type { inverted, normal }; + in_section(type type, const token& start_token); + std::string render(render_context& context, const token& token) override; + + private: + const type m_type; + const token& m_start_token; + template_type m_section; + int m_skipped_openings; +}; + +}