Views
Maps Package API Reference Guide
Product Documentation:
Views Documentation Home
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)
 Initializes a new data path resolver to find files in a 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::IlvDefaultDataPathResolver ( const char *  directory)

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

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

Member Function Documentation

◆ resolvePath()

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 0 if this resolver cannot resolve the path. If a non-null value is returned, it must be freed using the delete [] operator.

Implements IlvMapDataPathResolver.