1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +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:
myn
2016-03-11 22:08:01 +03:00
committed by abv
parent 944d808cd0
commit 45d8465ea2
82 changed files with 1524 additions and 1333 deletions

View File

@@ -16,17 +16,19 @@
#define _StdPersistent_HArray1_HeaderFile
#include <StdLPersistent_HArray1.hxx>
#include <StdPersistent_HArray1OfShape1.hxx>
#include <StdObject_Shape.hxx>
#include <NCollection_DefineHArray1.hxx>
DEFINE_HARRAY1 (StdPersistent_HArray1OfShape1,
NCollection_Array1<StdObject_Shape>)
class StdPersistent_HArray1 : private StdLPersistent_HArray1
{
public:
class Shape1 : public StdLPersistent_HArray1::base<StdPersistent_HArray1OfShape1>
{
virtual void readValue (StdObjMgt_ReadData& theReadData,
const Standard_Integer theIndex);
};
typedef instance<StdPersistent_HArray1OfShape1> Shape1;
};
#endif