/***************************************************************************

    supportware
    Copyright (C) 2001-2008 by c.holzheuer
    c.holzheuer@sourceworx.org

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

***************************************************************************/


#ifndef DDITEMFACTORY_H
#define DDITEMFACTORY_H

#include <dditemsysval.h>
#include <dditemtrval.h>
#include <ddaccessmanager.h>

class ddconfigsection;
class dditemtree;
class dditemset;
class dddioinfo;

/// dditemfactory: eine Factory für items
/**

*/

class dditemfactory : public ddbaseobject
{

public: 
	
	dditemfactory();
	virtual ~dditemfactory();

	ddaccessmanager&  get_access_manager();
	dditem*           create_item( dditemset& itemset, ddstringrow& row, bool& is_section );
	dditem*           config_item( ddstringrow& row, dditem* item );

protected:

	dditemptrmap     _items;
	ddaccessmanager  _accessmanager;
 
};

#endif
