/usr/include/oce/TDocStd_XLinkTool.hxx is in liboce-ocaf-lite-dev 0.17.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _TDocStd_XLinkTool_HeaderFile
#define _TDocStd_XLinkTool_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>
#include <Standard_Boolean.hxx>
#include <Handle_TDF_DataSet.hxx>
#include <Handle_TDF_RelocationTable.hxx>
class TDF_DataSet;
class TDF_RelocationTable;
class TDF_Label;
//! This tool class is used to copy the content of
//! source label under target label. Only child
//! labels and attributes of source are copied.
//! attributes located out of source scope are not
//! copied by this algorithm.
//! Depending of the called method an external
//! reference is set in the the target document to
//! registred the externallink.
//! Provide services to set, update and perform
//! external references.
//! Warning1: Nothing is provided in this class about the
//! opportunity to copy, set a link or update it.
//! Such decisions must be under application control.
//! Warning2: If the document manages shapes, use after copy
//! TNaming::ChangeShapes(target,M) to make copy of
//! shapes.
class TDocStd_XLinkTool
{
public:
DEFINE_STANDARD_ALLOC
Standard_EXPORT TDocStd_XLinkTool();
//! Copies the content of the label <fromsource> to the label <intarget>.
//! The link is registred with an XLink attribute by <intarget>
//! label. if the content of <fromsource> is not
//! self-contained, and/or <intarget> has already an XLink
//! attribute, an exception is raised.
Standard_EXPORT void CopyWithLink (const TDF_Label& intarget, const TDF_Label& fromsource) ;
//! Update the external reference set at <L>.
//! Example
//! Handle(TDocStd_Document) aDoc;
//! if
//! (!OCAFTest::GetDocument(1,aDoc)) return 1;
//! Handle(TDataStd_Reference) aRef;
//! TDocStd_XLinkTool xlinktool;
//! if
//! (!OCAFTest::Find(aDoc,2),TDataStd_Reference::GetID(),aRef) return 1;
//! xlinktool.UpdateLink(aRef->Label());
//! Exceptions
//! Standard_DomainError if <L> has no XLink attribute.
Standard_EXPORT void UpdateLink (const TDF_Label& L) ;
//! Copy the content of <fromsource> under
//! <intarget>. Noone link is registred. noone check is done.
//! Example
//! Handle(TDocStd_Document) DOC, XDOC;
//! TDF_Label L, XL;
//! TDocStd_XLinkTool xlinktool;
//! xlinktool.Copy(L,XL);
//! Exceptions:
//! Standard_DomainError if the contents of
//! fromsource are not entirely in the scope of this
//! label, in other words, are not self-contained.
//! !!! ==> Warning:
//! If the document manages shapes use the next way:
//! TDocStd_XLinkTool xlinktool;
//! xlinktool.Copy(L,XL);
//! TopTools_DataMapOfShapeShape M;
//! TNaming::ChangeShapes(target,M);
Standard_EXPORT virtual void Copy (const TDF_Label& intarget, const TDF_Label& fromsource) ;
Standard_EXPORT Standard_Boolean IsDone() const;
Standard_EXPORT Handle(TDF_DataSet) DataSet() const;
Standard_EXPORT Handle(TDF_RelocationTable) RelocationTable() const;
protected:
Standard_Boolean isDone;
private:
Handle(TDF_DataSet) myDS;
Handle(TDF_RelocationTable) myRT;
};
#endif // _TDocStd_XLinkTool_HeaderFile
|