Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/XSControl_SignTransferStatus.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Created on: 1998-07-31
0002 // Created by: Christian CAILLET
0003 // Copyright (c) 1998-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _XSControl_SignTransferStatus_HeaderFile
0018 #define _XSControl_SignTransferStatus_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <IFSelect_Signature.hxx>
0024 class XSControl_TransferReader;
0025 class Transfer_TransientProcess;
0026 class Standard_Transient;
0027 class Interface_InterfaceModel;
0028 
0029 //! This Signatures gives the Transfer Status of an entity, as
0030 //! recorded in a TransferProcess. It can be :
0031 //! - Void : not recorded, or recorded as void with no message
0032 //! (attributes are not taken into account)
0033 //! - Warning : no result, warning message(s), no fail
0034 //! - Fail : no result, fail messages (with or without warning)
0035 //! - Result.. : result, no message (neither warning nor fail)
0036 //! Result.. i.e. Result:TypeName of the result
0037 //! - Result../Warning : result, with warning but no fail
0038 //! - Result../Fail : result, with fail (.e. bad result)
0039 //! - Fail on run : no result yet recorded, no message, but
0040 //! an exception occurred while recording the result
0041 //! (this should not appear and indicates a programming error)
0042 class XSControl_SignTransferStatus : public IFSelect_Signature
0043 {
0044 
0045 public:
0046   //! Creates a SignTransferStatus, not initialised
0047   //! it gives nothing (empty string)
0048   Standard_EXPORT XSControl_SignTransferStatus();
0049 
0050   //! Creates a SignTransferStatus, which will work on the current
0051   //! TransientProcess brought by the TransferReader (its MapReader)
0052   Standard_EXPORT XSControl_SignTransferStatus(const occ::handle<XSControl_TransferReader>& TR);
0053 
0054   //! Sets a TransferReader to work
0055   Standard_EXPORT void SetReader(const occ::handle<XSControl_TransferReader>& TR);
0056 
0057   //! Sets a precise map to sign entities
0058   //! This definition oversedes the creation with a TransferReader
0059   Standard_EXPORT void SetMap(const occ::handle<Transfer_TransientProcess>& TP);
0060 
0061   //! Returns the TransientProcess used as precised one
0062   //! Returns a Null Handle for a creation from a TransferReader
0063   //! without any further setting
0064   Standard_EXPORT occ::handle<Transfer_TransientProcess> Map() const;
0065 
0066   //! Returns the Reader (if created with a Reader)
0067   //! Returns a Null Handle if not created with a Reader
0068   Standard_EXPORT occ::handle<XSControl_TransferReader> Reader() const;
0069 
0070   //! Returns the Signature for a Transient object, as its transfer
0071   //! status
0072   Standard_EXPORT const char* Value(
0073     const occ::handle<Standard_Transient>&       ent,
0074     const occ::handle<Interface_InterfaceModel>& model) const override;
0075 
0076   DEFINE_STANDARD_RTTIEXT(XSControl_SignTransferStatus, IFSelect_Signature)
0077 
0078 private:
0079   occ::handle<XSControl_TransferReader>  theTR;
0080   occ::handle<Transfer_TransientProcess> theTP;
0081 };
0082 
0083 #endif // _XSControl_SignTransferStatus_HeaderFile