8 #include "fwAtomsFilter/functions.hpp" 10 #include <fwActivities/registry/Activities.hpp> 12 #include <fwAtoms/Object.hpp> 13 #include <fwAtoms/Object.hxx> 14 #include <fwAtoms/String.hpp> 16 #include <fwAtomsPatch/helper/functions.hpp> 18 #include <fwData/registry/detail.hpp> 30 namespace reg = ::fwActivities::registry;
31 reg::Activities::sptr
registry = reg::Activities::getDefault();
32 const std::vector< reg::ActivityInfo >& infos = registry->getInfos();
34 const std::string& classname = ::fwAtomsPatch::helper::getClassname(series);
37 ::fwData::registry::Type::KeyVectorType keys = objectRegistry->getFactoryKeys();
38 ::fwData::registry::Type::KeyVectorType::iterator itKey = std::find(keys.begin(), keys.end(), classname);
40 if(itKey != keys.end())
42 if(classname ==
"::fwMedData::ActivitySeries")
47 for(reg::ActivityInfo info : infos)
49 if(info.id == asId->getString())
Contains fwAtomsFilter::registry details.
FWATOMSFILTER_API bool isSeriesKnown(const std::shared_ptr< ::fwAtoms::Object > &series)
Returns true if given atom matches a defined fwMedData::Series implementations.
FWATOMS_API Base::sptr getAttribute(const std::string &key) const
Returns requested attribute if exists, empty sptr else.
Class represented a fwData::Object.
Proposes an API to filter atoms.
FactoryRegistry is a class used to store factories and create instance object with these factories...
Class represented a String.