Bash++
Bash++ compiler internal documentation
bash_for_or_select.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 Andrew S. Rightenburg
3 * Bash++: Bash with classes
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7#pragma once
8
9#include <string>
10
11#include "bpp.h"
12#include "bpp_code_entity.h"
13
14namespace bpp {
15
26 private:
27 std::string header_pre_code;
28 std::string header_post_code;
29 std::string header_code;
30 public:
31 void set_header_pre_code(const std::string& pre_code);
32 void set_header_post_code(const std::string& post_code);
33 void set_header_code(const std::string& code);
34
35 const std::string& get_header_pre_code() const;
36 const std::string& get_header_post_code() const;
37 const std::string& get_header_code() const;
38};
39
40} // namespace bpp
A for loop or select statement in Bash++.
Definition bash_for_or_select.h:25
const std::string & get_header_post_code() const
Definition bash_for_or_select.cpp:27
void set_header_post_code(const std::string &post_code)
Definition bash_for_or_select.cpp:15
const std::string & get_header_code() const
Definition bash_for_or_select.cpp:31
std::string header_pre_code
Definition bash_for_or_select.h:27
std::string header_post_code
Definition bash_for_or_select.h:28
std::string header_code
Definition bash_for_or_select.h:29
const std::string & get_header_pre_code() const
Definition bash_for_or_select.cpp:23
void set_header_pre_code(const std::string &pre_code)
Definition bash_for_or_select.cpp:11
void set_header_code(const std::string &code)
Definition bash_for_or_select.cpp:19
An entity which can contain code.
Definition bpp_code_entity.h:35
std::shared_ptr< std::ostream > code
Definition bpp_code_entity.h:37
Definition bash_case.cpp:9