aboutsummaryrefslogtreecommitdiff
path: root/oop2w6/Visitor.h
blob: 31188d37db8ed190df26aa301f77fce3a04ddf71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

class Resistor;
class Capacitor;
class Inductor;
class Visitor {
public:
	Visitor() {}
	virtual ~Visitor() {}
public:
	virtual void visit(Resistor&) {}
	virtual void visit(Capacitor&) {}
	virtual void visit(Inductor&) {}
};