46 void add_code(
const std::string&
code,
bool add_newline =
true)
override;
48 std::string
get_code()
const override;
A sequence of bash commands connected by '&&' and '||'.
Definition bash_command_sequence.h:35
std::string joined_code
Definition bash_command_sequence.h:37
std::string get_code() const override
Return the contents of the main code buffer as a string.
Definition bash_command_sequence.cpp:105
void set_perfect_forwarding(bool enable)
Definition bash_command_sequence.cpp:109
bool perfect_forwarding
Definition bash_command_sequence.h:40
void add_connective(bool is_and)
Add a connective to the command sequence, finalizing the previously-received pipeline....
Definition bash_command_sequence.cpp:73
void join()
Definition bash_command_sequence.cpp:11
void add_code(const std::string &code, bool add_newline=true) override
Add code to the code entity.
Definition bash_command_sequence.cpp:86
std::string get_post_code() const override
Return the contents of the post-code buffer as a string.
Definition bash_command_sequence.cpp:101
bool contains_multiple_commands
Definition bash_command_sequence.h:38
std::string get_pre_code() const override
Return the contents of the pre-code buffer as a string.
Definition bash_command_sequence.cpp:97
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
Definition bash_case.cpp:9