![]() |
|
Public Types | |
enum | Type { UNDEFINED, FILE, DIRECTORY, LINK } |
Enumerations to handle file types and modes. More... | |
Public Member Functions | |
fileName () | |
Construct null. | |
fileName (const fileName &fn) | |
Construct as copy. | |
fileName (const word &w) | |
Construct as copy of word. | |
fileName (const string &s) | |
Construct as copy of string. | |
fileName (const std::string &s) | |
Construct as copy of std::string. | |
fileName (const char *) | |
Construct as copy of character array. | |
fileName (const wordList &) | |
Construct by concatonating elements of wordList separated by '/'. | |
fileName (Istream &) | |
Construct from Istream. | |
word | name () const |
Return file name (part beyond last /). | |
fileName | path () const |
Return directory path name (part before last /). | |
fileName | lessExt () const |
Return file name without extension (part before last .). | |
word | ext () const |
Return file name extension (part after last .). | |
wordList | components (const char delimiter='/') const |
Return path components as wordList. | |
word | component (const size_t, const char delimiter='/') const |
Return a component of the path. | |
Type | type () const |
Return file type. | |
void | operator= (const fileName &) |
void | operator= (const word &) |
void | operator= (const string &) |
void | operator= (const std::string &) |
void | operator= (const char *) |
Static Public Member Functions | |
bool | valid (char) |
Is this character valid for a fileName. | |
Static Public Attributes | |
int | debug |
Debug switch. | |
const fileName | null |
Null fileName. | |
Friends | |
Istream & | operator>> (Istream &, fileName &) |
Ostream & | operator<< (Ostream &, const fileName &) |
|
Enumerations to handle file types and modes.
Definition at line 78 of file fileName.H. |
|
Construct null.
Definition at line 62 of file fileNameI.H. |
|
Construct as copy.
Definition at line 67 of file fileNameI.H. |
|
Construct as copy of word.
Definition at line 72 of file fileNameI.H. References string::stripInvalid(). |
Here is the call graph for this function:
|
Construct as copy of string.
Definition at line 78 of file fileNameI.H. References string::stripInvalid(). |
Here is the call graph for this function:
|
Construct as copy of std::string.
Definition at line 86 of file fileNameI.H. References string::stripInvalid(). |
Here is the call graph for this function:
|
Construct as copy of character array.
Definition at line 94 of file fileNameI.H. References Foam::isspace(). |
Here is the call graph for this function:
|
Construct by concatonating elements of wordList separated by '/'.
|
|
Construct from Istream.
|
|
Return a component of the path.
|
|
Return path components as wordList.
|
|
Return file name extension (part after last .).
|
|
Return file name without extension (part before last .).
|
|
Return file name (part beyond last /).
|
|
|
|
|
|
|
|
|
|
|
|
Return directory path name (part before last /).
|
|
Return file type.
|
|
Is this character valid for a fileName.
Definition at line 104 of file fileNameI.H. |
|
|
|
|
|
Debug switch.
Reimplemented from string. Definition at line 87 of file fileName.H. |
|
Null fileName.
Reimplemented from string. Definition at line 90 of file fileName.H. |