1 // This is sample C++ file intended for testing and verifyig automatic upgrade
2 // script. Copy it with extension .cxx and apply upgrade procedure to see
3 // the result, as follows:
4 // > upgrade.bat -src=./adm -inc=./src -recurse -all
6 // Include of Geom_Line.hxx and Geom_Plane.hxx should be added below
9 //========================================================================
11 //========================================================================
13 //------------------------------------------------------------------------
15 //------------------------------------------------------------------------
17 // Should be replaced by <Standard_Type.hxx>
18 #include <Standard_DefineHandle.hxx>
27 // second argument "A_0" should be added
28 DEFINE_STANDARD_RTTI(B_1)
31 class C_2 : public Standard_Transient, B_1
33 // second argument "Standard_Transient" should be added
34 DEFINE_STANDARD_RTTI(C_2)
39 Handle(Geom_Curve) aCurve = new Geom_Line (gp::Origin(), gp::DZ());
40 Handle(Geom_Line) aLine = Handle(Geom_Line)::DownCast (aCurve);
45 IMPLEMENT_STANDARD_RTTIEXT(A, B)
47 //------------------------------------------------------------------------
49 //------------------------------------------------------------------------
51 // force safe mode used for Qt objects
55 // these includes should be recognized as corresponding to forward declarations
56 #include <occt/TColStd_HArray1OfReal.hxx>
58 // these declarations should be just removed
59 class Handle(TColStd_HArray1OfReal);
61 // should be replaced by include of corresponding header
62 class TColStd_Array1OfReal;
63 class Handle(Geom_Curve);
65 // check that trailing spaces at the following line are preserved