Internal class used by the AC3DsurfaceFormat. More...
#include <AC3DsurfaceFormatCore.H>

Static Protected Member Functions | |
| template<class Type> | |
| static Type | parse (const string &str) |
| Read a type from string. | |
| static bool | readCmd (IFstream &is, string &cmd, string &args) |
| Read cmd, args from IFstream. | |
| static bool | cueTo (IFstream &, const string &cmd, string &args) |
| Read up to a line starting with cmd. Sets args to rest of line. | |
| static string | cueToOrDie (IFstream &, const string &cmd, const string &errorMsg=string::null) |
| Like cueTo(), but FatalError if not found. | |
| static void | writeHeader (Ostream &os, const UList< surfZone > &zones) |
| Write header with materials for each zone. | |
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.
Referenced by AC3DsurfaceFormat< Face >::read().

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 44 of file AC3DsurfaceFormatCore.C.
References args, ISstream::getLine(), and IOstream::good().
Referenced by AC3DsurfaceFormat< Face >::read().


Read up to a line starting with cmd. Sets args to rest of line.
Definition at line 71 of file AC3DsurfaceFormatCore.C.
References args, ISstream::getLine(), and IOstream::good().
Referenced by cueToOrDie(), and AC3DsurfaceFormat< Face >::read().


|
staticprotected |
Like cueTo(), but FatalError if not found.
Definition at line 97 of file AC3DsurfaceFormatCore.C.
References args, cueTo(), Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
Referenced by AC3DsurfaceFormat< Face >::read().


Write header with materials for each zone.
Definition at line 117 of file AC3DsurfaceFormatCore.C.
References colourMap, Foam::endl(), forAll, Foam::nl, os(), and UList< T >::size().
Referenced by AC3DsurfaceFormat< Face >::write(), and AC3DsurfaceFormat< Face >::write().

