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