You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
416 B
C++
18 lines
416 B
C++
#pragma once
|
|
#include <iostream>
|
|
|
|
#include "ifaces/INode.h"
|
|
|
|
class BaseNode : public virtual INode {
|
|
public:
|
|
BaseNode(std::string name) : name_(std::move(name)) {
|
|
std::cout << "--- Base constructor called for: " << name_ << "\n";
|
|
}
|
|
const std::string& name() const override { return name_; }
|
|
~BaseNode() {
|
|
std::cout << "--- Base destructor called for: " << name_ << "\n";
|
|
}
|
|
protected:
|
|
std::string name_;
|
|
};
|