31static std::vector<Alien::IVectorConverter*>* vector_converter_db =
nullptr;
40using namespace Arccore;
47 if (!vector_converter_db)
48 vector_converter_db =
new std::vector<IVectorConverter*>();
49 vector_converter_db->push_back(func());
58 if (!vector_converter_db) {
59 throw FatalErrorException(A_FUNCINFO,
"There is no converter registered");
62 for (std::vector<IVectorConverter*>::const_iterator i = vector_converter_db->begin();
63 i != vector_converter_db->end(); ++i) {
VectorConverterRegisterer.h.
virtual BackEndId targetBackend() const =0
Get the target backend id.
virtual BackEndId sourceBackend() const =0
Get the source backend id.
static IVectorConverter * getConverter(BackEndId from, BackEndId to)
Get the converter from one vector format to another one.
VectorConverterRegisterer(ConverterCreateFunc func)
Creates a vector converter registerer.
IVectorConverter *(* ConverterCreateFunc)()
Type of the vector converter function.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --