PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::FilePath Class Reference

#include <FilePath.h>

Public Member Functions

 FilePath (std::string s="")
 
const std::string string ()
 
fs::path & path ()
 
bool operator== (const std::string &s) const
 
bool operator!= (const std::string &s) const
 
bool is_path ()
 
std::vector< std::string > & extensions ()
 
void add_extension (const std::string ext)
 
void set_as_path (bool b)
 
void set_path (std::string s)
 

Private Attributes

bool _is_path = false
 
fs::path fs_path
 
std::vector< std::string > exts
 

Detailed Description

Definition at line 7 of file FilePath.h.

Constructor & Destructor Documentation

◆ FilePath()

dyno::FilePath::FilePath ( std::string s = "")
inline

Definition at line 10 of file FilePath.h.

Member Function Documentation

◆ add_extension()

void dyno::FilePath::add_extension ( const std::string ext)
inline

Definition at line 31 of file FilePath.h.

◆ extensions()

std::vector< std::string > & dyno::FilePath::extensions ( )
inline

Definition at line 29 of file FilePath.h.

◆ is_path()

bool dyno::FilePath::is_path ( )
inline

Definition at line 27 of file FilePath.h.

◆ operator!=()

bool dyno::FilePath::operator!= ( const std::string & s) const
inline

Definition at line 23 of file FilePath.h.

◆ operator==()

bool dyno::FilePath::operator== ( const std::string & s) const
inline

Definition at line 19 of file FilePath.h.

◆ path()

fs::path & dyno::FilePath::path ( )
inline

Definition at line 17 of file FilePath.h.

Here is the caller graph for this function:

◆ set_as_path()

void dyno::FilePath::set_as_path ( bool b)
inline

Definition at line 33 of file FilePath.h.

◆ set_path()

void dyno::FilePath::set_path ( std::string s)
inline

Definition at line 35 of file FilePath.h.

◆ string()

const std::string dyno::FilePath::string ( )
inline

Definition at line 16 of file FilePath.h.

Here is the caller graph for this function:

Member Data Documentation

◆ _is_path

bool dyno::FilePath::_is_path = false
private

Definition at line 38 of file FilePath.h.

◆ exts

std::vector<std::string> dyno::FilePath::exts
private

Definition at line 41 of file FilePath.h.

◆ fs_path

fs::path dyno::FilePath::fs_path
private

Definition at line 40 of file FilePath.h.


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