1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-21 10:13:43 +03:00
occt/src/HeaderSection/HeaderSection_FileName.cxx
abv 42cf5bc1ca 0024002: Overall code and build procedure refactoring -- automatic
Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl":
- WOK-generated header files from inc and sources from drv are moved to src
- CDL files removed
- All packages are converted to nocdlpack
2015-07-12 07:42:38 +03:00

132 lines
3.6 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 <HeaderSection_FileName.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
HeaderSection_FileName::HeaderSection_FileName () {}
void HeaderSection_FileName::Init(
const Handle(TCollection_HAsciiString)& aName,
const Handle(TCollection_HAsciiString)& aTimeStamp,
const Handle(Interface_HArray1OfHAsciiString)& aAuthor,
const Handle(Interface_HArray1OfHAsciiString)& aOrganization,
const Handle(TCollection_HAsciiString)& aPreprocessorVersion,
const Handle(TCollection_HAsciiString)& aOriginatingSystem,
const Handle(TCollection_HAsciiString)& aAuthorisation)
{
// --- class own fields ---
name = aName;
timeStamp = aTimeStamp;
author = aAuthor;
organization = aOrganization;
preprocessorVersion = aPreprocessorVersion;
originatingSystem = aOriginatingSystem;
authorisation = aAuthorisation;
}
void HeaderSection_FileName::SetName(const Handle(TCollection_HAsciiString)& aName)
{
name = aName;
}
Handle(TCollection_HAsciiString) HeaderSection_FileName::Name() const
{
return name;
}
void HeaderSection_FileName::SetTimeStamp(const Handle(TCollection_HAsciiString)& aTimeStamp)
{
timeStamp = aTimeStamp;
}
Handle(TCollection_HAsciiString) HeaderSection_FileName::TimeStamp() const
{
return timeStamp;
}
void HeaderSection_FileName::SetAuthor(const Handle(Interface_HArray1OfHAsciiString)& aAuthor)
{
author = aAuthor;
}
Handle(Interface_HArray1OfHAsciiString) HeaderSection_FileName::Author() const
{
return author;
}
Handle(TCollection_HAsciiString) HeaderSection_FileName::AuthorValue(const Standard_Integer num) const
{
return author->Value(num);
}
Standard_Integer HeaderSection_FileName::NbAuthor () const
{
if (author.IsNull()) return 0;
return author->Length();
}
void HeaderSection_FileName::SetOrganization(const Handle(Interface_HArray1OfHAsciiString)& aOrganization)
{
organization = aOrganization;
}
Handle(Interface_HArray1OfHAsciiString) HeaderSection_FileName::Organization() const
{
return organization;
}
Handle(TCollection_HAsciiString) HeaderSection_FileName::OrganizationValue(const Standard_Integer num) const
{
return organization->Value(num);
}
Standard_Integer HeaderSection_FileName::NbOrganization () const
{
if (organization.IsNull()) return 0;
return organization->Length();
}
void HeaderSection_FileName::SetPreprocessorVersion(const Handle(TCollection_HAsciiString)& aPreprocessorVersion)
{
preprocessorVersion = aPreprocessorVersion;
}
Handle(TCollection_HAsciiString) HeaderSection_FileName::PreprocessorVersion() const
{
return preprocessorVersion;
}
void HeaderSection_FileName::SetOriginatingSystem(const Handle(TCollection_HAsciiString)& aOriginatingSystem)
{
originatingSystem = aOriginatingSystem;
}
Handle(TCollection_HAsciiString) HeaderSection_FileName::OriginatingSystem() const
{
return originatingSystem;
}
void HeaderSection_FileName::SetAuthorisation(const Handle(TCollection_HAsciiString)& aAuthorisation)
{
authorisation = aAuthorisation;
}
Handle(TCollection_HAsciiString) HeaderSection_FileName::Authorisation() const
{
return authorisation;
}