xmltooling::PathResolver Class Reference

Resolves local filenames into absolute pathnames. More...

#include <xmltooling/util/PathResolver.h>

List of all members.

Public Types

enum  file_type_t {
  XMLTOOLING_LIB_FILE, XMLTOOLING_LOG_FILE, XMLTOOLING_XML_FILE, XMLTOOLING_RUN_FILE,
  XMLTOOLING_CFG_FILE
}
 Types of file resources to resolve. More...

Public Member Functions

virtual void setDefaultPackageName (const char *pkgname)
 Set the default package to use when resolving files.
virtual void setDefaultPrefix (const char *prefix)
 Set the default istallation prefix to use when resolving files.
virtual const std::string & resolve (std::string &s, file_type_t filetype, const char *pkgname=NULL, const char *prefix=NULL) const
 Changes the input filename into an absolute pathname to the same file.


Detailed Description

Resolves local filenames into absolute pathnames.

Member Enumeration Documentation

Types of file resources to resolve.


Member Function Documentation

virtual void xmltooling::PathResolver::setDefaultPackageName ( const char *  pkgname  )  [inline, virtual]

Set the default package to use when resolving files.

Parameters:
pkgname name of default package to use

virtual void xmltooling::PathResolver::setDefaultPrefix ( const char *  prefix  )  [inline, virtual]

Set the default istallation prefix to use when resolving files.

Parameters:
prefix name of default prefix to use

virtual const std::string& xmltooling::PathResolver::resolve ( std::string &  s,
file_type_t  filetype,
const char *  pkgname = NULL,
const char *  prefix = NULL 
) const [virtual]

Changes the input filename into an absolute pathname to the same file.

Parameters:
s filename to resolve
filetype type of file being resolved
pkgname application package name to use in resolving the file (or NULL for the default)
prefix installation prefix to use in resolving the file (or NULL for the default)
Returns:
a const reference to the input string


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

Generated on Wed Sep 23 19:01:20 2009 for xmltooling by  doxygen 1.5.6