0031313: Foundation Classes - Dump improvement for classes
[occt.git] / src / BRep / BRep_GCurve.cxx
1 // Created on: 1995-03-15
2 // Created by: Laurent PAINNOT
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17
18 #include <BRep_GCurve.hxx>
19 #include <gp_Pnt.hxx>
20 #include <Standard_Type.hxx>
21 #include <TopLoc_Location.hxx>
22
23 IMPLEMENT_STANDARD_RTTIEXT(BRep_GCurve,BRep_CurveRepresentation)
24
25 //=======================================================================
26 //function : BRep_GCurve
27 //purpose  : 
28 //=======================================================================
29 BRep_GCurve::BRep_GCurve(const TopLoc_Location& L, 
30                          const Standard_Real First, 
31                          const Standard_Real Last):
32                          BRep_CurveRepresentation(L),
33                          myFirst(First),
34                          myLast(Last)
35                          
36 {
37 }
38
39 //=======================================================================
40 //function : Update
41 //purpose  : 
42 //=======================================================================
43
44 void BRep_GCurve::Update()
45 {
46   
47 }
48
49 //=======================================================================
50 //function : DumpJson
51 //purpose  : 
52 //=======================================================================
53 void BRep_GCurve::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
54 {
55   OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
56
57   OCCT_DUMP_BASE_CLASS (theOStream, theDepth, BRep_CurveRepresentation)
58
59   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myFirst)
60   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myLast)
61 }