27 #include "../../../../maptools/AbstractLayer.h"
28 #include "../../../../maptools/DataSetLayer.h"
29 #include "../../../../maptools/DataSetAdapterLayer.h"
30 #include "../../../../maptools/FolderLayer.h"
31 #include "../../../../maptools/QueryLayer.h"
32 #include "../../../../maptools/RasterLayer.h"
41 #include <boost/functional/factory.hpp>
42 #include <boost/bind.hpp>
53 if(!sm_factories.empty())
56 sm_factories[
"DATASETLAYER"] = boost::bind(boost::factory<DataSetLayerItem*>(),_1, _2);
57 sm_factories[
"DATASETADAPTERLAYER"] = boost::bind(boost::factory<DataSetAdapterLayerItem*>(),_1, _2);
58 sm_factories[
"QUERYLAYER"] = boost::bind(boost::factory<QueryLayerItem*>(),_1, _2);
59 sm_factories[
"FOLDERLAYER"] = boost::bind(boost::factory<FolderLayerItem*>(),_1, _2);
60 sm_factories[
"RASTERLAYER"] = boost::bind(boost::factory<RasterLayerItem*>(),_1, _2);
The class that represents a dataset adapter layer item in a LayerTreeModel.
The class that represents a folder layer item in a LayerTreeModel.
The class that represents a dataset layer item in a LayerTreeModel.
A class for building layer items.
The class that represents a raster layer item in a LayerTreeModel.
The class that represents a query layer item in a LayerTreeModel.