00001 #include "X3DComponentCreator.h"
00002
00003 using namespace X3DTK;
00004 using namespace std;
00005
00006 X3DComponentCreator::X3DComponentCreator()
00007 {
00008 }
00009
00010 X3DComponentCreator::~X3DComponentCreator()
00011 {
00012
00013 for (CreationDict::iterator it = creationDict_.begin(); it != creationDict_.end(); ++it)
00014 delete (*it).second;
00015 }
00016
00017 CreationFunction *X3DComponentCreator::getCreationFunctionOf(const SFString &name) const
00018 {
00019 CreationDict::const_iterator it = creationDict_.find(name);
00020 if (it != creationDict_.end())
00021 return (*it).second;
00022
00023 return 0;
00024 }
00025
00026 bool X3DComponentCreator::contains(const SFString &name) const
00027 {
00028 return (creationDict_.find(name) != creationDict_.end());
00029 }
00030
00031