1 #include <StepData_FileProtocol.ixx>
4 //static TCollection_AsciiString thename("");
5 static Standard_CString thename = "";
7 // Protocol fabrique a la demande avec d autres Protocoles
10 StepData_FileProtocol::StepData_FileProtocol () { }
12 void StepData_FileProtocol::Add (const Handle(StepData_Protocol)& protocol)
14 if (protocol.IsNull()) return;
15 Handle(Standard_Type) ptype = protocol->DynamicType();
16 Standard_Integer nb = thecomps.Length();
17 for (Standard_Integer i = 1; i <= nb; i ++) {
18 if (thecomps.Value(i)->IsInstance(ptype)) return;
20 thecomps.Append(protocol);
24 Standard_Integer StepData_FileProtocol::NbResources () const
25 { return thecomps.Length(); }
27 Handle(Interface_Protocol) StepData_FileProtocol::Resource
28 (const Standard_Integer num) const
29 { return Handle(Interface_Protocol)::DownCast(thecomps.Value(num)); }
32 Standard_Integer StepData_FileProtocol::TypeNumber
33 (const Handle(Standard_Type)& atype) const
37 Standard_Boolean StepData_FileProtocol::GlobalCheck(const Interface_Graph& G,
38 Handle(Interface_Check)& ach) const
40 Standard_Boolean res = Standard_False;
41 Standard_Integer i,nb = NbResources();
42 for (i = 1; i <= nb; i ++) res |= Resource(i)->GlobalCheck (G,ach);
47 Standard_CString StepData_FileProtocol::SchemaName () const