34 #ifndef ensightBinaryStream_H
35 #define ensightBinaryStream_H
71 ios_base::out | ios_base::binary | ios_base::trunc
87 virtual bool ascii()
const
92 virtual void write(
const char* val)
94 char buffer[80] = {0};
96 str_().write(buffer, 80*
sizeof(
char));
99 virtual void write(
const int val)
101 str_().write(
reinterpret_cast<const char*
>(&val),
sizeof(
int));
112 temp[i] = float(
sf[i]);
117 reinterpret_cast<const char*
>(temp.
begin()),
118 sf.size()*
sizeof(
float)
127 reinterpret_cast<const char*
>(
sf.begin()),
128 sf.size()*
sizeof(
int)
#define forAll(list, i)
Loop across all elements in list.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
iterator begin()
Return an iterator to begin traversing the UList.
ensightBinaryStream(const fileName &f, const Time &)
Construct from components.
virtual bool ascii() const
void operator=(const ensightBinaryStream &)=delete
Disallow default bitwise assignment.
virtual void write(const char *val)
virtual ~ensightBinaryStream()
Destructor.
virtual void writePartHeader(const label partI)
Abstract base class for writing Ensight data.
A class for handling file names.
volScalarField sf(fieldObject, mesh)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.