Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-20 09:19:22

0001 // Created by: DAUTRY Philippe
0002 // Copyright (c) 1997-1999 Matra Datavision
0003 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _TDF_HeaderFile
0017 #define _TDF_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022 
0023 #include <Standard_Boolean.hxx>
0024 class Standard_GUID;
0025 class TCollection_ExtendedString;
0026 
0027 //! This package provides data framework for binding
0028 //! features and data structures.
0029 //!
0030 //! The feature structure is a tree used to bind
0031 //! semantic information about each feature together.
0032 //!
0033 //! The only one concrete attribute defined in this
0034 //! package is the TagSource attribute.This attribute
0035 //! is used for random creation of child labels under
0036 //! a given label. Tags are randomly delivered.
0037 class TDF
0038 {
0039 public:
0040   DEFINE_STANDARD_ALLOC
0041 
0042   //! Returns ID "00000000-0000-0000-0000-000000000000",
0043   //! sometimes used as null ID.
0044   Standard_EXPORT static const Standard_GUID& LowestID();
0045 
0046   //! Returns ID "ffffffff-ffff-ffff-ffff-ffffffffffff".
0047   Standard_EXPORT static const Standard_GUID& UppestID();
0048 
0049   //! Sets link between GUID and ProgID in hidden DataMap
0050   Standard_EXPORT static void AddLinkGUIDToProgID(const Standard_GUID&              ID,
0051                                                   const TCollection_ExtendedString& ProgID);
0052 
0053   //! Returns True if there is GUID for given <ProgID> then GUID is returned in <ID>
0054   Standard_EXPORT static bool GUIDFromProgID(const TCollection_ExtendedString& ProgID,
0055                                              Standard_GUID&                    ID);
0056 
0057   //! Returns True if there is ProgID for given <ID> then ProgID is returned in <ProgID>
0058   Standard_EXPORT static bool ProgIDFromGUID(const Standard_GUID&        ID,
0059                                              TCollection_ExtendedString& ProgID);
0060 };
0061 
0062 #endif // _TDF_HeaderFile