File indexing completed on 2025-01-18 10:04:07
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Interface_GTool_HeaderFile
0018 #define _Interface_GTool_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <Interface_GeneralLib.hxx>
0024 #include <Interface_DataMapOfTransientInteger.hxx>
0025 #include <TColStd_IndexedDataMapOfTransientTransient.hxx>
0026 #include <Standard_Transient.hxx>
0027 #include <Standard_Integer.hxx>
0028 class Interface_Protocol;
0029 class Interface_SignType;
0030 class Interface_InterfaceModel;
0031 class Interface_GeneralModule;
0032
0033
0034 class Interface_GTool;
0035 DEFINE_STANDARD_HANDLE(Interface_GTool, Standard_Transient)
0036
0037
0038
0039
0040
0041
0042
0043 class Interface_GTool : public Standard_Transient
0044 {
0045
0046 public:
0047
0048
0049
0050 Standard_EXPORT Interface_GTool();
0051
0052
0053
0054 Standard_EXPORT Interface_GTool(const Handle(Interface_Protocol)& proto, const Standard_Integer nbent = 0);
0055
0056
0057 Standard_EXPORT void SetSignType (const Handle(Interface_SignType)& sign);
0058
0059
0060 Standard_EXPORT Handle(Interface_SignType) SignType() const;
0061
0062
0063
0064
0065 Standard_EXPORT Standard_CString SignValue (const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const;
0066
0067
0068 Standard_EXPORT Standard_CString SignName() const;
0069
0070
0071
0072
0073 Standard_EXPORT void SetProtocol (const Handle(Interface_Protocol)& proto, const Standard_Boolean enforce = Standard_False);
0074
0075
0076 Standard_EXPORT Handle(Interface_Protocol) Protocol() const;
0077
0078
0079 Standard_EXPORT Interface_GeneralLib& Lib();
0080
0081
0082
0083
0084
0085 Standard_EXPORT void Reservate (const Standard_Integer nb, const Standard_Boolean enforce = Standard_False);
0086
0087
0088
0089 Standard_EXPORT void ClearEntities();
0090
0091
0092
0093
0094
0095 Standard_EXPORT Standard_Boolean Select (const Handle(Standard_Transient)& ent, Handle(Interface_GeneralModule)& gmod, Standard_Integer& CN, const Standard_Boolean enforce = Standard_False);
0096
0097
0098
0099
0100 DEFINE_STANDARD_RTTIEXT(Interface_GTool,Standard_Transient)
0101
0102 protected:
0103
0104
0105
0106
0107 private:
0108
0109
0110 Handle(Interface_Protocol) theproto;
0111 Handle(Interface_SignType) thesign;
0112 Interface_GeneralLib thelib;
0113 Interface_DataMapOfTransientInteger thentnum;
0114 TColStd_IndexedDataMapOfTransientTransient thentmod;
0115
0116
0117 };
0118
0119
0120
0121
0122
0123
0124
0125 #endif