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)
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label)
Override size to be inconsistent with allocated storage.
virtual void writePartHeader(const label partI)
Abstract base class for writing Ensight data.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
iterator begin()
Return an iterator to begin traversing the UList.
virtual void write(const char *val)
virtual bool ascii() const
volScalarField sf(fieldObject, mesh)
virtual ~ensightBinaryStream()
Destructor.