Integration of OCCT 6.5.0 from SVN
[occt.git] / src / RWHeaderSection / RWHeaderSection.cxx
1
2 #include <RWHeaderSection.ixx>
3 /// #include <EuclidStandard.hxx>
4
5 #include <StepData.hxx>
6
7 #include <HeaderSection_Protocol.hxx>
8
9 #include <HeaderSection.hxx>
10 #include <RWHeaderSection_ReadWriteModule.hxx>
11 #include <RWHeaderSection_GeneralModule.hxx>
12
13
14 static Handle(RWHeaderSection_ReadWriteModule) rwm;
15 static Handle(RWHeaderSection_GeneralModule) rwg;
16
17
18 void RWHeaderSection::Init()
19 {
20 ///   EuclidStandard::Init();
21   Handle(HeaderSection_Protocol) proto = HeaderSection::Protocol();
22   StepData::AddHeaderProtocol(proto);
23   if (rwm.IsNull()) rwm = new RWHeaderSection_ReadWriteModule;
24   if (rwg.IsNull()) rwg = new RWHeaderSection_GeneralModule;
25 }
26
27