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
void size(const label n)
Older name for setAddressableSize.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
ISstream & getLine(std::string &str, char delim='\n')
Raw, low-level getline (until delimiter) into a string.
OBJstream os(runTime.globalPath()/outputName)
Input from file stream, using an ISstream.
bool good() const noexcept
True if next operation might succeed.
Foam::argList args(argc, argv)
A class for handling character strings derived from std::string.