Pothos  0.7.0-gf7fbae99
The Pothos dataflow programming software suite
Public Member Functions | List of all members
Pothos::Archive::ArchiveEntryT< T > Struct Template Reference

#include <ArchiveEntry.hpp>

Inheritance diagram for Pothos::Archive::ArchiveEntryT< T >:
Inheritance graph
[legend]

Public Member Functions

 ArchiveEntryT (const std::string &id)
 
void save (OStreamArchiver &ar, const void *t) const
 Save a pointer to the archive in a derived class. More...
 
void * load (IStreamArchiver &ar) const
 Load a pointer from the archive in a derived class. More...
 
- Public Member Functions inherited from Pothos::Archive::ArchiveEntry
 ArchiveEntry (const std::type_info &type, const std::string &id)
 Create and register an entry given the type and unique ID. More...
 
virtual ~ArchiveEntry (void)
 Virtual destructor for derived type classes. More...
 
const std::string & getId (void) const
 Get the associated unique ID. More...
 
const unsigned long long & getHash (void) const
 Get a reproducible hash for this entry. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Pothos::Archive::ArchiveEntry
static const ArchiveEntryfind (const std::type_info &type)
 Lookup the entry given the type info or throw if not found. More...
 
static const ArchiveEntryfind (const std::string &id)
 Lookup the entry given the unique id or throw if not found. More...
 
static const ArchiveEntryfind (const unsigned long long &hash)
 Lookup the entry given the the id hash or throw if not found. More...
 

Detailed Description

template<typename T>
struct Pothos::Archive::ArchiveEntryT< T >

Archive entry for specific types. When instantiated, the library can save, create, and load this type.

Constructor & Destructor Documentation

◆ ArchiveEntryT()

template<typename T >
Pothos::Archive::ArchiveEntryT< T >::ArchiveEntryT ( const std::string &  id)

Member Function Documentation

◆ load()

template<typename T >
void * Pothos::Archive::ArchiveEntryT< T >::load ( IStreamArchiver ar) const
virtual

Load a pointer from the archive in a derived class.

Implements Pothos::Archive::ArchiveEntry.

◆ save()

template<typename T >
void Pothos::Archive::ArchiveEntryT< T >::save ( OStreamArchiver ar,
const void *  t 
) const
virtual

Save a pointer to the archive in a derived class.

Implements Pothos::Archive::ArchiveEntry.


The documentation for this struct was generated from the following file: