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.
ensightBinaryStream(const fileName &f, const Time &)
Construct from components.
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)
void operator=(const ensightBinaryStream &)=delete
Disallow default bitwise assignment.
virtual ~ensightBinaryStream()
Destructor.