+ struct EntityName {
+ std::string myCurrentName; ///< default name of current feature
+ std::string myUserName; ///< user-defined name
+ bool myIsDefault; ///< \c true if the name is default
+ bool myIsDumped; ///< shows that the names of the feature are already stored
+
+ EntityName() {}
+
+ EntityName(const std::string& theCurName, const std::string& theUserName, bool theDefault)
+ : myCurrentName(theCurName),
+ myUserName(theUserName),
+ myIsDefault(theDefault),
+ myIsDumped(false)
+ {}
+ };
+
+ typedef std::map<EntityPtr, EntityName> EntityNameMap;
+ typedef std::map<std::string, std::set<std::string> > ModulesMap;
+ typedef std::map<DocumentPtr, std::map<std::string, int> > NbFeaturesMap;
+
+ struct LastDumpedEntity {
+ EntityPtr myEntity; ///< last dumped entity
+ bool myUserName; ///< the entity hase user-defined name
+ /// results of this entity, which has user-defined names or specific colors
+ std::list<ResultPtr> myResults;
+
+ LastDumpedEntity(EntityPtr theEntity, bool theUserName,
+ const std::list<ResultPtr>& theResults)
+ : myEntity(theEntity), myUserName(theUserName), myResults(theResults)
+ {}
+ };
+ typedef std::stack<LastDumpedEntity> DumpStack;