X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXAOPlugin%2FXAOPlugin_IOperations_i.cc;h=20581c9b95be4439b166dd7f11a376e0837a2b18;hb=7a3c2d25cc85b5c75acf2c8df92e4373af480d42;hp=cbda713a92f1e90e92627f8ffc5520044ec2ac24;hpb=852ccfccc50fb56a385fdc8227c985c1417bf053;p=modules%2Fgeom.git diff --git a/src/XAOPlugin/XAOPlugin_IOperations_i.cc b/src/XAOPlugin/XAOPlugin_IOperations_i.cc index cbda713a9..20581c9b9 100644 --- a/src/XAOPlugin/XAOPlugin_IOperations_i.cc +++ b/src/XAOPlugin/XAOPlugin_IOperations_i.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2014-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -55,14 +55,16 @@ XAOPlugin_IOperations_i::~XAOPlugin_IOperations_i() * \param fields The list of fields to export * \param author The author of the export * \param fileName The name of the exported file + * \param shapeFileName If not empty, save to shape to this external file * \return boolean indicating if export was succeful. */ //============================================================================= CORBA::Boolean XAOPlugin_IOperations_i::ExportXAO( GEOM::GEOM_Object_ptr shape, - const GEOM::ListOfGO& groups, - const GEOM::ListOfFields& fields, - const char* author, - const char* fileName) + const GEOM::ListOfGO& groups, + const GEOM::ListOfFields& fields, + const char* author, + const char* fileName, + const char* shapeFileName) { bool isGood = false; // Set a not done flag @@ -94,7 +96,7 @@ CORBA::Boolean XAOPlugin_IOperations_i::ExportXAO( GEOM::GEOM_Object_ptr shape, if( !reference.IsNull() ) { // Export XAO - isGood = GetOperations()->ExportXAO( reference, groupsObj, fieldsObj, author, fileName ); + isGood = GetOperations()->ExportXAO( reference, groupsObj, fieldsObj, author, fileName, shapeFileName ); } return isGood;