neuray Services API Programmer's Manual

mi::nservices::IPath_remapper Class Reference

[Commands]

Description

This class is used to map relative paths passed in as arguments to commands to absolute paths on the local filesystem.

Public Member Functions

virtual IStringget_absolute_path( const char* path) const =0
Converts path to an absolute path. More...

Member Functions

virtual IString* mi::​nservices::​IPath_remapper::get_absolute_path( const char* path) const [pure virtual]

Converts path to an absolute path. Returns NULL if

  • path is NULL.

  • access to path is not permitted. The command should not attempt to use it.

Otherwise an absolute path is returned. If path is a URI that does not use the 'file' scheme then it is simply returned unmodified.

Note:

There are no checks whether path identifies an existing file, or whether that file is readable. The filename is simply converted to be absolute.

Parameters

path
the path to convert

Returns

the absolute path or NULL