VisioMove-Sample  2.1.3
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Pages
VgMyRemoteMapManager Class Reference

Public Member Functions

 VgMyRemoteMapManager (VgApplication::VgIApplication *pVgApplication, const VgMyRemoteMapManagerConfig &pConfig, const std::string &pLocalMapsDirectory, const std::string &pLocalTemporaryDirectory)
 Handles downloading of maps from VisioMapServer (and VisioMapEditor) More...
 
virtual ~VgMyRemoteMapManager ()
 
bool list ()
 Starts a list request. More...
 
bool downloadMap (unsigned int pMapID)
 start downloading a remote map. More...
 
bool getLocalConfigPathForMap (unsigned int pMapID, std::string &pOutConfigPath)
 
bool removeLocalMap (unsigned pMapID)
 
bool removeLocalMaps ()
 

Protected Attributes

VgMyRemoteMapManagerImpl * mPrivate
 

Constructor & Destructor Documentation

VgMyRemoteMapManager::VgMyRemoteMapManager ( VgApplication::VgIApplication *  pVgApplication,
const VgMyRemoteMapManagerConfig pConfig,
const std::string &  pLocalMapsDirectory,
const std::string &  pLocalTemporaryDirectory 
)

Handles downloading of maps from VisioMapServer (and VisioMapEditor)

Parameters
pVgApplicationVgIApplication. Used to determine internal paths, and license information.
pConfigremote map manager configuration.
pLocalMapsDirectorylocal Directory where the maps will be downloaded.
pLocalTemporaryDirectorylocal temporary directory where the remote .zip file will be downloaded.
virtual VgMyRemoteMapManager::~VgMyRemoteMapManager ( )
virtual

Member Function Documentation

bool VgMyRemoteMapManager::downloadMap ( unsigned int  pMapID)

start downloading a remote map.

Remarks
only one map can be downloaded at a time.
Parameters
pMapIDmap id to download
Returns
true if the request has been queued.
bool VgMyRemoteMapManager::getLocalConfigPathForMap ( unsigned int  pMapID,
std::string &  pOutConfigPath 
)
Parameters
pMapIDmap id of the relevant map.
pOutConfigPathoutput parameter that will contain the vg_config path for a given map id.
Returns
true if the path exists and pOutConfigPath was filled.
bool VgMyRemoteMapManager::list ( )

Starts a list request.

Returns
false, if there is a network activity already in progress
bool VgMyRemoteMapManager::removeLocalMap ( unsigned  pMapID)
bool VgMyRemoteMapManager::removeLocalMaps ( )

Member Data Documentation

VgMyRemoteMapManagerImpl* VgMyRemoteMapManager::mPrivate
protected

The documentation for this class was generated from the following file:
VisioMove 2.1.3, Visioglobe® 2015