0025812: Replace dynamic loading mechanism of OCAF persistence with dynamic-link one
[occt.git] / src / DPrsStd / DPrsStd.cxx
CommitLineData
b311480e 1// Created on: 1998-06-29
2// Created by: Denis PASCAL
3// Copyright (c) 1998-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
7fd59977 17
7fd59977 18#include <AppStd_Application.hxx>
42cf5bc1 19#include <DDataStd.hxx>
20#include <DDF.hxx>
21#include <DDocStd.hxx>
22#include <DNaming.hxx>
23#include <DPrsStd.hxx>
24#include <Draw.hxx>
25#include <Draw_Interpretor.hxx>
26#include <Draw_PluginMacro.hxx>
7fd59977 27#include <OSD_Directory.hxx>
42cf5bc1 28#include <OSD_Environment.hxx>
7fd59977 29#include <OSD_File.hxx>
42cf5bc1 30#include <OSD_Path.hxx>
31#include <TCollection_AsciiString.hxx>
7fd59977 32
33// avoid warnings on 'extern "C"' functions returning C++ classes
57c28b61 34#ifdef _MSC_VER
7fd59977 35#pragma warning(4:4190)
36#endif
6fe96f84 37
7fd59977 38//=======================================================================
39//function : AllComands
40//purpose :
41//=======================================================================
42
43void DPrsStd::AllCommands (Draw_Interpretor& theCommands)
44{
45 static Standard_Boolean done = Standard_False;
46 if (done) return;
47 done = Standard_True;
48
7fd59977 49 DPrsStd::AISPresentationCommands(theCommands);
50 DPrsStd::AISViewerCommands(theCommands);
51 //DPrsStd::BasicCommands(theCommands);
52}
53
7fd59977 54//==============================================================================
55// DPrsStd::Factory
56//==============================================================================
57void DPrsStd::Factory(Draw_Interpretor& theDI)
58{
7fd59977 59 static Standard_Boolean DPrsStdFactoryDone = Standard_False;
60 if (DPrsStdFactoryDone) return;
61 DPrsStdFactoryDone = Standard_True;
62
63 DDF::AllCommands(theDI);
64 DNaming::AllCommands(theDI);
65 DDataStd::AllCommands(theDI);
66 DPrsStd::AllCommands(theDI);
67 DDocStd::AllCommands(theDI);
0797d9d3 68#ifdef OCCT_DEBUG
7fd59977 69 cout << "Draw Plugin : All DF commands are loaded" << endl;
70#endif
71}
72
73// Declare entry point PLUGINFACTORY
74DPLUGIN(DPrsStd)