VTK  9.1.0
Macros | Functions
vtkVariantBoostSerialization.h File Reference
#include "vtkSetGet.h"
#include "vtkType.h"
#include "vtkVariant.h"
#include "vtkVariantArray.h"
#include <boost/archive/binary_oarchive.hpp>
#include <boost/serialization/base_object.hpp>
#include <boost/serialization/export.hpp>
#include <boost/serialization/extended_type_info_no_rtti.hpp>
#include <boost/serialization/split_free.hpp>
Include dependency graph for vtkVariantBoostSerialization.h:

Go to the source code of this file.

Macros

#define VTK_VARIANT_SAVE(Value, Type, Function)
 
#define VTK_VARIANT_LOAD(Value, Type)
 

Functions

template<typename Archiver >
void serialize (Archiver &ar, vtkStdString &str, const unsigned int vtkNotUsed(version))
 
template<typename Archiver >
void save (Archiver &ar, const std::string &str, const unsigned int vtkNotUsed(version))
 
template<typename Archiver >
void save (Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
 
template<typename Archiver >
void load (Archiver &ar, std::string &str, const unsigned int vtkNotUsed(version))
 
template<typename Archiver >
void load (Archiver &ar, vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
 
template<typename Archiver >
void save (Archiver &ar, const vtkVariant &variant, const unsigned int vtkNotUsed(version))
 
template<typename Archiver >
void load (Archiver &ar, vtkVariant &variant, const unsigned int vtkNotUsed(version))
 
template<typename Archiver >
void save (Archiver &ar, const vtkVariantArray &c_array, const unsigned int vtkNotUsed(version))
 
template<typename Archiver >
void load (Archiver &ar, vtkVariantArray &array, const unsigned int vtkNotUsed(version))
 

Macro Definition Documentation

◆ VTK_VARIANT_SAVE

#define VTK_VARIANT_SAVE (   Value,
  Type,
  Function 
)
Value:
case Value: \
{ \
Type value = variant.Function(); \
ar& value; \
} \
return

◆ VTK_VARIANT_LOAD

#define VTK_VARIANT_LOAD (   Value,
  Type 
)
Value:
case Value: \
{ \
Type value; \
ar& value; \
variant = vtkVariant(value); \
} \
return
A atomic type representing the union of many types.
Definition: vtkVariant.h:145

Function Documentation

◆ serialize()

template<typename Archiver >
void serialize ( Archiver &  ar,
vtkStdString str,
const unsigned int   vtkNotUsedversion 
)

Definition at line 54 of file vtkVariantBoostSerialization.h.

◆ save() [1/4]

template<typename Archiver >
void save ( Archiver &  ar,
const std::string &  str,
const unsigned int   vtkNotUsedversion 
)

Definition at line 64 of file vtkVariantBoostSerialization.h.

◆ save() [2/4]

template<typename Archiver >
void save ( Archiver &  ar,
const vtkUnicodeString str,
const unsigned int   vtkNotUsedversion 
)

Definition at line 72 of file vtkVariantBoostSerialization.h.

◆ load() [1/4]

template<typename Archiver >
void load ( Archiver &  ar,
std::string &  str,
const unsigned int   vtkNotUsedversion 
)

Definition at line 79 of file vtkVariantBoostSerialization.h.

◆ load() [2/4]

template<typename Archiver >
void load ( Archiver &  ar,
vtkUnicodeString str,
const unsigned int   vtkNotUsedversion 
)

Definition at line 89 of file vtkVariantBoostSerialization.h.

◆ save() [3/4]

template<typename Archiver >
void save ( Archiver &  ar,
const vtkVariant variant,
const unsigned int   vtkNotUsedversion 
)

Definition at line 103 of file vtkVariantBoostSerialization.h.

◆ load() [3/4]

template<typename Archiver >
void load ( Archiver &  ar,
vtkVariant variant,
const unsigned int   vtkNotUsedversion 
)

Definition at line 148 of file vtkVariantBoostSerialization.h.

◆ save() [4/4]

template<typename Archiver >
void save ( Archiver &  ar,
const vtkVariantArray c_array,
const unsigned int   vtkNotUsedversion 
)

Definition at line 195 of file vtkVariantBoostSerialization.h.

◆ load() [4/4]

template<typename Archiver >
void load ( Archiver &  ar,
vtkVariantArray array,
const unsigned int   vtkNotUsedversion 
)

Definition at line 215 of file vtkVariantBoostSerialization.h.