AC3DsurfaceFormatCore Class Reference

Internal class used by the AC3DsurfaceFormat. More...

Inheritance diagram for AC3DsurfaceFormatCore:

Static Protected Member Functions

template<class Type >
static Type parse (const string &)
 Read a type via IStringStream. More...
 
static bool readCmd (IFstream &, string &cmd, string &args)
 Read cmd, args from IFstream. More...
 
static bool cueTo (IFstream &, const string &cmd, string &args)
 Cue up to cmd, reading args. More...
 
static string cueToOrDie (IFstream &, const string &cmd, const string &errorMsg=string::null)
 Cue up to cmd, reading args or exit with a FatalError. More...
 
static void writeHeader (Ostream &, const UList< surfZone > &)
 Write header with materials. More...
 

Detailed Description

Internal class used by the AC3DsurfaceFormat.

Source files

Definition at line 53 of file AC3DsurfaceFormatCore.H.

Member Function Documentation

◆ parse()

Type parse ( const string s)
staticprotected

Read a type via IStringStream.

Definition at line 32 of file AC3DsurfaceFormatCoreTemplates.C.

◆ readCmd()

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

Read cmd, args from IFstream.

Definition at line 34 of file AC3DsurfaceFormatCore.C.

References AC3DsurfaceFormatCore::cueTo(), ISstream::getLine(), and IOstream::good().

Here is the call graph for this function:

◆ cueTo()

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

Cue up to cmd, reading args.

Definition at line 62 of file AC3DsurfaceFormatCore.C.

References AC3DsurfaceFormatCore::cueToOrDie(), ISstream::getLine(), and IOstream::good().

Referenced by AC3DsurfaceFormatCore::readCmd().

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

Cue up to cmd, reading args or exit with a FatalError.

returns the command args

Definition at line 91 of file AC3DsurfaceFormatCore.C.

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

Referenced by AC3DsurfaceFormatCore::cueTo().

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

◆ writeHeader()

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

Write header with materials.

Definition at line 111 of file AC3DsurfaceFormatCore.C.

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

Referenced by AC3DsurfaceFormatCore::cueToOrDie().

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: