| 1 |
// AbstractData.h |
| 2 |
// Acts as the base Element that accepts visitors in the Visitor design pattern |
| 3 |
// |
| 4 |
// This file is part of RudeConfig. |
| 5 |
// |
| 6 |
// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood |
| 7 |
// See file AUTHORS for contact information |
| 8 |
// |
| 9 |
// RudeConfig is free software; you can redistribute it and/or modify |
| 10 |
// it under the terms of the GNU General Public License as published by |
| 11 |
// the Free Software Foundation; either version 2, or (at your option) |
| 12 |
// any later version. |
| 13 |
// |
| 14 |
// RudeConfig is distributed in the hope that it will be useful, |
| 15 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 |
// GNU General Public License for more details. |
| 18 |
// |
| 19 |
// You should have received a copy of the GNU General Public License |
| 20 |
// along with RudeConfig; (see COPYING) if not, write to the Free Software |
| 21 |
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 22 |
// 02111-1307, USA. |
| 23 |
//------------------------------------------------------------------------ |
| 24 |
|
| 25 |
#ifndef INCLUDED_AbstractData_H |
| 26 |
#define INCLUDED_AbstractData_H |
| 27 |
|
| 28 |
namespace rude{ |
| 29 |
namespace config{ |
| 30 |
|
| 31 |
class AbstractWriter; |
| 32 |
|
| 33 |
class AbstractData{ |
| 34 |
|
| 35 |
protected: |
| 36 |
AbstractData(); |
| 37 |
|
| 38 |
public: |
| 39 |
virtual ~AbstractData(); |
| 40 |
virtual void acceptWriter(AbstractWriter& writer) const = 0; |
| 41 |
|
| 42 |
|
| 43 |
}; |
| 44 |
|
| 45 |
|
| 46 |
}} // end namespaces |
| 47 |
|
| 48 |
#endif |
| 49 |
|