mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0027241: Create a complete test case to verify reading of all attribute types from MDTV-Standard document
Added test case that works in one of two modes: 1) create synthetic document (in old version of OCCT) containing all possible attributes. 2) open the document and compare all attributes with expected values. Fixed reading of TDataStd_NamedData, TDataXtd_PatternStd, and PColStd_HArray2OfReal. Point and curve representations are created even from NULL geometry handles. The code is simplified by abandoning usage of templates from StdObjMgt_ContentTypes class for persistent data elements. Fixed SetAsciiString Draw command failed when the target label contained NamedData attribute.
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
#include <TDataStd_IntPackedMap.hxx>
|
||||
|
||||
|
||||
class StdLPersistent_Collection : private StdObjMgt_ContentTypes
|
||||
class StdLPersistent_Collection
|
||||
{
|
||||
// Converters
|
||||
struct noConversion;
|
||||
@@ -54,8 +54,8 @@ class StdLPersistent_Collection : private StdObjMgt_ContentTypes
|
||||
const;
|
||||
|
||||
protected:
|
||||
Value<Standard_Integer> myLower;
|
||||
Value<Standard_Integer> myUpper;
|
||||
Standard_Integer myLower;
|
||||
Standard_Integer myUpper;
|
||||
};
|
||||
|
||||
template <class Base>
|
||||
@@ -118,7 +118,7 @@ class StdLPersistent_Collection : private StdObjMgt_ContentTypes
|
||||
Standard_EXPORT virtual void ImportAttribute();
|
||||
|
||||
private:
|
||||
Value<Standard_Boolean> myDelta;
|
||||
Standard_Boolean myDelta;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user