1 // Created on: 2016-03-30
2 // Created by: Irina KRYLOVA
3 // Copyright (c) 2016 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #include <Standard_Type.hxx>
17 #include <StepBasic_ExternalSource.hxx>
18 #include <StepBasic_ProductDefinitionReference.hxx>
20 IMPLEMENT_STANDARD_RTTIEXT(StepBasic_ProductDefinitionReference, Standard_Transient)
22 //=======================================================================
23 //function : StepBasic_ProductDefinitionReference
25 //=======================================================================
26 StepBasic_ProductDefinitionReference::StepBasic_ProductDefinitionReference () {}
28 //=======================================================================
31 //=======================================================================
32 void StepBasic_ProductDefinitionReference::Init (const Handle(StepBasic_ExternalSource)& theSource,
33 const Handle(TCollection_HAsciiString)& theProductId,
34 const Handle(TCollection_HAsciiString)& theProductDefinitionFormationId,
35 const Handle(TCollection_HAsciiString)& theProductDefinitionId,
36 const Handle(TCollection_HAsciiString)& theIdOwningOrganizationName)
39 myProductId = theProductId;
40 myProductDefinitionFormationId = theProductDefinitionFormationId;
41 myProductDefinitionId = theProductDefinitionId;
42 myIdOwningOrganizationName = theIdOwningOrganizationName;
43 hasIdOwningOrganizationName = (!theIdOwningOrganizationName.IsNull());
46 //=======================================================================
49 //=======================================================================
50 void StepBasic_ProductDefinitionReference::Init (const Handle(StepBasic_ExternalSource)& theSource,
51 const Handle(TCollection_HAsciiString)& theProductId,
52 const Handle(TCollection_HAsciiString)& theProductDefinitionFormationId,
53 const Handle(TCollection_HAsciiString)& theProductDefinitionId)
56 myProductId = theProductId;
57 myProductDefinitionFormationId = theProductDefinitionFormationId;
58 myProductDefinitionId = theProductDefinitionId;
59 hasIdOwningOrganizationName = Standard_False;