mstch/src/state/in_section.hpp
Daniel Sipka 244477f0a0 optimize
2015-04-13 02:15:51 +02:00

22 lines
565 B
C++

#ifndef _MSTCH_IN_SECTION_H_
#define _MSTCH_IN_SECTION_H_
#include "render_state.hpp"
#include <sstream>
namespace mstch {
namespace state {
class in_section: public render_state {
private:
const std::string section_name;
std::ostringstream section_text;
int skipped_openings;
public:
in_section(const std::string& section_name);
std::string render(
render_context& context, const token& token) override;
};
}
}
#endif //_MSTCH_IN_SECTION_H_