24 #include <antares/expressions/nodes/Leaf.h>
26 namespace Antares::Expressions::Nodes
40 explicit PortFieldNode(
const std::string& port_name,
const std::string& field_name);
58 std::string name()
const override
60 return "PortFieldNode";
64 std::string port_name_;
65 std::string field_name_;
Base class for nodes in a syntax tree.
Definition: Node.h:30
Represents a port field node in a syntax tree.
Definition: PortFieldNode.h:32
const std::string & getPortName() const
Retrieves the port name.
Definition: PortFieldNode.cpp:31
const std::string & getFieldName() const
Retrieves the field name.
Definition: PortFieldNode.cpp:36
PortFieldNode(const std::string &port_name, const std::string &field_name)
Constructs a port field node with the specified port and field names.
Definition: PortFieldNode.cpp:25