24 #include <boost/scoped_ptr.hpp>
25 #include <boost/ptr_container/ptr_map.hpp>
27 #include <tbb/mutex.h>
45 namespace MAKVRinTerra
47 class DtFeatureContext;
48 class DtFeaturesDebugger;
49 class DtUnusedFeatureTileTracker;
77 static DtFeatureSet* CreateFeatureSetFromFile(std::string file);
84 DtFeatureSet*
set, std::string attribute, std::string value);
86 static std::auto_ptr<DtFeatureSet> ConfigureAttribute(
87 std::auto_ptr<DtFeatureSet>
set, std::string attribute, std::string value);
98 virtual bool loadSrcSpecConfigFor(std::string sourceFile, std::string attribute);
107 virtual bool loadConfig(std::string configFile,
DtQuery schema);
113 virtual std::auto_ptr<DtFeatureSet> addFeatureSource(std::string file,
bool page=
true);
120 virtual std::auto_ptr<DtFeatureSet> addFeatureSource(
121 osg::ref_ptr<osgEarth::Map> map,
122 std::string earthfile=std::string(),
bool page=
true);
128 virtual std::auto_ptr<DtFeatureSet> addFeatureSource(
DtFeatureSet* fs,
bool page=
true);
133 virtual void addFeatureSource(boost::shared_ptr<DtFeatureSet> fs,
bool page=
true);
139 virtual std::auto_ptr<DtFeatureSet> addFeatureSource(
146 virtual void addFeatureSource(
147 boost::shared_ptr<DtFeatureSet> fs,
154 virtual std::auto_ptr<DtFeatureSet> addVectorNetworkFeatureSource(
163 virtual std::auto_ptr<DtFeatureSet> addFeatureSource(
174 boost::shared_ptr<DtAttributeConfigParser> parser()
const;
177 boost::shared_ptr<DtUnusedFeatureTileTracker> tracker()
const;
180 boost::shared_ptr<DtFeaturesDebugger> debugger()
const;
183 boost::shared_ptr<LoadingQueue> loadingQueue()
const;
191 virtual std::auto_ptr<DtFeatureSet> features(
const std::string& queryName)
const;
194 virtual std::auto_ptr<DtFeatureSet> allFeatures()
const;
202 typedef boost::shared_ptr<Record>
Ptr;
214 boost::shared_ptr<DtAttributeConfigParser>
myParser;
237 void shutdown(
bool block =
true);
241 std::auto_ptr<DtFeatureSet> features(
const std::string& queryName)
const;
244 std::auto_ptr<DtFeatureSet> allFeatures()
const;
248 std::auto_ptr<DtAreaFeatureSet> areas(
249 const std::string& type,
250 const boost::shared_ptr<DtVrfCallbackQueue>& = boost::shared_ptr<DtVrfCallbackQueue>());
257 std::auto_ptr<DtAreaFeatureSet> areas(
259 const boost::shared_ptr<DtVrfCallbackQueue>& = boost::shared_ptr<DtVrfCallbackQueue>());
262 std::auto_ptr<DtPathFeatureSet> paths(std::string type);
273 void cleanUpPathFinders();