1#ifndef included_AMP_Vector_VectorDataFactory
2#define included_AMP_Vector_VectorDataFactory
4#include "AMP/utils/FactoryStrategy.hpp"
16template<
class VECTORDATA>
20 return std::make_unique<VECTORDATA>( fid, manager );
32 return singletonInstance;
39 template<
class VECTORDATA>
42 FactoryStrategy<VectorData, int64_t, AMP::IO::RestartManager *>::registerFactory(
43 name, createVectorDataFromRestart<VECTORDATA> );
Class to manage reading/writing restart data.
VectorData factory class.
static VectorDataFactory & getFactory()
get a singleton instance of the factory
static void registerVectorData(const std::string &name)
Register vector data with the factory.
static std::shared_ptr< VectorData > create(int64_t fid, AMP::IO::RestartManager *manager)
Create the vector data from the restart file.
std::unique_ptr< VECTORDATA > createVectorDataFromRestart(int64_t fid, AMP::IO::RestartManager *manager)