63 const auto space =
line.find(
' ');
67 cmd =
line.substr(0, space);
90 const auto space =
line.find(
' ');
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
Input from file stream, using an ISstream.
bool good() const noexcept
True if next operation might succeed.
ISstream & getLine(std::string &str, char delim='\n')
Raw, low-level getline (until delimiter) into a string.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
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.
A class for handling character strings derived from std::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
Foam::argList args(argc, argv)
#define forAll(list, i)
Loop across all elements in list.