rwlogo

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
List of all members | Public Member Functions
IlvDefaultDataPathResolver Class Reference

Resolves a relative path name using a specified path. More...

#include <ilviews/maps/format/dftrslv.h>

Inheritance diagram for IlvDefaultDataPathResolver:
IlvMapDataPathResolver

Public Member Functions

 IlvDefaultDataPathResolver (const char *directory)
 Creates a new data path resolver to find files in the specified directory. More...
 
char * resolvePath (const char *filename)
 Resolves the specified relative path name. More...
 

Detailed Description

Resolves a relative path name using a specified path.

Library: ilvmaps

This default implementation of IlvMapDataPathResolver searches for a file in a directory.

Constructor & Destructor Documentation

IlvDefaultDataPathResolver::IlvDefaultDataPathResolver ( const char *  directory)

Creates a new data path resolver to find files in the specified directory.

Parameters
directoryThe absolute path of the directory in which the files are to be searched.

Member Function Documentation

char* IlvDefaultDataPathResolver::resolvePath ( const char *  filename)
virtual

Resolves the specified relative path name.

Parameters
filenameThe relative file name to resolve.
Returns
The absolute path name, or null if this resolver cannot resolve the path. If a nonnull value is returned, it must be freed using the delete[] operator.

Implements IlvMapDataPathResolver.


© Copyright 2015, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.