0022627: Change OCCT memory management defaults
[occt.git] / src / STEPCAFControl / STEPCAFControl_Controller.cxx
CommitLineData
7fd59977 1// File: STEPCAFControl_Controller.cxx
2// Created: Thu Oct 5 19:05:26 2000
3// Author: Andrey BETENEV
4// <abv@doomox.nnov.matra-dtv.fr>
5
6#include <STEPCAFControl_Controller.ixx>
7#include <STEPCAFControl_ActorWrite.hxx>
8#include <XSAlgo.hxx>
9
10//=======================================================================
11//function : STEPCAFControl_Controller
12//purpose :
13//=======================================================================
14
15STEPCAFControl_Controller::STEPCAFControl_Controller ()
16{
17 Handle(STEPCAFControl_ActorWrite) ActWrite = new STEPCAFControl_ActorWrite;
18 theAdaptorWrite = ActWrite;
19}
20
21//=======================================================================
22//function : Init
23//purpose :
24//=======================================================================
25
26Standard_Boolean STEPCAFControl_Controller::Init ()
27{
28 static Standard_Boolean inic = Standard_False;
29 if (inic) return Standard_True;
30 inic = Standard_True;
31 // self-registering
32 Handle(STEPCAFControl_Controller) STEPCTL = new STEPCAFControl_Controller;
33// do XSAlgo::Init, cause it does not called before.
34 XSAlgo::Init();
35 // do something to avoid warnings...
36 STEPCTL->AutoRecord();
37 return Standard_True;
38}