vsg
1.1.0
VulkanSceneGraph library
|
#include <BinaryOutput.h>
Public Member Functions | |
BinaryOutput (std::ostream &output, ref_ptr< const Options > in_options={}) | |
void | writePropertyName (const char *) override |
write property name is a non op for binary | |
void | writeEndOfLine () override |
write end of line is a non op for binary | |
template<typename T > | |
void | _write (size_t num, const T *value) |
void | write (size_t num, const int8_t *value) override |
write contiguous array of value(s) | |
void | write (size_t num, const uint8_t *value) override |
void | write (size_t num, const int16_t *value) override |
void | write (size_t num, const uint16_t *value) override |
void | write (size_t num, const int32_t *value) override |
void | write (size_t num, const uint32_t *value) override |
void | write (size_t num, const int64_t *value) override |
void | write (size_t num, const uint64_t *value) override |
void | write (size_t num, const float *value) override |
void | write (size_t num, const double *value) override |
void | _write (const std::string &str) |
void | _write (const std::wstring &str) |
void | write (size_t num, const std::string *value) override |
void | write (size_t num, const std::wstring *value) override |
void | write (size_t num, const Path *value) override |
void | write (const vsg::Object *object) override |
write object | |
Public Member Functions inherited from vsg::Output | |
Output (ref_ptr< const Options > in_options={}) | |
Output & | operator= (const Output &rhs)=delete |
void | write (size_t num, const char *value) |
map char to int8_t | |
void | write (size_t num, const bool *value) |
void | write (size_t num, const vec2 *value) |
void | write (size_t num, const vec3 *value) |
void | write (size_t num, const vec4 *value) |
void | write (size_t num, const dvec2 *value) |
void | write (size_t num, const dvec3 *value) |
void | write (size_t num, const dvec4 *value) |
void | write (size_t num, const bvec2 *value) |
void | write (size_t num, const bvec3 *value) |
void | write (size_t num, const bvec4 *value) |
void | write (size_t num, const ubvec2 *value) |
void | write (size_t num, const ubvec3 *value) |
void | write (size_t num, const ubvec4 *value) |
void | write (size_t num, const svec2 *value) |
void | write (size_t num, const svec3 *value) |
void | write (size_t num, const svec4 *value) |
void | write (size_t num, const usvec2 *value) |
void | write (size_t num, const usvec3 *value) |
void | write (size_t num, const usvec4 *value) |
void | write (size_t num, const ivec2 *value) |
void | write (size_t num, const ivec3 *value) |
void | write (size_t num, const ivec4 *value) |
void | write (size_t num, const uivec2 *value) |
void | write (size_t num, const uivec3 *value) |
void | write (size_t num, const uivec4 *value) |
void | write (size_t num, const quat *value) |
void | write (size_t num, const dquat *value) |
void | write (size_t num, const mat3 *value) |
void | write (size_t num, const dmat3 *value) |
void | write (size_t num, const mat4 *value) |
void | write (size_t num, const dmat4 *value) |
void | write (size_t num, const sphere *value) |
void | write (size_t num, const dsphere *value) |
void | write (size_t num, const box *value) |
void | write (size_t num, const dbox *value) |
void | write (size_t num, const plane *value) |
void | write (size_t num, const dplane *value) |
template<typename T > | |
void | write (size_t num, const T *value) |
template<typename T > | |
void | write (const char *propertyName, const ref_ptr< T > &object) |
template<typename T > | |
void | writeObjects (const char *propertyName, const T &values) |
template<typename T > | |
void | writeValues (const char *propertyName, const std::vector< T > &values) |
template<typename T > | |
void | writeValues (const char *propertyName, const std::set< T > &values) |
template<typename... Args> | |
void | write (const char *propertyName, Args &... args) |
match propertyname and write value(s) | |
void | writeObject (const char *propertyName, const Object *object) |
template<typename W , typename T > | |
void | writeValue (const char *propertyName, T value) |
write a value casting it to specified type i.e. output.write<uint32_t>("Value", value); | |
virtual bool | version_less (uint32_t major, uint32_t minor, uint32_t patch, uint32_t soversion=0) const |
virtual bool | version_greater_equal (uint32_t major, uint32_t minor, uint32_t patch, uint32_t soversion=0) const |
Protected Attributes | |
std::ostream & | _output |
Additional Inherited Members | |
Public Types inherited from vsg::Output | |
using | ObjectID = uint32_t |
using | ObjectIDMap = std::unordered_map< const vsg::Object *, ObjectID > |
Public Attributes inherited from vsg::Output | |
ObjectID | objectID = 1 |
ObjectIDMap | objectIDMap |
ref_ptr< const Options > | options |
VsgVersion | version |
vsg::Output subclass that implements writing objects as binary data to an output stream. Used by VSG ReaderWriter when writing objects to native .vsgb binary files.