35 using namespace YACS::ENGINE;
44 DEBTRACE (
"ProcCataLoader::~ProcCataLoader");
56 std::string msg=
"the file is probably not a YACS schema file";
58 std::cerr << msg << std::endl;
64 std::string msg=
"Caught a YACS exception";
66 std::cerr << msg << std::endl;
70 catch (
const std::invalid_argument& e)
75 catch (
const std::ios_base::failure&)
77 std::string msg=
"Caught an io failure exception";
78 std::cerr << msg << std::endl;
88 std::string msg=logger->
getStr();
89 std::cerr << msg << std::endl;
93 std::map<std::string,TypeCode*>& typeMap=cata->
_typeMap;
94 std::map<std::string,Node*>& nodeMap=cata->
_nodeMap;
96 std::map<std::string,ComponentDefinition*>& componentMap=cata->
_componentMap;
98 std::map<std::string,TypeCode*>::iterator it=p->
typeMap.begin();
101 typeMap[it->first]=it->second;
102 it->second->incrRef();
107 for(std::list<Node *>::iterator iter=s.begin();iter!=s.end();iter++)
113 nodeMap[(*iter)->getName()]=(*iter)->
clone(0);