jerrym | f157933 | 2013-02-07 01:56:28 +0000 | [diff] [blame] | 1 | /*
|
| 2 | * ITableProvider.h
|
| 3 | *
|
| 4 | * Created on: Sep 22, 2012
|
| 5 | * Author: Mitchell Wills
|
| 6 | */
|
| 7 |
|
| 8 | #ifndef ITABLEPROVIDER_H_
|
| 9 | #define ITABLEPROVIDER_H_
|
| 10 |
|
| 11 |
|
| 12 | class ITableProvider;
|
| 13 |
|
| 14 | #include "tables/ITable.h"
|
| 15 |
|
| 16 |
|
| 17 | /**
|
| 18 | * A simple interface to provide tables
|
| 19 | *
|
| 20 | * @author Mitchell
|
| 21 | *
|
| 22 | */
|
| 23 | class ITableProvider {
|
| 24 | /**
|
| 25 | * Get a table by name
|
| 26 | * @param name the name of the table
|
| 27 | * @return a Table with the given name
|
| 28 | */
|
| 29 | virtual ITable* GetTable(std::string name) = 0;
|
| 30 | };
|
| 31 |
|
| 32 | #endif /* ITABLEPROVIDER_H_ */
|