50 dgDEBUG(15) <<
"Delete \"" << (iter->first) <<
"\"" << std::endl;
51 Entity *entity = iter->second;
61 Entities::iterator entkey =
entityMap.find(entname);
66 "Another entity already defined with the same name. ",
67 "Entity name is <%s>.", entname.c_str());
69 dgDEBUG(10) <<
"Register entity <" << entname <<
"> in the pool."
76 Entities::iterator entkey =
entityMap.find(entname);
80 "Entity not defined yet. ",
"Entity name is <%s>.",
83 dgDEBUG(10) <<
"Deregister entity <" << entname <<
"> from the pool."
98 "Unknown entity.",
" (while calling <%s>)",
101 return *entPtr->second;
117 ptr = entPtr->second;
124 std::list<Entity *> toDelete;
128 if (entPtr->second->getClassName() ==
name)
129 toDelete.push_back(entPtr->second);
131 for (std::list<Entity *>::iterator iter = toDelete.begin();
132 iter != toDelete.end(); ++iter)
142 size_t IdxPointFound = aFileName.rfind(
".");
143 std::string tmp1 = aFileName.substr(0, IdxPointFound);
144 size_t IdxSeparatorFound = aFileName.rfind(
"/");
145 std::string GenericName;
146 if (IdxSeparatorFound != std::string::npos)
147 GenericName = tmp1.substr(IdxSeparatorFound, tmp1.length());
152 std::ofstream GraphFile(aFileName.c_str(), std::ofstream::out);
153 GraphFile <<
"/* This graph has been automatically generated. " << std::endl;
154 GraphFile <<
" */" << std::endl;
155 GraphFile <<
"digraph \"" << GenericName <<
"\" { ";
156 GraphFile <<
"\t graph [ label=\"" << GenericName
157 <<
"\" bgcolor = white rankdir=LR ]" << std::endl
158 <<
"\t node [ fontcolor = black, color = black,"
159 <<
"fillcolor = gold1, style=filled, shape=box ] ; " << std::endl;
160 GraphFile <<
"\tsubgraph cluster_Entities { " << std::endl;
162 GraphFile <<
"\t} " << std::endl;
166 Entity *ent = iter->second;
167 GraphFile <<
"\"" << ent->
getName() <<
"\""
168 <<
" [ label = \"" << ent->
getName() <<
"\" ," << std::endl
169 <<
" fontcolor = black, color = black, fillcolor=cyan,"
170 <<
" style=filled, shape=box ]" << std::endl;
174 GraphFile <<
"}" << std::endl;
182 Entity *ent = iter->second;
188 std::string &funName) {
189 const int SIZE = 128;
192 cmdparse.getline(buffer, SIZE,
'.');
193 if (!cmdparse.good())
204 std::string objname, signame;
207 "Parse error in signal name");