procfetch  0.3.0
A command-line system information utility written in C++
Public Member Functions | Static Public Member Functions | List of all members
Path Class Reference

#include <fetch.h>

Public Member Functions

Path getFilename ()
 
bool isRegularFile ()
 
bool isExecutable ()
 
bool isDirectory ()
 
string toString () const
 
vector< PathgetDirectoryContents ()
 

Static Public Member Functions

static Path of (const string &path)
 

Detailed Description

A Path represents a path.

Member Function Documentation

◆ getDirectoryContents()

vector<Path> Path::getDirectoryContents ( )
inline
Returns
a vector containing absolute paths to contents at the given path

◆ getFilename()

Path Path::getFilename ( )
inline
Returns
the filename of the path.

◆ isDirectory()

bool Path::isDirectory ( )
inline
Returns
exists and is a directory

◆ isExecutable()

bool Path::isExecutable ( )
inline
Returns
exists and is a executable(or searchable)

◆ isRegularFile()

bool Path::isRegularFile ( )
inline
Returns
exists and is a regular file

◆ of()

static Path Path::of ( const string &  path)
inlinestatic
Returns
Path object
Parameters
path

◆ toString()

string Path::toString ( ) const
inline
Returns
readable reprsentation for dev.

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