File indexing completed on 2025-01-18 10:05:06
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _StepData_Protocol_HeaderFile
0018 #define _StepData_Protocol_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <Interface_DataMapOfTransientInteger.hxx>
0024 #include <Interface_Protocol.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <TColStd_SequenceOfAsciiString.hxx>
0027 class Interface_InterfaceModel;
0028 class StepData_EDescr;
0029 class StepData_ESDescr;
0030 class StepData_ECDescr;
0031 class StepData_PDescr;
0032
0033
0034 class StepData_Protocol;
0035 DEFINE_STANDARD_HANDLE(StepData_Protocol, Interface_Protocol)
0036
0037
0038
0039
0040
0041
0042 class StepData_Protocol : public Interface_Protocol
0043 {
0044
0045 public:
0046
0047
0048 Standard_EXPORT StepData_Protocol();
0049
0050
0051
0052 Standard_EXPORT Standard_Integer NbResources() const Standard_OVERRIDE;
0053
0054
0055 Standard_EXPORT Handle(Interface_Protocol) Resource (const Standard_Integer num) const Standard_OVERRIDE;
0056
0057
0058
0059
0060 Standard_EXPORT virtual Standard_Integer CaseNumber (const Handle(Standard_Transient)& obj) const Standard_OVERRIDE;
0061
0062
0063
0064 Standard_EXPORT Standard_Integer TypeNumber (const Handle(Standard_Type)& atype) const Standard_OVERRIDE;
0065
0066
0067
0068
0069
0070 Standard_EXPORT virtual Standard_CString SchemaName() const;
0071
0072
0073 Standard_EXPORT Handle(Interface_InterfaceModel) NewModel() const Standard_OVERRIDE;
0074
0075
0076 Standard_EXPORT Standard_Boolean IsSuitableModel (const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
0077
0078
0079 Standard_EXPORT Handle(Standard_Transient) UnknownEntity() const Standard_OVERRIDE;
0080
0081
0082
0083 Standard_EXPORT Standard_Boolean IsUnknownEntity (const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
0084
0085
0086
0087
0088
0089 Standard_EXPORT virtual Standard_Integer DescrNumber (const Handle(StepData_EDescr)& adescr) const;
0090
0091
0092
0093
0094 Standard_EXPORT void AddDescr (const Handle(StepData_EDescr)& adescr, const Standard_Integer CN);
0095
0096
0097
0098 Standard_EXPORT Standard_Boolean HasDescr() const;
0099
0100
0101 Standard_EXPORT Handle(StepData_EDescr) Descr (const Standard_Integer num) const;
0102
0103
0104
0105
0106 Standard_EXPORT Handle(StepData_EDescr) Descr (const Standard_CString name, const Standard_Boolean anylevel = Standard_True) const;
0107
0108
0109 Standard_EXPORT Handle(StepData_ESDescr) ESDescr (const Standard_CString name, const Standard_Boolean anylevel = Standard_True) const;
0110
0111
0112
0113
0114 Standard_EXPORT Handle(StepData_ECDescr) ECDescr (const TColStd_SequenceOfAsciiString& names, const Standard_Boolean anylevel = Standard_True) const;
0115
0116
0117 Standard_EXPORT void AddPDescr (const Handle(StepData_PDescr)& pdescr);
0118
0119
0120
0121
0122 Standard_EXPORT Handle(StepData_PDescr) PDescr (const Standard_CString name, const Standard_Boolean anylevel = Standard_True) const;
0123
0124
0125 Standard_EXPORT void AddBasicDescr (const Handle(StepData_ESDescr)& esdescr);
0126
0127
0128
0129
0130 Standard_EXPORT Handle(StepData_EDescr) BasicDescr (const Standard_CString name, const Standard_Boolean anylevel = Standard_True) const;
0131
0132
0133
0134
0135 DEFINE_STANDARD_RTTIEXT(StepData_Protocol,Interface_Protocol)
0136
0137 protected:
0138
0139
0140
0141
0142 private:
0143
0144
0145 Interface_DataMapOfTransientInteger thedscnum;
0146 NCollection_DataMap<TCollection_AsciiString, Handle(Standard_Transient)> thedscnam;
0147 NCollection_DataMap<TCollection_AsciiString, Handle(Standard_Transient)> thepdescr;
0148 NCollection_DataMap<TCollection_AsciiString, Handle(Standard_Transient)> thedscbas;
0149
0150
0151 };
0152
0153
0154
0155
0156
0157
0158
0159 #endif