37#ifndef ensightSurfaceReader_H
38#define ensightSurfaceReader_H
143 const string& buffer,
152 const label fieldIndex
187 const label fieldIndex,
195 const label fieldIndex,
203 const label fieldIndex,
211 const label fieldIndex,
219 const label fieldIndex,
Input/output from string buffers.
Input from file stream, using an ISstream.
streamFormat
Data format (ascii | binary)
Input from string buffer, using a ISstream. Always UNCOMPRESSED.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An ordered pair of two objects of type <T> with first() and second() elements.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Ensight output with specialized read() for strings, integers and floats. Correctly handles binary rea...
Ensight format surface reader.
void debugSection(const word &expected, IFstream &is) const
Read and check a section header.
void skip(const label n, Istream &is) const
Helper function to skip forward n steps in stream.
static fileName replaceMask(const fileName &fName, const label timeIndex)
Replace the '*' mask chars with a 0 padded string.
virtual instantList times() const
Return a list of the available times.
Pair< idTypes > readGeometryHeader(ensightReadFile &is) const
Read (and discard) geometry file header.
label timeIncrement_
Time increment.
instantList timeValues_
Times.
IOstreamOption::streamFormat streamFormat_
Format flag.
idTypes
Handling of node/element id types (off, assign, ignore, given)
@ GIVEN
Use "given" values (not supported)
@ IGNORE
Read but "ignore".
label nTimeSteps_
Number of time steps.
void readCase(IFstream &is)
Read the case file.
fileName baseDir_
Base directory.
List< word > fieldNames_
Field names.
autoPtr< meshedSurface > surfPtr_
Pointer to the surface.
TypeName("ensight")
Runtime type information.
void readFromLine(const label nSkip, IStringStream &is, Type &value) const
Helper function to return Type after skipping n tokens.
tmp< Field< Type > > readField(const label timeIndex, const label fieldIndex) const
Helper function to return a field.
void readLine(IFstream &is, string &buffer) const
Helper function to read an ascii line from file.
virtual const meshedSurface & geometry(const label timeIndex)
Return a reference to the surface geometry.
label timeStartIndex_
Start time index.
List< Tuple2< string, label > > schema_
virtual ~ensightSurfaceReader()=default
Destructor.
List< string > fieldFileNames_
Field file names.
fileName meshFileName_
Name of mesh file, including any subdirectory.
virtual wordList fieldNames(const label timeIndex) const
Return a list of the available fields at a given time.
A class for handling file names.
Base class for surface readers.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
A non-counting (dummy) refCount.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.