summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/Visitor.h
blob: 3f365a67ef00c7eddaf6330965c05c90364e910f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Visitor.h
 *
 *  Created on: Dec 17, 2012
 *      Author: att
 */

#ifndef VISITOR_H_
#define VISITOR_H_
#include <string>

class Visitable;

class Visitor {
public:
	Visitor();
	virtual void visit(Visitable * node) = 0;
	virtual ~Visitor();
};

class Visitable
{
public:
	std::string type;
	Visitable();
	virtual void accept(Visitor * visitor) = 0;
	virtual ~Visitable();

};





#endif /* VISITOR_H_ */