if (isError) {
switch (aStatus) {
case PCDM_RS_UnknownDocument:
- Events_Error::send(std::string("Can not open document: unknown format"));
+ Events_Error::send(std::string("Can not open document"));
break;
case PCDM_RS_AlreadyRetrieved:
Events_Error::send(std::string("Can not open document: already opened"));
TCollection_AsciiString aDestinationDir(DocFileName(theFileName, aDocName));
OSD_Path aDestination(aDestinationDir);
aFile.Copy(aDestination);
+ theResults.push_back(aDestinationDir.ToCString());
} else {
Events_Error::send(
std::string("Can not open file ") + aSubPath.ToCString() + " for saving");
{
return TDF_LabelMapHasher::IsEqual(theLab1, theLab2);
}
+
+void Model_Document::addNamingName(const TDF_Label theLabel, std::string theName)
+{
+ myNamingNames[theName] = theLabel;
+}
+
+TDF_Label Model_Document::findNamingName(std::string theName)
+{
+ std::map<std::string, TDF_Label>::iterator aFind = myNamingNames.find(theName);
+ if (aFind == myNamingNames.end())
+ return TDF_Label(); // not found
+ return aFind->second;
+}