AC3DsurfaceFormatCore Class Reference

Internal class used by the AC3DsurfaceFormat. More...

Inheritance diagram for AC3DsurfaceFormatCore:
[legend]

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...
 

Detailed Description

Internal class used by the AC3DsurfaceFormat.

Source files

Definition at line 55 of file AC3DsurfaceFormatCore.H.

Member Function Documentation

◆ parse()

static Type parse ( const string str)
inlinestaticprotected

Read a type from string.

Definition at line 63 of file AC3DsurfaceFormatCore.H.

◆ readCmd()

bool readCmd ( IFstream is,
string cmd,
string args 
)
staticprotected

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).

Returns
if the command was read

Definition at line 52 of file AC3DsurfaceFormatCore.C.

References args, ISstream::getLine(), and IOstream::good().

Here is the call graph for this function:

◆ cueTo()

bool cueTo ( IFstream is,
const string cmd,
string args 
)
staticprotected

Read up to a line starting with cmd. Sets args to rest of line.

Returns
true if found, false if stream is not good anymore.

Definition at line 79 of file AC3DsurfaceFormatCore.C.

References args, ISstream::getLine(), and IOstream::good().

Here is the call graph for this function:

◆ cueToOrDie()

Foam::string cueToOrDie ( IFstream is,
const string cmd,
const string errorMsg = string::null 
)
staticprotected

Like cueTo(), but FatalError if not found.

Returns
the command args on success

Definition at line 105 of file AC3DsurfaceFormatCore.C.

References args, Foam::exit(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ writeHeader()

void writeHeader ( Ostream os,
const UList< surfZone > &  zones 
)
staticprotected

Write header with materials for each zone.

Definition at line 125 of file AC3DsurfaceFormatCore.C.

References colourMap, Foam::endl(), forAll, Foam::nl, os(), and UList< T >::size().

Here is the call graph for this function:

The documentation for this class was generated from the following files: