34 #ifndef Foam_vtk_base64Layer_H 35 #define Foam_vtk_base64Layer_H 58 static const char* encoding_;
66 void write(
const char*
s, std::streamsize
n);
89 virtual const char*
encoding()
const;
93 virtual bool writeSize(
const uint64_t numbytes);
95 virtual void write(
const uint8_t val);
96 virtual void write(
const label val);
97 virtual void write(
const float val);
98 virtual void write(
const double val);
101 virtual void flush();
virtual void flush()
End the encoding sequence (padding the final characters with '=')
An output filter layer to write base-64 encoded content.
virtual ~foamVtkBase64Layer()
Destructor. Closes/flushes the underlying layer.
virtual bool writeSize(const uint64_t numbytes)
Write leading size for binary output.
foamVtkBase64Layer(const foamVtkBase64Layer &)=delete
No copy construct.
Base-64 encoded output layer - normally only used indirectly by formatters.
virtual const char * encoding() const
Name for the XML append encoding ("base64").
void write(const char *s, std::streamsize n)
Write.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
virtual std::size_t encodedLength(std::size_t n) const
The encoded length for base64 encoded output.
void operator=(const foamVtkBase64Layer &)=delete
No copy assignment.