0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / StepBasic / StepBasic_ProductDefinitionReference.cxx
1 // Created on: 2016-03-30
2 // Created by: Irina KRYLOVA
3 // Copyright (c) 2016 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #include <Standard_Type.hxx>
17 #include <StepBasic_ExternalSource.hxx>
18 #include <StepBasic_ProductDefinitionReference.hxx>
19
20 IMPLEMENT_STANDARD_RTTIEXT(StepBasic_ProductDefinitionReference, Standard_Transient)
21
22 //=======================================================================
23 //function : StepBasic_ProductDefinitionReference
24 //purpose  : 
25 //=======================================================================
26 StepBasic_ProductDefinitionReference::StepBasic_ProductDefinitionReference () {}
27
28 //=======================================================================
29 //function : Init
30 //purpose  : 
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)
37 {
38   mySource = theSource;
39   myProductId = theProductId;
40   myProductDefinitionFormationId = theProductDefinitionFormationId;
41   myProductDefinitionId = theProductDefinitionId;
42   myIdOwningOrganizationName = theIdOwningOrganizationName;
43   hasIdOwningOrganizationName = (!theIdOwningOrganizationName.IsNull());
44 }
45                              
46 //=======================================================================
47 //function : Init
48 //purpose  : 
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)
54 {
55   mySource = theSource;
56   myProductId = theProductId;
57   myProductDefinitionFormationId = theProductDefinitionFormationId;
58   myProductDefinitionId = theProductDefinitionId;
59   hasIdOwningOrganizationName = Standard_False;
60 }