The class fc::Local is used to encapsulate local directories or files.
More...
#include <FCPath.hpp>
The class fc::Local is used to encapsulate local directories or files.
◆ ~Local()
◆ Local()
| fc::Local::Local |
( |
const std::string & |
n | ) |
|
|
explicit |
◆ setDefaultDir()
| void fc::Local::setDefaultDir |
( |
const std::string & |
dir | ) |
const |
|
virtual |
◆ defaultDir()
| const std::string & fc::Local::defaultDir |
( |
| ) |
const |
|
virtual |
◆ separator()
| const std::string & fc::Local::separator |
( |
| ) |
const |
|
virtual |
◆ operator+()
| fc::Local fc::Local::operator+ |
( |
const std::string & |
name | ) |
const |
|
virtual |
◆ empty()
| virtual bool fc::Name::empty |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ c_str()
| virtual const char* fc::Name::c_str |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ operator const char *()
| virtual fc::Name::operator const char * |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ operator const std::string &()
| virtual fc::Name::operator const std::string & |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ str()
| virtual const std::string& fc::Name::str |
( |
| ) |
const |
|
inlinevirtualinherited |
References fc::Name::create_temporary_filename(), fc::Name::defaultDir(), fc::Name::filename(), fc::Name::findSeparator(), fc::Name::full(), fc::Name::isAbsolute(), fc::Name::isRelative(), fc::Name::name(), fc::Name::operator+=(), fc::Name::parentDir(), fc::Name::separator(), fc::Name::setDefaultDir(), and fc::Name::simplify().
◆ simplify() [1/2]
Attempt to simplify the path by removing double slashes and things like "../".
References fc::Name::explicitName.
◆ simplify() [2/2]
| std::string fc::Name::simplify |
( |
std::string & |
path | ) |
|
|
staticinherited |
Attempt to simplify the path by removing double slashes and things like "../".
◆ operator+=()
| fc::Name & fc::Name::operator+= |
( |
const std::string & |
rhs | ) |
|
|
virtualinherited |
◆ isAbsolute()
| bool fc::Name::isAbsolute |
( |
| ) |
const |
|
virtualinherited |
◆ isRelative()
| bool fc::Name::isRelative |
( |
| ) |
const |
|
virtualinherited |
◆ name()
| const std::string & fc::Name::name |
( |
| ) |
const |
|
virtualinherited |
The original name specified when this object was first instantiated.
You probably want to use full() instead.
References fc::Name::explicitName.
◆ create_temporary_filename()
| std::string fc::Name::create_temporary_filename |
( |
const fc::Options & |
options | ) |
const |
|
virtualinherited |
◆ parentDir()
| const std::string & fc::Name::parentDir |
( |
| ) |
const |
|
virtualinherited |
Get the parent directory if known, or a blank string if unknown.
The directory name (if not empty) will always be terminated with / or \. For example:
| Original Name | parentDir() |
| test.txt | |
| ../test.txt | ../ |
| /tmp/foo/bar/name.txt | /tmp/foo/bar/ |
| /testing/123/ | /testing/ |
| / | / |
References fc::Name::full(), fc::Name::parentDirectory, and fc::Name::separator().
◆ filename()
| const std::string & fc::Name::filename |
( |
| ) |
const |
|
virtualinherited |
◆ full()
| const std::string & fc::Name::full |
( |
| ) |
const |
|
virtualinherited |
◆ findSeparator()
| std::string fc::Name::findSeparator |
( |
| ) |
const |
|
protectedinherited |
◆ clearCache()
|
|
protectedvirtualinherited |
◆ defaultLocalDirectory
| std::string fc::Local::defaultLocalDirectory |
|
staticprotected |
◆ defaultLocalSeparator
| std::string fc::Local::defaultLocalSeparator |
|
staticprotected |
◆ explicitName
| std::string fc::Name::explicitName |
|
protectedinherited |
The name used when the object was instantiated.
◆ fileName
| std::string fc::Name::fileName |
|
mutableprotectedinherited |
the last component from full()
◆ parentDirectory
| std::string fc::Name::parentDirectory |
|
mutableprotectedinherited |
the parent directory including the terminating slash
◆ fullDirAndName
| std::string fc::Name::fullDirAndName |
|
mutableprotectedinherited |
the name combined with the default directory
The documentation for this class was generated from the following files: