mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024870: Provide OCCT RTTI test cases
Test commands for checking performance and functionality of OCCT handles and RTTI added. New test case added for that: test perf fclasses handle. Implementation of opencascade::handle improved to enable compile-time error if two handles of incompatible types are compared. Comparison of handle to NULL is not possible any more; method IsNull() should be used instead. Method LDOM_MemManager::Doc() is removed to avoid cyclic dependency of headers; constructor of LDOM_Document(LDOM_MemManager&) is used directly instead. Inclusion of headers corrected for compilation after previous patch.
This commit is contained in:
@@ -155,7 +155,7 @@ void XmlMDataStd_ExtStringArrayDriver::Paste (const Handle(TDF_Attribute)& theSo
|
||||
anElement.setAttribute(::IsDeltaOn(), aExtStringArray->GetDelta());
|
||||
|
||||
// store a set of elements with string in each of them
|
||||
XmlObjMgt_Document aDoc = anElement.getOwnerDocument().Doc();
|
||||
XmlObjMgt_Document aDoc (anElement.getOwnerDocument());
|
||||
|
||||
for ( Standard_Integer i = aL; i <= anU; i++ )
|
||||
{
|
||||
|
@@ -126,7 +126,7 @@ void XmlMDataStd_ExtStringListDriver::Paste(const Handle(TDF_Attribute)& theSour
|
||||
XmlObjMgt_Element& anElement = theTarget;
|
||||
anElement.setAttribute(::LastIndexString(), anU);
|
||||
|
||||
XmlObjMgt_Document aDoc = anElement.getOwnerDocument().Doc();
|
||||
XmlObjMgt_Document aDoc (anElement.getOwnerDocument());
|
||||
|
||||
TDataStd_ListIteratorOfListOfExtendedString itr(anExtStringList->List());
|
||||
for (; itr.More(); itr.Next())
|
||||
|
@@ -647,7 +647,7 @@ void XmlMDataStd_NamedDataDriver::Paste(const Handle(TDF_Attribute)& theSource,
|
||||
|
||||
Standard_Integer i=0, up;
|
||||
XmlObjMgt_Element& anElement = theTarget;
|
||||
XmlObjMgt_Document aDoc = anElement.getOwnerDocument().Doc();
|
||||
XmlObjMgt_Document aDoc (anElement.getOwnerDocument());
|
||||
if(S->HasIntegers() && !S->GetIntegersContainer().IsEmpty()) {
|
||||
// store a set of elements with string in each of them
|
||||
up = S->GetIntegersContainer().Extent();
|
||||
|
@@ -177,7 +177,7 @@ void XmlMDataStd_ReferenceArrayDriver::Paste(const Handle(TDF_Attribute)& theSou
|
||||
anElement.setAttribute(::FirstIndexString(), aL);
|
||||
anElement.setAttribute(::LastIndexString(), anU);
|
||||
|
||||
XmlObjMgt_Document aDoc = anElement.getOwnerDocument().Doc();
|
||||
XmlObjMgt_Document aDoc (anElement.getOwnerDocument());
|
||||
|
||||
for (Standard_Integer i = aL; i <= anU; i++)
|
||||
{
|
||||
|
@@ -175,7 +175,7 @@ void XmlMDataStd_ReferenceListDriver::Paste(const Handle(TDF_Attribute)& theSour
|
||||
XmlObjMgt_Element& anElement = theTarget;
|
||||
anElement.setAttribute(::LastIndexString(), anU);
|
||||
if(anU == 0) return;
|
||||
XmlObjMgt_Document aDoc = anElement.getOwnerDocument().Doc();
|
||||
XmlObjMgt_Document aDoc (anElement.getOwnerDocument());
|
||||
|
||||
TDF_ListIteratorOfLabelList itr(aReferenceList->List());
|
||||
for (; itr.More(); itr.Next())
|
||||
|
Reference in New Issue
Block a user