Bash++
Bash++ compiler internal documentation
bpp_dynamic_cast_statement.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_string.h"
13
14namespace bpp {
15
28 private:
29 std::string cast_to;
30 public:
31 void set_cast_to(const std::string& cast_to);
32 std::string get_cast_to() const;
33};
34
48
49} // namespace bpp
A dynamic_cast statement in Bash++.
Definition bpp_dynamic_cast_statement.h:27
void set_cast_to(const std::string &cast_to)
Definition bpp_dynamic_cast_statement.cpp:11
std::string get_cast_to() const
Definition bpp_dynamic_cast_statement.cpp:15
std::string cast_to
Definition bpp_dynamic_cast_statement.h:29
The target of a dynamic_cast in Bash++.
Definition bpp_dynamic_cast_statement.h:47
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