79 void add_code(
const std::string&
code,
bool add_newline =
true)
override;
83 std::string
get_code()
const override;
An entity which can contain code.
Definition bpp_code_entity.h:35
std::shared_ptr< std::ostream > code
Definition bpp_code_entity.h:37
The practical difference between bpp_code_entity and bpp_string is how we handle the code buffers.
Definition bpp_string.h:77
std::string get_pre_code() const override
Return the contents of the pre-code buffer as a string.
Definition bpp_string.cpp:39
void add_code(const std::string &code, bool add_newline=true) override
Add code to the primary buffer.
Definition bpp_string.cpp:17
void add_code_to_previous_line(const std::string &code) override
Add code to the pre-code buffer.
Definition bpp_string.cpp:24
void add_code_to_next_line(const std::string &code) override
Add code to the post-code buffer.
Definition bpp_string.cpp:31
std::string get_code() const override
Return the contents of the main code buffer as a string.
Definition bpp_string.cpp:35
std::string get_post_code() const override
Return the contents of the post-code buffer as a string.
Definition bpp_string.cpp:47
Definition bash_case.cpp:9