mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +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:
101
src/XmlMDF/XmlMDF_ADriver.hxx
Normal file
101
src/XmlMDF/XmlMDF_ADriver.hxx
Normal file
@@ -0,0 +1,101 @@
|
||||
// Created on: 2001-07-09
|
||||
// Created by: Julia DOROVSKIKH
|
||||
// Copyright (c) 2001-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 _XmlMDF_ADriver_HeaderFile
|
||||
#define _XmlMDF_ADriver_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <XmlObjMgt_RRelocationTable.hxx>
|
||||
#include <XmlObjMgt_SRelocationTable.hxx>
|
||||
class CDM_MessageDriver;
|
||||
class TDF_Attribute;
|
||||
class TCollection_AsciiString;
|
||||
class XmlObjMgt_Persistent;
|
||||
class TCollection_ExtendedString;
|
||||
|
||||
|
||||
class XmlMDF_ADriver;
|
||||
DEFINE_STANDARD_HANDLE(XmlMDF_ADriver, MMgt_TShared)
|
||||
|
||||
//! Attribute Storage/Retrieval Driver.
|
||||
class XmlMDF_ADriver : public MMgt_TShared
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Returns the version number from which the driver
|
||||
//! is available.
|
||||
Standard_EXPORT virtual Standard_Integer VersionNumber() const;
|
||||
|
||||
//! Creates a new attribute from TDF.
|
||||
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const = 0;
|
||||
|
||||
//! Returns the type of source object,
|
||||
//! inheriting from Attribute from TDF.
|
||||
Standard_EXPORT Handle(Standard_Type) SourceType() const;
|
||||
|
||||
//! Returns the full XML tag name (including NS prefix)
|
||||
Standard_EXPORT const TCollection_AsciiString& TypeName() const;
|
||||
|
||||
//! Translate the contents of <aSource> and put it
|
||||
//! into <aTarget>, using the relocation table
|
||||
//! <aRelocTable> to keep the sharings.
|
||||
Standard_EXPORT virtual Standard_Boolean Paste (const XmlObjMgt_Persistent& aSource, const Handle(TDF_Attribute)& aTarget, XmlObjMgt_RRelocationTable& aRelocTable) const = 0;
|
||||
|
||||
//! Translate the contents of <aSource> and put it
|
||||
//! into <aTarget>, using the relocation table
|
||||
//! <aRelocTable> to keep the sharings.
|
||||
Standard_EXPORT virtual void Paste (const Handle(TDF_Attribute)& aSource, XmlObjMgt_Persistent& aTarget, XmlObjMgt_SRelocationTable& aRelocTable) const = 0;
|
||||
|
||||
//! Send message to Application (usually when error occurres)
|
||||
Standard_EXPORT void WriteMessage (const TCollection_ExtendedString& theMessage) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(XmlMDF_ADriver,MMgt_TShared)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Standard_EXPORT XmlMDF_ADriver(const Handle(CDM_MessageDriver)& theMessageDriver, const Standard_CString theNamespace, const Standard_CString theName = NULL);
|
||||
|
||||
TCollection_AsciiString myTypeName;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(CDM_MessageDriver) myMessageDriver;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _XmlMDF_ADriver_HeaderFile
|
Reference in New Issue
Block a user