00001 /* 00002 * elementdoccontainers.h 00003 * Digest 00004 * 00005 * Created by Aidan Lane on Thu Jun 10 2005. 00006 * Copyright (c) 2005 Optimisation and Constraint Solving Group, 00007 * Monash University. All rights reserved. 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00022 */ 00023 00024 #ifndef ELEMENTDOCCONTAINERS_H 00025 #define ELEMENTDOCCONTAINERS_H 00026 00027 00028 class AbstractElement; 00029 class AbstractElementAttribute; 00030 00031 00032 typedef QList<AbstractElement> AbstractElementList; 00033 typedef QListIterator<AbstractElement> AbstractElementListIterator; 00034 00035 00036 00037 class AbstractElementContainer { 00038 00039 public: 00040 AbstractElementContainer( AbstractElement* element ) 00041 : m_element(element) {} 00042 00043 AbstractElement* element() const { return m_element; } 00044 00045 private: 00046 AbstractElement* m_element; 00047 }; 00048 00049 00050 00051 class AbstractElementAttributeContainer { 00052 00053 public: 00054 AbstractElementAttributeContainer( AbstractElementAttribute* attribute ) 00055 : m_attribute(attribute) {} 00056 00057 AbstractElementAttribute* attribute() const { return m_attribute; } 00058 00059 private: 00060 AbstractElementAttribute* m_attribute; 00061 }; 00062 00063 00064 00065 #endif // ! ELEMENTDOCCONTAINERS_H
1.5.2