47 if (space != string::npos)
49 cmd = line.substr(0, space);
50 args = line.substr(space+1);
75 if (space != string::npos)
77 if (line.substr(0, space) == cmd)
79 args = line.substr(space+1);
94 const string& errorMsg
98 if (!cueTo(is, cmd, args))
101 <<
"Cannot find command " << cmd
121 static scalar colourMap[] =
138 label colourI = zoneI % 8;
139 label colourCompI = 3 * colourI;
141 os <<
"MATERIAL \"" << zoneLst[zoneI].name() <<
"Mat\" rgb " 142 << colourMap[colourCompI] <<
' ' << colourMap[colourCompI+1]
143 <<
' ' << colourMap[colourCompI+2]
144 <<
" amb 0.2 0.2 0.2 emis 0 0 0 spec 0.5 0.5 0.5 shi 10" 149 os <<
"OBJECT world" << nl
150 <<
"kids " << zoneLst.
size() <<
endl;
#define forAll(list, i)
Loop across all elements in list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool good() const
Return true if next operation might succeed.
graph_traits< Graph >::vertices_size_type size_type
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(string &, const bool continuation=true)
Read line into a string.
label size() const
Return the number of elements in the UList.
Foam::argList args(argc, argv)
A class for handling character strings derived from std::string.