mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024002: Overall code and build procedure refactoring -- automatic
Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl": - WOK-generated header files from inc and sources from drv are moved to src - CDL files removed - All packages are converted to nocdlpack
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
-- Created on: 2000-09-07
|
||||
-- Created by: TURIN Anatoliy <ati@nnov.matra-dtv.fr>
|
||||
-- Copyright (c) 2000-2014 OPEN CASCADE SAS
|
||||
--
|
||||
-- This file is part of Open CASCADE Technology software library.
|
||||
--
|
||||
-- This library is free software; you can redistribute it and/or modify it under
|
||||
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
-- by the Free Software Foundation, with special exception defined in the file
|
||||
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
-- distribution for complete text of the license and disclaimer of any warranty.
|
||||
--
|
||||
-- Alternatively, this file may be used under the terms of Open CASCADE
|
||||
-- commercial license or contractual agreement.
|
||||
|
||||
package AppStd
|
||||
|
||||
uses
|
||||
|
||||
Standard, TCollection, TColStd, Resource, CDM, TDocStd
|
||||
is
|
||||
class Application;
|
||||
|
||||
end AppStd;
|
||||
|
||||
|
@@ -1,42 +0,0 @@
|
||||
-- Created on: 2000-09-07
|
||||
-- Created by: TURIN Anatoliy <ati@nnov.matra-dtv.fr>
|
||||
-- Copyright (c) 2000-2014 OPEN CASCADE SAS
|
||||
--
|
||||
-- This file is part of Open CASCADE Technology software library.
|
||||
--
|
||||
-- This library is free software; you can redistribute it and/or modify it under
|
||||
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
-- by the Free Software Foundation, with special exception defined in the file
|
||||
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
-- distribution for complete text of the license and disclaimer of any warranty.
|
||||
--
|
||||
-- Alternatively, this file may be used under the terms of Open CASCADE
|
||||
-- commercial license or contractual agreement.
|
||||
|
||||
class Application from AppStd inherits Application from TDocStd
|
||||
|
||||
uses MessageDriver from CDM,
|
||||
SequenceOfExtendedString from TColStd,
|
||||
ExtendedString from TCollection
|
||||
|
||||
is
|
||||
|
||||
Create returns Application from AppStd;
|
||||
|
||||
MessageDriver(me: mutable)
|
||||
returns MessageDriver from CDM
|
||||
is redefined;
|
||||
|
||||
Formats(me: mutable; theFormats: out SequenceOfExtendedString from TColStd)
|
||||
---Purpose: returns supported format for application documents.
|
||||
is redefined;
|
||||
|
||||
ResourcesName (me: mutable)
|
||||
---Purpose: returns the file name which contains application
|
||||
-- resources
|
||||
returns CString from Standard;
|
||||
|
||||
fields
|
||||
myMessageDriver : MessageDriver from CDM;
|
||||
|
||||
end Application;
|
@@ -15,14 +15,15 @@
|
||||
|
||||
//AGV 15/10/01 : Add XmlOcaf support; add MessageDriver support
|
||||
|
||||
#include <AppStd_Application.ixx>
|
||||
#include <AppStd_Application.hxx>
|
||||
#include <CDM_COutMessageDriver.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : AppStd_Application
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
AppStd_Application::AppStd_Application()
|
||||
{
|
||||
myMessageDriver = new CDM_COutMessageDriver;
|
||||
|
73
src/AppStd/AppStd_Application.hxx
Normal file
73
src/AppStd/AppStd_Application.hxx
Normal file
@@ -0,0 +1,73 @@
|
||||
// Created on: 2000-09-07
|
||||
// Created by: TURIN Anatoliy <ati@nnov.matra-dtv.fr>
|
||||
// Copyright (c) 2000-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _AppStd_Application_HeaderFile
|
||||
#define _AppStd_Application_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <TDocStd_Application.hxx>
|
||||
#include <TColStd_SequenceOfExtendedString.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
class CDM_MessageDriver;
|
||||
|
||||
|
||||
class AppStd_Application;
|
||||
DEFINE_STANDARD_HANDLE(AppStd_Application, TDocStd_Application)
|
||||
|
||||
|
||||
class AppStd_Application : public TDocStd_Application
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT AppStd_Application();
|
||||
|
||||
Standard_EXPORT virtual Handle(CDM_MessageDriver) MessageDriver() Standard_OVERRIDE;
|
||||
|
||||
//! returns supported format for application documents.
|
||||
Standard_EXPORT virtual void Formats (TColStd_SequenceOfExtendedString& theFormats) Standard_OVERRIDE;
|
||||
|
||||
//! returns the file name which contains application
|
||||
//! resources
|
||||
Standard_EXPORT Standard_CString ResourcesName();
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(AppStd_Application,TDocStd_Application)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(CDM_MessageDriver) myMessageDriver;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _AppStd_Application_HeaderFile
|
2
src/AppStd/FILES
Normal file
2
src/AppStd/FILES
Normal file
@@ -0,0 +1,2 @@
|
||||
AppStd_Application.cxx
|
||||
AppStd_Application.hxx
|
Reference in New Issue
Block a user