0027460: Data Exchange - restore method XSControl_WorkSession::MapReader()
authorkgv <kgv@opencascade.com>
Wed, 4 May 2016 09:52:58 +0000 (12:52 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 12 May 2016 07:49:53 +0000 (10:49 +0300)
src/XSControl/XSControl_WorkSession.cxx
src/XSControl/XSControl_WorkSession.hxx

index 4aaedfd..8c3f8fc 100644 (file)
@@ -324,6 +324,15 @@ void XSControl_WorkSession::SetTransferReader(const Handle(XSControl_TransferRea
   TR->SetTransientProcess(TP);
 }
 
+//=======================================================================
+//function : MapReader
+//purpose  :
+//=======================================================================
+
+Handle(Transfer_TransientProcess) XSControl_WorkSession::MapReader() const
+{
+  return myTransferReader->TransientProcess();
+}
 
 //=======================================================================
 //function : SetMapReader
index 905710f..6779456 100644 (file)
@@ -115,7 +115,10 @@ class XSControl_WorkSession : public IFSelect_WorkSession
   //! Returns the Transfer Reader, Null if not set
   const Handle(XSControl_TransferReader) & TransferReader () const
   { return myTransferReader; }
-  
+
+  //! Returns the TransientProcess(internal data for TransferReader)
+  Standard_EXPORT Handle(Transfer_TransientProcess) MapReader() const;
+
   //! Changes the Map Reader, i.e. considers that the new one
   //! defines the relevant read results (forgets the former ones)
   //! Returns True when done, False in case of bad definition, i.e.