Go to the documentation of this file.
47 wrdList[1] =
"hello1";
48 wrdList[2] =
"hello2";
49 wrdList[3] =
"hello3";
50 wrdList[4] =
"hello4.hmm";
54 Info<<
"pathName = " << pathName <<
nl
55 <<
"pathName.name() = >" << pathName.
name() <<
"<\n"
56 <<
"pathName.path() = " << pathName.
path() <<
nl
57 <<
"pathName.ext() = >" << pathName.
ext() <<
"<\n"
58 <<
"pathName.name(true) = >" << pathName.
name(
true) <<
"<\n";
61 <<
"pathName.component(2) = " << pathName.
component(2) <<
nl
66 for (
label start = 0; start <= wrdList.
size(); ++start)
82 Info<<
"IOobject::fileNameComponents for " <<
path <<
nl
83 <<
" instance = " << instance <<
nl
84 <<
" local = " << local <<
nl
95 Info<<
"IOobject::fileNameComponents for " << path2 <<
nl
96 <<
" instance = " << instance <<
nl
97 <<
" local = " << local <<
nl
103 Info<<
"\n\nfindEtcFile tests:" <<
nl
107 Info<<
"This should emit a fatal error:" <<
endl;
fileName findEtcFile(const fileName &, bool mandatory=false)
Search for a file using findEtcFiles.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A class for handling words, derived from string.
A class for handling file names.
A List obtained as a section of another List.
wordList components(const char delimiter='/') const
Return path components as wordList.
fileName path() const
Return directory path name (part before last /)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name() const
Return file name (part beyond last /)
word component(const size_type, const char delimiter='/') const
Return a single component of the path.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static bool fileNameComponents(const fileName &path, fileName &instance, fileName &local, word &name)
Split path into instance, local, name components.
word ext() const
Return file name extension (part after last .)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
void size(const label)
Override size to be inconsistent with allocated storage.
word name(const complex &)
Return a string representation of a complex.