enumfiledef : make_filename

Create a filename out of the path and name we are given. We use the path inside here and the extension on the end.

Any other method of any other object can call this method. This is called 'public' access.

The data-type returned is "pathtype"; The path to the file specified.

This method is contained in the object "enumfiledef".

The method takes the following arguments:

path : pathtype

Not sure.

fname : stringtype

Not sure.

C++

The files "boost/filesystem/fstream.hpp" are included.

Create a filename using the filepath. We always normalize our paths to remove any wierd .. sequences.

	boost::filesystem::path filename;
	if (path.empty() || _filepath.is_complete())
		filename = _filepath;
	else
		filename = path / _filepath;
	filename /= std::string(fname + _extension);
	filename.normalize();
	return filename;

Generated: Wed Apr 5 23:54:27 EST 2006 using "xsltproc ... docbook.xsl". Copyright (c) 2003, 2004, 2005; Paul Hamilton; pHamtec P/L. Use, modification, and distribution is provided free of any limitations.