1 /* 2 3 Firewall Builder 4 5 Copyright (C) 2000 NetCitadel, LLC 6 7 Author: Vadim Kurland vadim@fwbuilder.org 8 9 $Id$ 10 11 12 This program is free software which we release under the GNU General Public 13 License. You may redistribute and/or modify this program under the terms 14 of that license as published by the Free Software Foundation; either 15 version 2 of the License, or (at your option) any later version. 16 17 This program is distributed in the hope that it will be useful, 18 but WITHOUT ANY WARRANTY; without even the implied warranty of 19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 GNU General Public License for more details. 21 22 To get a copy of the GNU General Public License, write to the Free Software 23 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 25 */ 26 27 /* 28 * $Id$ 29 */ 30 31 #ifndef __LIBRARY_HH_FLAG__ 32 #define __LIBRARY_HH_FLAG__ 33 34 #include "fwbuilder/Group.h" 35 36 namespace libfwbuilder 37 { 38 39 class Library : public Group 40 { 41 protected: 42 43 public: 44 45 Library(); 46 virtual ~Library(); 47 48 DECLARE_FWOBJECT_SUBTYPE(Library); 49 50 DECLARE_DISPATCH_METHODS(Library); 51 52 virtual void fromXML (xmlNodePtr xml_parent_node) throw(FWException); 53 virtual xmlNodePtr toXML(xmlNodePtr xml_parent_node) throw(FWException); 54 55 /* 56 * verify whether given object type is approppriate as a child 57 */ 58 virtual bool validateChild(FWObject *o); 59 isPrimaryObject()60 virtual bool isPrimaryObject() const { return true; } 61 }; 62 63 } 64 65 #endif 66 67