File indexing completed on 2025-01-18 10:05:05
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _STEPConstruct_ExternRefs_HeaderFile
0017 #define _STEPConstruct_ExternRefs_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022
0023 #include <TColStd_SequenceOfTransient.hxx>
0024 #include <STEPConstruct_Tool.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <Standard_CString.hxx>
0027 class StepBasic_ProductRelatedProductCategory;
0028 class StepBasic_DocumentType;
0029 class StepBasic_ProductDefinitionContext;
0030 class StepBasic_ProductContext;
0031 class StepBasic_ApplicationProtocolDefinition;
0032 class XSControl_WorkSession;
0033 class StepBasic_ProductDefinition;
0034 class TCollection_HAsciiString;
0035 class StepAP214_AppliedDocumentReference;
0036 class StepBasic_DocumentFile;
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046 class STEPConstruct_ExternRefs : public STEPConstruct_Tool
0047 {
0048 public:
0049
0050 DEFINE_STANDARD_ALLOC
0051
0052
0053
0054 Standard_EXPORT STEPConstruct_ExternRefs();
0055
0056
0057 Standard_EXPORT STEPConstruct_ExternRefs(const Handle(XSControl_WorkSession)& WS);
0058
0059
0060 Standard_EXPORT Standard_Boolean Init (const Handle(XSControl_WorkSession)& WS);
0061
0062
0063 Standard_EXPORT void Clear();
0064
0065
0066
0067
0068 Standard_EXPORT Standard_Boolean LoadExternRefs();
0069
0070
0071 Standard_EXPORT Standard_Integer NbExternRefs() const;
0072
0073
0074
0075 Standard_EXPORT Standard_CString FileName (const Standard_Integer num) const;
0076
0077
0078
0079
0080
0081 Standard_EXPORT Handle(StepBasic_ProductDefinition) ProdDef (const Standard_Integer num) const;
0082
0083
0084
0085
0086 Standard_EXPORT Handle(StepBasic_DocumentFile) DocFile (const Standard_Integer num) const;
0087
0088
0089
0090 Standard_EXPORT Handle(TCollection_HAsciiString) Format (const Standard_Integer num) const;
0091
0092
0093
0094
0095
0096
0097 Standard_EXPORT Standard_Integer AddExternRef (const Standard_CString filename, const Handle(StepBasic_ProductDefinition)& PD, const Standard_CString format);
0098
0099
0100 Standard_EXPORT void checkAP214Shared();
0101
0102
0103
0104 Standard_EXPORT Standard_Integer WriteExternRefs (const Standard_Integer num) const;
0105
0106
0107 Standard_EXPORT void SetAP214APD (const Handle(StepBasic_ApplicationProtocolDefinition)& APD);
0108
0109
0110
0111 Standard_EXPORT Handle(StepBasic_ApplicationProtocolDefinition) GetAP214APD();
0112
0113
0114
0115
0116 protected:
0117
0118
0119
0120
0121 Standard_EXPORT Standard_Boolean addAP214ExterRef (const Handle(StepAP214_AppliedDocumentReference)& ADR, const Handle(StepBasic_ProductDefinition)& PD, const Handle(StepBasic_DocumentFile)& DF, const Standard_CString filename);
0122
0123
0124
0125
0126 private:
0127
0128
0129
0130 TColStd_SequenceOfTransient myAEIAs;
0131 TColStd_SequenceOfTransient myRoles;
0132 TColStd_SequenceOfTransient myFormats;
0133 TColStd_SequenceOfTransient myShapes;
0134 TColStd_SequenceOfTransient myTypes;
0135 TColStd_SequenceOfInteger myIsAP214;
0136 TColStd_SequenceOfInteger myReplaceNum;
0137 TColStd_SequenceOfTransient myDocFiles;
0138 Handle(StepBasic_ProductRelatedProductCategory) mySharedPRPC;
0139 Handle(StepBasic_DocumentType) mySharedDocType;
0140 Handle(StepBasic_ProductDefinitionContext) mySharedPDC;
0141 Handle(StepBasic_ProductContext) mySharedPC;
0142 Handle(StepBasic_ApplicationProtocolDefinition) myAPD;
0143
0144
0145 };
0146
0147
0148
0149
0150
0151
0152
0153 #endif