NGL
6.5
The NCCA Graphics Library
|
an abstract base clase for all serialization in NGL More...
#include <AbstractSerializer.h>
Public Types | |
enum | ACCESSMODE { READ, WRITE } |
Public Member Functions | |
AbstractSerializer (const std::string &_fname, ACCESSMODE _mode) noexcept | |
ctor, uses RAII to open the file, flag indicates if we have read or write mode More... | |
virtual | ~AbstractSerializer () noexcept |
dtor will close the file More... | |
virtual void | read (AABB &_s) noexcept=0 |
read from an AABB must be overriden in child More... | |
virtual void | write (const AABB &_s) noexcept=0 |
write from an AABB must be overriden in child More... | |
virtual void | read (BBox &_s) noexcept=0 |
read from an BBox must be overriden in child More... | |
virtual void | write (const BBox &_s) noexcept=0 |
write from an BBox must be overriden in child More... | |
virtual void | read (BezierCurve &_s) noexcept=0 |
read from an BezierCurve must be overriden in child More... | |
virtual void | write (const BezierCurve &_s) noexcept=0 |
write from an BezierCurve must be overriden in child More... | |
virtual void | read (Camera &_s) noexcept=0 |
read from an Camera must be overriden in child More... | |
virtual void | write (const Camera &_s) noexcept=0 |
write from an Camera must be overriden in child More... | |
virtual void | read (Colour &_s) noexcept=0 |
read from an Colour must be overriden in child More... | |
virtual void | write (const Colour &_s) noexcept=0 |
write from an Colour must be overriden in child More... | |
virtual void | read (Light &_s) noexcept=0 |
read from an Light must be overriden in child More... | |
virtual void | write (const Light &_s) noexcept=0 |
write from an Light must be overriden in child More... | |
virtual void | read (Mat3 &_s) noexcept=0 |
read from an Mat3 must be overriden in child More... | |
virtual void | write (const Mat3 &_s) noexcept=0 |
write from an Mat3 must be overriden in child More... | |
virtual void | read (Mat4 &_s) noexcept=0 |
read from an Mat4 must be overriden in child More... | |
virtual void | write (const Mat4 &_s) noexcept=0 |
write from an Mat4 must be overriden in child More... | |
virtual void | read (Material &_s) noexcept=0 |
read from an Material must be overriden in child More... | |
virtual void | write (const Material &_s) noexcept=0 |
write from an Material must be overriden in child More... | |
virtual void | read (PathCamera &_s) noexcept=0 |
read from an PathCamera must be overriden in child More... | |
virtual void | write (const PathCamera &_s) noexcept=0 |
write from an PathCamera must be overriden in child More... | |
virtual void | read (Plane &_s) noexcept=0 |
read from an Plane must be overriden in child More... | |
virtual void | write (const Plane &_s) noexcept=0 |
write from an Plane must be overriden in child More... | |
virtual void | read (Quaternion &_s) noexcept=0 |
read from an Quaternion must be overriden in child More... | |
virtual void | write (const Quaternion &_s) noexcept=0 |
write from an Quaternion must be overriden in child More... | |
virtual void | read (SpotLight &_s) noexcept=0 |
read from an SpotLight must be overriden in child More... | |
virtual void | write (const SpotLight &_s) noexcept=0 |
write from an SpotLight must be overriden in child More... | |
virtual void | read (Transformation &_s) noexcept=0 |
read from an Transformation must be overriden in child More... | |
virtual void | write (const Transformation &_s) noexcept=0 |
write from an Transformation must be overriden in child More... | |
virtual void | read (Vec2 &_s) noexcept=0 |
read from an Vec2 must be overriden in child More... | |
virtual void | write (const Vec2 &_s) noexcept=0 |
write from an Vec2 must be overriden in child More... | |
virtual void | read (Vec3 &_s) noexcept=0 |
read from an Vec3 must be overriden in child More... | |
virtual void | write (const Vec3 &_s) noexcept=0 |
write from an Vec3 must be overriden in child More... | |
virtual void | read (Vec4 &_s) noexcept=0 |
read from an Vec4 must be overriden in child More... | |
virtual void | write (const Vec4 &_s) noexcept=0 |
write from an Vec4 must be overriden in child More... | |
Private Member Functions | |
AbstractSerializer (const AbstractSerializer &)=delete | |
make sure we can't copy this class; More... | |
AbstractSerializer & | operator= (const AbstractSerializer &)=delete |
make sure we can't copy this class; More... | |
an abstract base clase for all serialization in NGL
XML serialization in NGL.
Definition at line 57 of file AbstractSerializer.h.
Enumerator | |
---|---|
READ | |
WRITE |
Definition at line 61 of file AbstractSerializer.h.
|
noexcept |
ctor, uses RAII to open the file, flag indicates if we have read or write mode
[in] | &_fname | the name of file to serialize |
Definition at line 7 of file AbstractSerializer.cpp.
References NGL_UNUSED.
|
virtualnoexcept |
dtor will close the file
Definition at line 13 of file AbstractSerializer.cpp.
|
privatedelete |
make sure we can't copy this class;
|
privatedelete |
make sure we can't copy this class;
read from an AABB must be overriden in child
[in,out] | _s | the element to read |
read from an BBox must be overriden in child
[in,out] | _s | the element to read |
|
pure virtualnoexcept |
read from an BezierCurve must be overriden in child
[in,out] | _s | the element to read |
read from an Camera must be overriden in child
[in,out] | _s | the element to read |
read from an Colour must be overriden in child
[in,out] | _s | the element to read |
read from an Light must be overriden in child
[in,out] | _s | the element to read |
read from an Mat3 must be overriden in child
[in,out] | _s | the element to read |
read from an Mat4 must be overriden in child
[in,out] | _s | the element to read |
|
pure virtualnoexcept |
read from an Material must be overriden in child
[in,out] | _s | the element to read |
|
pure virtualnoexcept |
read from an PathCamera must be overriden in child
[in,out] | _s | the element to read |
read from an Plane must be overriden in child
[in,out] | _s | the element to read |
|
pure virtualnoexcept |
read from an Quaternion must be overriden in child
[in,out] | _s | the element to read |
read from an SpotLight must be overriden in child
[in,out] | _s | the element to read |
|
pure virtualnoexcept |
read from an Transformation must be overriden in child
[in,out] | _s | the element to read |
read from an Vec2 must be overriden in child
[in,out] | _s | the element to read |
read from an Vec3 must be overriden in child
[in,out] | _s | the element to read |
read from an Vec4 must be overriden in child
[in,out] | _s | the element to read |
write from an AABB must be overriden in child
[in] | _s | the element to write |
write from an BBox must be overriden in child
[in] | _s | the element to write |
|
pure virtualnoexcept |
write from an BezierCurve must be overriden in child
[in] | _s | the element to write |
write from an Camera must be overriden in child
[in] | _s | the element to write |
write from an Colour must be overriden in child
[in] | _s | the element to write |
write from an Light must be overriden in child
[in] | _s | the element to write |
write from an Mat3 must be overriden in child
[in] | _s | the element to write |
write from an Mat4 must be overriden in child
[in] | _s | the element to write |
|
pure virtualnoexcept |
write from an Material must be overriden in child
[in] | _s | the element to write |
|
pure virtualnoexcept |
write from an PathCamera must be overriden in child
[in] | _s | the element to write |
write from an Plane must be overriden in child
[in] | _s | the element to write |
|
pure virtualnoexcept |
write from an Quaternion must be overriden in child
[in] | _s | the element to write |
write from an SpotLight must be overriden in child
[in] | _s | the element to write |
|
pure virtualnoexcept |
write from an Transformation must be overriden in child
[in] | _s | the element to write |
write from an Vec2 must be overriden in child
[in] | _s | the element to write |
write from an Vec3 must be overriden in child
[in] | _s | the element to write |
write from an Vec4 must be overriden in child
[in] | _s | the element to write |