Pothos  0.7.0-gf7fbae99
The Pothos dataflow programming software suite
Classes | Namespaces | Macros
Export.hpp File Reference
#include <Pothos/Config.hpp>
#include <Pothos/Archive/ArchiveEntry.hpp>

Go to the source code of this file.

Classes

struct  Pothos::Archive::ArchiveEntryContainer< T >
 

Namespaces

 Pothos
 
 Pothos::Archive
 

Macros

#define POTHOS_CLASS_EXPORT_GUID(T, id)
 
#define POTHOS_CLASS_EXPORT(T)   POTHOS_CLASS_EXPORT_GUID(T, #T)
 Register archival functions using the stringified type as the ID. More...
 

Detailed Description

Serialization registration macros.

Macro Definition Documentation

◆ POTHOS_CLASS_EXPORT

#define POTHOS_CLASS_EXPORT (   T)    POTHOS_CLASS_EXPORT_GUID(T, #T)

Register archival functions using the stringified type as the ID.

◆ POTHOS_CLASS_EXPORT_GUID

#define POTHOS_CLASS_EXPORT_GUID (   T,
  id 
)
Value:
namespace Pothos { namespace Archive { \
template <> struct ArchiveEntryContainer<T> { \
static const ArchiveEntry &entry; \
}; \
const ArchiveEntry &ArchiveEntryContainer<T>::entry = \
ArchiveEntryT<T>(id) ; \
}}
Definition: ArchiveEntry.hpp:20

Register archival functions for a given class. A unique name is required with the class because the typeinfo name is not consistent across platforms.