2 * ElementHolder.h - TaskJuggler
4 * Copyright (c) 2007 by Andreas Scherer <andreas_hacker@freenet.de>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of version 2 of the GNU General Public License as
8 * published by the Free Software Foundation.
13 #ifndef _ElementHolder_h_
14 #define _ElementHolder_h_
16 #include "ReportElement.h"
21 * @short Stores the common "m_element" data member.
22 * @author Andreas Scherer <andreas_hacker@freenet.de>
30 virtual ~ElementHolder() { }
32 void setTable(ReportElement* element)
34 m_element.reset(element);
37 ReportElement* getTable() const
39 return m_element.get();
43 std::auto_ptr<ReportElement> m_element;