Go to the documentation of this file.
63 const auto space =
line.find(
' ');
65 if (space && space != string::npos)
67 cmd =
line.substr(0, space);
90 const auto space =
line.find(
' ');
92 if (space && space != string::npos && cmd ==
line.substr(0, space))
108 const string& errorMsg
112 if (!cueTo(is, cmd,
args))
115 <<
"Cannot find command " << cmd
139 const label colourI = zonei % 8;
140 const label colourCompI = 3 * colourI;
142 os <<
"MATERIAL \"" << zones[zonei].name() <<
"Mat\" rgb "
145 <<
" amb 0.2 0.2 0.2 emis 0 0 0 spec 0.5 0.5 0.5 shi 10"
150 os <<
"OBJECT world" <<
nl
ISstream & getLine(std::string &str, char delim='\n')
Raw, low-level getline (until delimiter) into a string.
Input from file stream, using an ISstream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A class for handling character strings derived from std::string.
#define forAll(list, i)
Loop across all elements in list.
bool good() const noexcept
True if next operation might succeed.
OBJstream os(runTime.globalPath()/outputName)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void size(const label n)
Older name for setAddressableSize.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Foam::argList args(argc, argv)