mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-25 09:07:26 +08:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
45
src/HeaderSection/HeaderSection_FileDescription.cxx
Executable file
45
src/HeaderSection/HeaderSection_FileDescription.cxx
Executable file
@@ -0,0 +1,45 @@
|
||||
#include <HeaderSection_FileDescription.ixx>
|
||||
|
||||
|
||||
HeaderSection_FileDescription::HeaderSection_FileDescription () {}
|
||||
|
||||
void HeaderSection_FileDescription::Init(
|
||||
const Handle(Interface_HArray1OfHAsciiString)& aDescription,
|
||||
const Handle(TCollection_HAsciiString)& aImplementationLevel)
|
||||
{
|
||||
// --- class own fields ---
|
||||
description = aDescription;
|
||||
implementationLevel = aImplementationLevel;
|
||||
}
|
||||
|
||||
|
||||
void HeaderSection_FileDescription::SetDescription(const Handle(Interface_HArray1OfHAsciiString)& aDescription)
|
||||
{
|
||||
description = aDescription;
|
||||
}
|
||||
|
||||
Handle(Interface_HArray1OfHAsciiString) HeaderSection_FileDescription::Description() const
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
Handle(TCollection_HAsciiString) HeaderSection_FileDescription::DescriptionValue(const Standard_Integer num) const
|
||||
{
|
||||
return description->Value(num);
|
||||
}
|
||||
|
||||
Standard_Integer HeaderSection_FileDescription::NbDescription () const
|
||||
{
|
||||
if (description.IsNull()) return 0;
|
||||
return description->Length();
|
||||
}
|
||||
|
||||
void HeaderSection_FileDescription::SetImplementationLevel(const Handle(TCollection_HAsciiString)& aImplementationLevel)
|
||||
{
|
||||
implementationLevel = aImplementationLevel;
|
||||
}
|
||||
|
||||
Handle(TCollection_HAsciiString) HeaderSection_FileDescription::ImplementationLevel() const
|
||||
{
|
||||
return implementationLevel;
|
||||
}
|
||||
Reference in New Issue
Block a user