mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
40
src/IGESData/IGESData_Protocol.cxx
Executable file
40
src/IGESData/IGESData_Protocol.cxx
Executable file
@@ -0,0 +1,40 @@
|
||||
#include <IGESData_Protocol.ixx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_UndefinedEntity.hxx>
|
||||
#include <IGESData_FreeFormatEntity.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
|
||||
|
||||
|
||||
IGESData_Protocol::IGESData_Protocol () { }
|
||||
|
||||
|
||||
Standard_Integer IGESData_Protocol::NbResources () const { return 0; }
|
||||
|
||||
Handle(Interface_Protocol) IGESData_Protocol::Resource
|
||||
(const Standard_Integer num) const
|
||||
{ Handle(Interface_Protocol) nulpro; return nulpro; }
|
||||
|
||||
|
||||
// TypeNumber : Ici, on reconnait UndefinedEntity (faut bien quelqu un)
|
||||
|
||||
Standard_Integer IGESData_Protocol::TypeNumber
|
||||
(const Handle(Standard_Type)& atype) const
|
||||
{
|
||||
if (atype->SubType(STANDARD_TYPE(IGESData_UndefinedEntity))) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Handle(Interface_InterfaceModel) IGESData_Protocol::NewModel () const
|
||||
{ return new IGESData_IGESModel; }
|
||||
|
||||
Standard_Boolean IGESData_Protocol::IsSuitableModel
|
||||
(const Handle(Interface_InterfaceModel)& model) const
|
||||
{ return model->IsKind(STANDARD_TYPE(IGESData_IGESModel)); }
|
||||
|
||||
Handle(Standard_Transient) IGESData_Protocol::UnknownEntity () const
|
||||
{ return new IGESData_UndefinedEntity; }
|
||||
|
||||
Standard_Boolean IGESData_Protocol::IsUnknownEntity
|
||||
(const Handle(Standard_Transient)& ent) const
|
||||
{ return ent->IsKind(STANDARD_TYPE(IGESData_UndefinedEntity)); }
|
Reference in New Issue
Block a user