![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Serialization helpers. More...
#include <ecvSerializableObject.h>
Static Public Member Functions | |
| static short | GenericArrayToFileMinVersion () |
| Returns the minimum file version to save/load a 'generic array'. More... | |
| static void | CoordsFromDataStream (QDataStream &stream, int flags, PointCoordinateType *out, unsigned count=1) |
| static void | ScalarsFromDataStream (QDataStream &stream, int flags, ScalarType *out, unsigned count=1) |
| template<class Type , int N, class ComponentType > | |
| static bool | GenericArrayToFile (const std::vector< Type > &data, QFile &out) |
| Helper: saves a vector to file. More... | |
| template<class Type , int N, class ComponentType > | |
| static bool | GenericArrayFromFile (std::vector< Type > &data, QFile &in, short dataVersion, const QString &verboseDescription) |
| Helper: loads a vector structure from file. More... | |
| template<class Type , int N, class ComponentType , class FileComponentType > | |
| static bool | GenericArrayFromTypedFile (std::vector< Type > &data, QFile &in, short dataVersion, const QString &verboseDescription, FileComponentType *_autoOffset=nullptr) |
Static Protected Member Functions | |
| static bool | ReadArrayHeader (QFile &in, short dataVersion, ::uint8_t &componentCount, ::uint32_t &elementCount) |
Serialization helpers.
Definition at line 120 of file ecvSerializableObject.h.
|
inlinestatic |
Reads one or several 'PointCoordinateType' values from a QDataStream either in float or double format depending on the 'flag' value
Definition at line 127 of file ecvSerializableObject.h.
Referenced by define_ccSerializationHelper().
|
inlinestatic |
Helper: loads a vector structure from file.
| data | vector to load |
| in | input file (must be already opened) |
| dataVersion | version current data version |
Definition at line 219 of file ecvSerializableObject.h.
|
inlinestatic |
Helper: loads a vector structure from a file stored with a different type
| data | vector to load |
| in | input file (must be already opened) |
| dataVersion | version current data version |
Definition at line 278 of file ecvSerializableObject.h.
|
inlinestatic |
Helper: saves a vector to file.
| data | vector to save (must be allocated) |
| out | output file (must be already opened) |
Definition at line 173 of file ecvSerializableObject.h.
|
inlinestatic |
Returns the minimum file version to save/load a 'generic array'.
Definition at line 123 of file ecvSerializableObject.h.
Referenced by ccArray< Type, N, ComponentType >::minimumFileVersion_MeOnly().
|
inlinestaticprotected |
Definition at line 358 of file ecvSerializableObject.h.
|
inlinestatic |
Reads one or several 'ScalarType' values from a QDataStream either in float or double format depending on the 'flag' value
Definition at line 148 of file ecvSerializableObject.h.
Referenced by define_ccSerializationHelper().