55 template<
class T>
class List;
77 inline void stripInvalid();
116 inline fileName(
const std::string&);
131 inline static bool valid(
char);
217 wordList
components(
const char delimiter=
'/')
const;
static bool valid(char)
Is this character valid for a fileName?
A class for handling file names.
fileName()
Construct null.
friend Istream & operator>>(Istream &, fileName &)
bool clean()
Cleanup file name.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Type type() const
Return the file type: FILE, DIRECTORY or UNDEFINED.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static const fileName null
An empty fileName.
dimensionedScalar operator/(const scalar s1, const dimensionedScalar &ds2)
static const char *const typeName
string caseName() const
Return file name (part beyond last /), subsitute for FOAM_CASE.
friend Ostream & operator<<(Ostream &, const fileName &)
word name() const
Return file name (part beyond last /)
A class for handling words, derived from string.
Istream & operator>>(Istream &, directionInfo &)
wordList components(const char delimiter='/') const
Return path components as wordList.
word component(const size_type, const char delimiter='/') const
Return a single component of the path.
graph_traits< Graph >::vertices_size_type size_type
bool isAbsolute() const
Return true if file name is absolute.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
fileName & toAbsolute()
Convert from relative to absolute.
fileName lessExt() const
Return file name without extension (part before last .)
List< word > wordList
A List of words.
Ostream & operator<<(Ostream &, const ensightPart &)
word ext() const
Return file name extension (part after last .)
fileName search(const word &file, const fileName &directory)
Recursively search the given directory for the file.
fileName path() const
Return directory path name (part before last /)
A class for handling character strings derived from std::string.
void operator=(const fileName &)
Type
Enumerations to handle file types and modes.