VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
makVrf::DtOverlayShapeFileLoadHandler Class Reference

The DtOverlayShapeFileLoadHandler class is the interface to be used when loading a shape file and having the contents either created locally (if not part of a scenario) or in the scenario as published objects. More...

Inheritance diagram for makVrf::DtOverlayShapeFileLoadHandler:
Inheritance graph
[legend]

Public Types

typedef std::map< std::string,
std::pair< DtDataFileReader
*, makVrv::DtUnicode > > 
Drivers

Public Member Functions

 DtOverlayShapeFileLoadHandler (makVrv::DtDe &de)
 CTOR.
virtual ~DtOverlayShapeFileLoadHandler ()
 DTOR.
virtual void setDefaultDriver (const std::string &)
 Sets the default driver to show when loading data files. This is the extension of the file. Default is shp.
virtual const std::string & defaultDriver () const
virtual bool importShapeFileOntoOverlay (const std::string &shapefile, const std::string &overlay, bool keepLocal=false)
 Imports the shapefile to the specified overlay.
virtual const DtFilename & importFrom () const
 Directory name to import from.
virtual DtDataFileReaderreaderBasedOnFilename (const std::string &) const
 Returns the reader based on the filename. Use the register method to register filenames that are not part of the default.
virtual void addDriver (const std::string &extension, DtDataFileReader *, const makVrv::DtUnicode &displayString)
 Routines to add driver based on filename.
const Driversdrivers () const
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

static
DtOverlayShapeFileLoadHandler
instance (makVrv::DtDe &de)
static void registerInstance (makVrv::DtDe &de, DtOverlayShapeFileLoadHandler *)

Protected Attributes

makVrv::DtDemyDe
DtFilename myImportFromDirectory
Drivers myDrivers
std::string myDefaultDriver

Detailed Description

The DtOverlayShapeFileLoadHandler class is the interface to be used when loading a shape file and having the contents either created locally (if not part of a scenario) or in the scenario as published objects.

It will load road, area and point features

Member Typedef Documentation

Constructor & Destructor Documentation

makVrf::DtOverlayShapeFileLoadHandler::DtOverlayShapeFileLoadHandler ( makVrv::DtDe de)

CTOR.

virtual makVrf::DtOverlayShapeFileLoadHandler::~DtOverlayShapeFileLoadHandler ( )
virtual

DTOR.

Member Function Documentation

static DtOverlayShapeFileLoadHandler& makVrf::DtOverlayShapeFileLoadHandler::instance ( makVrv::DtDe de)
static
static void makVrf::DtOverlayShapeFileLoadHandler::registerInstance ( makVrv::DtDe de,
DtOverlayShapeFileLoadHandler  
)
static
virtual void makVrf::DtOverlayShapeFileLoadHandler::setDefaultDriver ( const std::string &  )
virtual

Sets the default driver to show when loading data files. This is the extension of the file. Default is shp.

virtual const std::string& makVrf::DtOverlayShapeFileLoadHandler::defaultDriver ( ) const
virtual
virtual bool makVrf::DtOverlayShapeFileLoadHandler::importShapeFileOntoOverlay ( const std::string &  shapefile,
const std::string &  overlay,
bool  keepLocal = false 
)
virtual

Imports the shapefile to the specified overlay.

If no overlay is given the name of the file will be used as the overlay. If keepLocal is true will always keep local, even if there is a back-end

virtual const DtFilename& makVrf::DtOverlayShapeFileLoadHandler::importFrom ( ) const
virtual

Directory name to import from.

When importing from a shapefile this will be set to that directory

virtual DtDataFileReader* makVrf::DtOverlayShapeFileLoadHandler::readerBasedOnFilename ( const std::string &  ) const
virtual

Returns the reader based on the filename. Use the register method to register filenames that are not part of the default.

virtual void makVrf::DtOverlayShapeFileLoadHandler::addDriver ( const std::string &  extension,
DtDataFileReader ,
const makVrv::DtUnicode displayString 
)
virtual

Routines to add driver based on filename.

const Drivers& makVrf::DtOverlayShapeFileLoadHandler::drivers ( ) const
inline

Member Data Documentation

makVrv::DtDe& makVrf::DtOverlayShapeFileLoadHandler::myDe
protected
DtFilename makVrf::DtOverlayShapeFileLoadHandler::myImportFromDirectory
protected
Drivers makVrf::DtOverlayShapeFileLoadHandler::myDrivers
protected
std::string makVrf::DtOverlayShapeFileLoadHandler::myDefaultDriver
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)