blob: 5acf0a2c0e1b2de85e54f8d91d01b29b05262ee3 (
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
|
#ifndef _MODULE_HPP_
#define _MODULE_HPP_
#include "booksim.hpp"
#include <string>
#include <vector>
class Module {
protected:
string _name;
string _fullname;
vector<Module *> _children;
void _AddChild( Module *child );
public:
Module( );
Module( Module *parent, const string& name );
virtual ~Module( ) {}
void SetName( Module *parent, const string& name );
void DisplayHierarchy( int level = 0 ) const;
void Error( const string& msg ) const;
void Debug( const string& msg ) const;
virtual void Display( ) const;
};
#endif
|