2 //=============================================================================
3 // File : SMESH_LocalLength_i.cxx
4 // Created : mar mai 14 13:07:42 CEST 2002
5 // Author : Paul RASCLE, EDF
7 // Copyright : EDF 2002
9 //=============================================================================
12 #include "SMESH_LocalLength_i.hxx"
13 #include "SMESH_Gen.hxx"
14 #include "SMESH_HypothesisFactory.hxx"
16 #include "Utils_CorbaException.hxx"
17 #include "utilities.h"
19 //=============================================================================
22 * _name is related to the class name: prefix = SMESH_ ; suffix = _i .
24 //=============================================================================
26 SMESH_LocalLength_i::SMESH_LocalLength_i(const char* anHyp,
30 MESSAGE("SMESH_LocalLength_i::SMESH_LocalLength_i");
31 _impl = new ::SMESH_LocalLength(genImpl->_hypothesisFactory.GetANewId(),
37 //=============================================================================
41 //=============================================================================
43 SMESH_LocalLength_i::~SMESH_LocalLength_i()
47 //=============================================================================
51 //=============================================================================
53 void SMESH_LocalLength_i::SetLength(CORBA::Double length)
54 throw (SALOME::SALOME_Exception)
59 _impl->SetLength(length);
61 catch (SALOME_Exception& S_ex)
63 THROW_SALOME_CORBA_EXCEPTION(S_ex.what(), \
68 //=============================================================================
72 //=============================================================================
74 CORBA::Double SMESH_LocalLength_i::GetLength()
77 return _impl->GetLength();