mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
70
src/TDocStd/TDocStd.cxx
Executable file
70
src/TDocStd/TDocStd.cxx
Executable file
@@ -0,0 +1,70 @@
|
||||
//=======================================================================
|
||||
// File: TDocStd.cxx
|
||||
// Language: C++
|
||||
// Version: QDF
|
||||
// Design:
|
||||
// Purpose:
|
||||
// Copyright: Matra-Datavision 1997
|
||||
//=======================================================================
|
||||
|
||||
// Declarations:
|
||||
|
||||
#include <TDocStd.ixx>
|
||||
#include <CDF.hxx>
|
||||
//#include <LCTLOFF.h>
|
||||
#include <OSD_Environment.hxx>
|
||||
|
||||
#include <TDocStd_XLink.hxx>
|
||||
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Application
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
// Handle(TDocStd_Application) TDocStd::Application
|
||||
// (const Standard_Boolean UseDocAPI)
|
||||
// {
|
||||
// static Handle(TDocStd_Application) theAppli;
|
||||
// if (theAppli.IsNull()) theAppli = new TDocStd_Application(UseDocAPI);
|
||||
// OSD_Environment CSFLicense("CSF_EngineName");
|
||||
// TCollection_AsciiString LicenseAscii = CSFLicense .Value();
|
||||
// Standard_Boolean HasLicense = Standard_False;
|
||||
// if (!LicenseAscii.IsEmpty()) {
|
||||
// if (LicenseAscii=="DsgPEngine")
|
||||
// HasLicense = Standard_True;
|
||||
|
||||
// }
|
||||
// if (HasLicense) {
|
||||
|
||||
// CDF::GetLicense(AED100) ;
|
||||
// CDF::GetLicense(AED300) ;
|
||||
// }
|
||||
|
||||
// return theAppli;
|
||||
|
||||
// }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : InitApplication
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
// Handle(TDocStd_Application) TDocStd::InitApplication
|
||||
// (const Standard_Boolean UseDocAPI)
|
||||
// {
|
||||
// // No init yet.
|
||||
// return TDocStd::Application(UseDocAPI);
|
||||
// }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : IDList
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void TDocStd::IDList(TDF_IDList& anIDList)
|
||||
{ anIDList.Append(TDocStd_XLink::GetID()); }
|
||||
|
Reference in New Issue
Block a user