26 #ifndef __TERRALIB_QT_WIDGETS_LAYER_EXPLORER_INTERNAL_ABSTRACTTREEITEMFACTORY_H
27 #define __TERRALIB_QT_WIDGETS_LAYER_EXPLORER_INTERNAL_ABSTRACTTREEITEMFACTORY_H
30 #include "../../../../common/Static.h"
31 #include "../../../../maptools/AbstractLayer.h"
32 #include "../../Config.h"
39 #include <boost/function.hpp>
50 class AbstractTreeItem;
63 typedef boost::function<AbstractTreeItem* (const te::map::AbstractLayerPtr&, QObject*)>
FactoryFnctType;
67 static void initialize();
69 static void finalize();
85 #endif // __TERRALIB_QT_WIDGETS_LAYER_EXPLORER_INTERNAL_ABSTRACTTREEITEMFACTORY_H
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
boost::function< AbstractTreeItem *(const te::map::AbstractLayerPtr &, QObject *)> FactoryFnctType
static AbstractTreeItem * make(const te::map::AbstractLayerPtr &layer, QObject *parent)
The class that represents an item in a LayerTreeModel.
static std::map< std::string, FactoryFnctType > sm_factories
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
A base type for static classes.
A class for building layer items.