1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-08 18:40:55 +03:00
occt/src/StepShape/StepShape_ValueQualifier.cxx
ika d658f27576 0027336: Update STEP entities, according to AP242
Add header  and parameter for AP242.

Update entities:
product_definition_relationship
styled_item

Update select types:
security_classification_item
person_and_organization_item
organization_item
group_item
external_identification_item
document_reference_item
date_item
approval_item
external_identification_item
draughting_callout_element
value_qualifier
invisibility_context

update gdt tests.

fix compilation warnings.
2016-04-08 11:42:59 +03:00

40 lines
1.7 KiB
C++

// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <Standard_Transient.hxx>
#include <StepShape_PrecisionQualifier.hxx>
#include <StepShape_TypeQualifier.hxx>
#include <StepShape_ValueFormatTypeQualifier.hxx>
#include <StepShape_ValueQualifier.hxx>
StepShape_ValueQualifier::StepShape_ValueQualifier () { }
Standard_Integer StepShape_ValueQualifier::CaseNum
(const Handle(Standard_Transient)& ent) const
{
if (ent.IsNull()) return 0;
if (ent->IsKind(STANDARD_TYPE(StepShape_PrecisionQualifier))) return 1;
if (ent->IsKind(STANDARD_TYPE(StepShape_TypeQualifier))) return 2;
if (ent->IsKind(STANDARD_TYPE(StepShape_ValueFormatTypeQualifier))) return 4;
return 0;
}
Handle(StepShape_PrecisionQualifier) StepShape_ValueQualifier::PrecisionQualifier () const
{ return Handle(StepShape_PrecisionQualifier)::DownCast(Value()); }
Handle(StepShape_TypeQualifier) StepShape_ValueQualifier::TypeQualifier () const
{ return Handle(StepShape_TypeQualifier)::DownCast(Value()); }
Handle(StepShape_ValueFormatTypeQualifier) StepShape_ValueQualifier::ValueFormatTypeQualifier () const
{ return Handle(StepShape_ValueFormatTypeQualifier)::DownCast(Value()); }