![]() |
Belle II Software development
|
A factory class that creates specific PersistenceManager objects. More...
#include <PersistenceManagerFactory.h>
Static Public Member Functions | |
static std::unique_ptr< PersistenceManager > | create (const std::string &storageType) |
Creates a PersistenceManager instance based on the specified storage type. | |
A factory class that creates specific PersistenceManager objects.
This factory allows clients to create different concrete PersistenceManager implementations by specifying a storage type (e.g., histogram, ntuple, etc.).
Definition at line 22 of file PersistenceManagerFactory.h.
|
static |
Creates a PersistenceManager instance based on the specified storage type.
storageType | A string indicating the type of storage (e.g., "ntuple", "histogram"). |
The exact implementation (concrete class) returned depends on the provided storageType. If the type is not recognized, this function may return a null pointer or throw an exception (depending on the implementation).
Definition at line 17 of file PersistenceManagerFactory.cc.