3 #define GAUDI_PLUGIN_SERVICE_V2
14 static Registry& cxxreg = Registry::instance();
19 const Registry::FactoryMap& fmap =
static_cast<const Registry*
>(
self.registry )->factories();
20 return int( fmap.size() );
24 const Registry* reg =
static_cast<const Registry*
>(
self.registry );
25 const auto& factories = reg->factories();
26 if ( n >=
static_cast<int>( factories.size() ) )
return {
self,
nullptr};
27 return {
self, next( begin( factories ), n )->first.c_str()};
31 Registry& reg = Registry::instance();
32 return reg.getInfo(
self.
id ).library.c_str();
36 Registry& reg = Registry::instance();
37 static std::string cache;
38 cache =
demangle( reg.getInfo(
self.id ).factory.type() );
43 Registry& reg = Registry::instance();
44 static std::string cache;
45 cache = reg.getInfo(
self.
id ).getprop(
"ClassName" );
50 Registry& reg = Registry::instance();
51 const Registry::FactoryInfo& fi = reg.getInfo(
self.
id );
52 return int( fi.properties.size() );
57 Registry& reg = Registry::instance();
58 const Registry::FactoryInfo& fi = reg.getInfo( cprop.id );
59 if ( n <
static_cast<int>( fi.properties.size() ) ) cprop.key = next( begin( fi.properties ), n )->first.c_str();
66 Registry& reg = Registry::instance();
67 const Registry::FactoryInfo& fi = reg.getInfo(
self.
id );
68 auto prop = fi.properties.find(
self.
key );
69 return prop != fi.properties.end() ? prop->second.c_str() :
nullptr;