mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
109
src/StepBasic/StepBasic_GeneralProperty.cxx
Executable file
109
src/StepBasic/StepBasic_GeneralProperty.cxx
Executable file
@@ -0,0 +1,109 @@
|
||||
// File: StepBasic_GeneralProperty.cxx
|
||||
// Created: Wed May 10 15:09:07 2000
|
||||
// Author: Andrey BETENEV
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
|
||||
// Copyright: Matra Datavision 2000
|
||||
|
||||
#include <StepBasic_GeneralProperty.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepBasic_GeneralProperty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepBasic_GeneralProperty::StepBasic_GeneralProperty ()
|
||||
{
|
||||
defDescription = Standard_False;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepBasic_GeneralProperty::Init (const Handle(TCollection_HAsciiString) &aId,
|
||||
const Handle(TCollection_HAsciiString) &aName,
|
||||
const Standard_Boolean hasDescription,
|
||||
const Handle(TCollection_HAsciiString) &aDescription)
|
||||
{
|
||||
|
||||
theId = aId;
|
||||
|
||||
theName = aName;
|
||||
|
||||
defDescription = hasDescription;
|
||||
if (defDescription) {
|
||||
theDescription = aDescription;
|
||||
}
|
||||
else theDescription.Nullify();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Id
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) StepBasic_GeneralProperty::Id () const
|
||||
{
|
||||
return theId;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetId
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepBasic_GeneralProperty::SetId (const Handle(TCollection_HAsciiString) &aId)
|
||||
{
|
||||
theId = aId;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Name
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) StepBasic_GeneralProperty::Name () const
|
||||
{
|
||||
return theName;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetName
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepBasic_GeneralProperty::SetName (const Handle(TCollection_HAsciiString) &aName)
|
||||
{
|
||||
theName = aName;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Description
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) StepBasic_GeneralProperty::Description () const
|
||||
{
|
||||
return theDescription;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetDescription
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepBasic_GeneralProperty::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
|
||||
{
|
||||
theDescription = aDescription;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : HasDescription
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean StepBasic_GeneralProperty::HasDescription () const
|
||||
{
|
||||
return defDescription;
|
||||
}
|
Reference in New Issue
Block a user