Euphoria
eu::io::DirPath Struct Reference

#include <vfs_path.h>

Public Member Functions

 DirPath (const std::string &p)
 
FilePath get_file (const std::string &filename) const
 
DirPath get_directory (const std::string &single) const
 
bool is_relative () const
 
bool contains_relative () const
 
DirPath get_parent_directory () const
 
std::string get_name () const
 
std::vector< std::string > split_directories () const
 

Static Public Member Functions

static DirPath from_root ()
 
static DirPath from_relative ()
 
static DirPath from_dirs (const std::vector< std::string > &dirs)
 

Public Attributes

std::string path
 contains either . or ~ at the start, / at the end More...
 

Detailed Description

Definition at line 66 of file vfs_path.h.

Constructor & Destructor Documentation

◆ DirPath()

eu::io::DirPath::DirPath ( const std::string &  p)
explicit

Definition at line 336 of file vfs_path.cc.

Member Function Documentation

◆ contains_relative()

bool eu::io::DirPath::contains_relative ( ) const

Definition at line 270 of file vfs_path.cc.

◆ from_dirs()

DirPath eu::io::DirPath::from_dirs ( const std::vector< std::string > &  dirs)
static

Definition at line 232 of file vfs_path.cc.

◆ from_relative()

DirPath eu::io::DirPath::from_relative ( )
static

Definition at line 225 of file vfs_path.cc.

◆ from_root()

DirPath eu::io::DirPath::from_root ( )
static

Definition at line 218 of file vfs_path.cc.

◆ get_directory()

DirPath eu::io::DirPath::get_directory ( const std::string &  single) const

Definition at line 329 of file vfs_path.cc.

◆ get_file()

FilePath eu::io::DirPath::get_file ( const std::string &  filename) const

Definition at line 252 of file vfs_path.cc.

◆ get_name()

std::string eu::io::DirPath::get_name ( ) const

Definition at line 300 of file vfs_path.cc.

◆ get_parent_directory()

DirPath eu::io::DirPath::get_parent_directory ( ) const

Definition at line 286 of file vfs_path.cc.

◆ is_relative()

bool eu::io::DirPath::is_relative ( ) const

Definition at line 260 of file vfs_path.cc.

◆ split_directories()

std::vector< std::string > eu::io::DirPath::split_directories ( ) const

Definition at line 309 of file vfs_path.cc.

Member Data Documentation

◆ path

std::string eu::io::DirPath::path

contains either . or ~ at the start, / at the end

Definition at line 69 of file vfs_path.h.


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