+ if (exportType == "XAOMem") {
+ std::string aGeometryName =
+ aBase->string(ExchangePlugin_ExportFeature::XAO_GEOMETRY_NAME_ID())->value();
+
+ theDumper << "aXAOBuff";
+ std::string aGeometryNamePy;
+ if (! aGeometryName.empty()) {
+ aGeometryNamePy = aGeometryName;
+ }
+ else {
+ aGeometryNamePy = Locale::Convert::toString(aBase->data()->name());
+ }
+ if (! aGeometryNamePy.empty()) {
+ // add shape name
+ std::replace(aGeometryNamePy.begin(), aGeometryNamePy.end(), ' ', '_');
+ theDumper << "_" << aGeometryNamePy;
+ }
+ theDumper << " = model.exportToXAOMem(" << aDocName;
+ AttributeSelectionListPtr aShapeSelected =
+ aBase->selectionList(ExchangePlugin_ExportFeature::XAO_SELECTION_LIST_ID());
+ if (aShapeSelected->isInitialized() && aShapeSelected->size() == 1) {
+ theDumper << ", " << aShapeSelected->value(0);
+ }
+
+ std::string theAuthor = aBase->string(ExchangePlugin_ExportFeature::XAO_AUTHOR_ID())->value();
+ if (! theAuthor.empty())
+ theDumper << ", '" << theAuthor << "'";
+ if (! aGeometryName.empty())
+ theDumper << ", '" << aGeometryName << "'";
+ theDumper << ")" << std::endl;
+ return;
+ }
+
+ theDumper << aBase << " = model.";
+