Internal class used by the AC3DsurfaceFormat. More...
Static Protected Member Functions | |
template<class Type > | |
static Type | parse (const string &str) |
Read a type from string. More... | |
static bool | readCmd (IFstream &is, string &cmd, string &args) |
Read cmd, args from IFstream. More... | |
static bool | cueTo (IFstream &, const string &cmd, string &args) |
Read up to a line starting with cmd. Sets args to rest of line. More... | |
static string | cueToOrDie (IFstream &, const string &cmd, const string &errorMsg=string::null) |
Like cueTo(), but FatalError if not found. More... | |
static void | writeHeader (Ostream &os, const UList< surfZone > &zones) |
Write header with materials for each zone. More... | |
Internal class used by the AC3DsurfaceFormat.
Definition at line 51 of file AC3DsurfaceFormatCore.H.
|
inlinestaticprotected |
Read a type from string.
Definition at line 61 of file AC3DsurfaceFormatCore.H.
Read cmd, args from IFstream.
The cmd is the content up to the first space, args is the balance of the line (after the space).
Definition at line 45 of file AC3DsurfaceFormatCore.C.
References args, ISstream::getLine(), and IOstream::good().
Read up to a line starting with cmd. Sets args to rest of line.
Definition at line 72 of file AC3DsurfaceFormatCore.C.
References args, ISstream::getLine(), and IOstream::good().
|
staticprotected |
Like cueTo(), but FatalError if not found.
Definition at line 98 of file AC3DsurfaceFormatCore.C.
References args, Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
Write header with materials for each zone.
Definition at line 118 of file AC3DsurfaceFormatCore.C.
References colourMap, Foam::endl(), forAll, Foam::nl, os(), and UList< T >::size().