Loading...
Searching...
No Matches
AC3DsurfaceFormatCore Class Reference

Internal class used by the AC3DsurfaceFormat. More...

#include <AC3DsurfaceFormatCore.H>

Inheritance diagram for AC3DsurfaceFormatCore:

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.

Detailed Description

Internal class used by the AC3DsurfaceFormat.

Source files

Definition at line 51 of file AC3DsurfaceFormatCore.H.

Member Function Documentation

◆ parse()

template<class Type>
Type parse ( const string & str)
inlinestaticprotected

Read a type from string.

Definition at line 61 of file AC3DsurfaceFormatCore.H.

Referenced by AC3DsurfaceFormat< Face >::read().

Here is the caller graph for this function:

◆ 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 44 of file AC3DsurfaceFormatCore.C.

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

Referenced by AC3DsurfaceFormat< Face >::read().

Here is the call graph for this function:
Here is the caller 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 71 of file AC3DsurfaceFormatCore.C.

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

Referenced by cueToOrDie(), and AC3DsurfaceFormat< Face >::read().

Here is the call graph for this function:
Here is the caller 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 97 of file AC3DsurfaceFormatCore.C.

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

Referenced by AC3DsurfaceFormat< Face >::read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeHeader()

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

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

Here is the call graph for this function:
Here is the caller graph for this function:

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