Go to the documentation of this file.
34 #ifndef ensightBinaryStream_H
35 #define ensightBinaryStream_H
80 ios_base::out | ios_base::binary | ios_base::trunc
93 virtual bool ascii()
const
98 virtual void write(
const char* val)
100 char buffer[80] = {0};
102 str_().write(buffer, 80*
sizeof(
char));
105 virtual void write(
const int val)
107 str_().write(
reinterpret_cast<const char*
>(&val),
sizeof(
int));
118 temp[i] = float(
sf[i]);
123 reinterpret_cast<const char*
>(temp.begin()),
124 sf.size()*
sizeof(
float)
133 reinterpret_cast<const char*
>(
sf.begin()),
134 sf.size()*
sizeof(
int)
Abstract base class for writing Ensight data.
virtual ~ensightBinaryStream()
Destructor.
virtual void write(const int val)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual void write(const List< int > &sf)
void operator=(const ensightBinaryStream &)
Disallow default bitwise assignment.
A class for handling file names.
#define forAll(list, i)
Loop across all elements in list.
virtual void writePartHeader(const label partI)
ensightBinaryStream(const fileName &f, const Time &)
Construct from components.
virtual void write(const char *val)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
autoPtr< std::ofstream > str_
Description of data_.
volScalarField sf(fieldObject, mesh)
virtual bool ascii() const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
ensightBinaryStream(const ensightBinaryStream &)
Disallow default bitwise copy construct.
virtual void write(const scalarField &sf)