Allolib  1.0
C++ Components For Interactive Multimedia
al::FilePath Class Reference

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/io/al_File.hpp>

Public Member Functions

 FilePath (const std::string &file, const std::string &path)
 
 FilePath (const std::string &fullpath)
 
const std::string & file () const
 Get file name without directory.
 
const std::string & path () const
 Get path (directory) of file.
 
std::string filepath () const
 Get file with directory.
 
bool valid () const
 Returns whether file part is valid.
 
FilePathfile (const std::string &v)
 Set file name without directory.
 
FilePathpath (const std::string &v)
 Set path (directory) of file.
 

Protected Attributes

std::string mPath
 
std::string mFile
 

Detailed Description

A pair of path (folder/directory) and file name

Definition at line 81 of file al_File.hpp.

Constructor & Destructor Documentation

◆ FilePath() [1/2]

al::FilePath::FilePath ( const std::string &  file,
const std::string &  path 
)
Parameters
[in]fileFile name without directory
[in]pathDirectory of file

◆ FilePath() [2/2]

al::FilePath::FilePath ( const std::string &  fullpath)
explicit
Parameters
[in]fullpathFull path to file (directory + file name)

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