V-ART
Static Public Member Functions | List of all members
VART::File Class Reference

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)
 

Detailed Description

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.

Definition at line 16 of file file.h.

Member Function Documentation

std::string VART::File::GetPathFromString ( const std::string &  fileName)
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().


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