37#ifndef Foam_gltf_sceneWriter_H
38#define Foam_gltf_sceneWriter_H
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A class for handling file names.
Wrapper for glTF scene for file output.
sceneWriter()=default
Default construct.
void operator=(const sceneWriter &)=delete
No copy assignment.
void close()
Write scene and close file.
sceneWriter(const sceneWriter &)=delete
No copy construct.
void open(const fileName &outputFile)
Flush, output and open a new file for output.
const fileName & path() const
The json file name. Empty with !valid()
bool valid() const noexcept
True if output file and scene exist.
~sceneWriter()
Destructor - calls close()
const scene & getScene() const
Const access to the scene. Error if valid() is not true!
Main class to assemble glTF components into a scene.