V-ART
|
A File is a system indepentend representation for methods that work with files. More...
#include <file.h>
Static Public Member Functions | |
static std::string | GetPathFromString (const std::string &fileName) |
A File is a system indepentend representation for methods that work with files.
The File class is a representation of a independent file system methods and attributes.
|
static |
Returns the path to the directory that contains a file. Given a string that represents a path to a file, returns a string that represents a path to the directory that contains that file, by removing from fileName the name of the file. This method is used to read xml files or WaveFront .obj files from a directory different from the current. Note that in Linux systems, the character slash ('/') represents a directory separator. Otherwise, in Windows systems is used the character back slash ('\') for that.
Definition at line 9 of file file.cpp.
Referenced by VART::XmlScene::LoadFromFile(), VART::MeshObject::ReadFromOBJ(), and VART::MeshObject::ReadMaterialTable().