Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepAP203 / StepAP203_WorkItem.cxx
diff --git a/src/StepAP203/StepAP203_WorkItem.cxx b/src/StepAP203/StepAP203_WorkItem.cxx
new file mode 100755 (executable)
index 0000000..646da5e
--- /dev/null
@@ -0,0 +1,38 @@
+// File:       StepAP203_WorkItem.cxx
+// Created:    Fri Nov 26 16:26:28 1999 
+// Author:     Andrey BETENEV
+// Generator:  ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
+// Copyright:  Matra Datavision 1999
+
+#include <StepAP203_WorkItem.ixx>
+
+//=======================================================================
+//function : StepAP203_WorkItem
+//purpose  : 
+//=======================================================================
+
+StepAP203_WorkItem::StepAP203_WorkItem ()
+{
+}
+
+//=======================================================================
+//function : CaseNum
+//purpose  : 
+//=======================================================================
+
+Standard_Integer StepAP203_WorkItem::CaseNum (const Handle(Standard_Transient)& ent) const
+{
+  if (ent.IsNull()) return 0;
+  if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionFormation))) return 1;
+  return 0;
+}
+
+//=======================================================================
+//function : ProductDefinitionFormation
+//purpose  : 
+//=======================================================================
+
+Handle(StepBasic_ProductDefinitionFormation) StepAP203_WorkItem::ProductDefinitionFormation () const
+{
+  return Handle(StepBasic_ProductDefinitionFormation)::DownCast(Value());
+}