//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// Remarques :
+// L'ordre de description des fonctions est le meme dans tous les fichiers
+// HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx :
+// 1. Les generalites : Name, Delete, DumpPython, Dump, Restore
+// 2. Les caracteristiques
+// 3. Le lien avec les autres structures
+//
+// Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier
+//
#include "HOMARD_Hypothesis_i.hxx"
#include "HOMARD_Gen_i.hxx"
HOMARD_Hypothesis_i::~HOMARD_Hypothesis_i()
{
}
-
//=============================================================================
-/*!
- */
+//=============================================================================
+// Generalites
+//=============================================================================
//=============================================================================
void HOMARD_Hypothesis_i::SetName( const char* Name )
{
ASSERT( myHomardHypothesis );
myHomardHypothesis->SetName( Name );
}
-
//=============================================================================
char* HOMARD_Hypothesis_i::GetName()
{
return CORBA::string_dup( myHomardHypothesis->GetName().c_str() );
}
//=============================================================================
-/*!
- */
-//=============================================================================
-void HOMARD_Hypothesis_i::SetCaseCreation( const char* NomCaseCreation )
+CORBA::Long HOMARD_Hypothesis_i::Delete()
{
ASSERT( myHomardHypothesis );
- myHomardHypothesis->SetCaseCreation( NomCaseCreation );
+ char* HypoName = GetName() ;
+ MESSAGE ( "Delete : destruction de l'hypothese " << HypoName );
+ return _gen_i->DeleteHypo(HypoName) ;
}
-
//=============================================================================
-char* HOMARD_Hypothesis_i::GetCaseCreation()
+char* HOMARD_Hypothesis_i::GetDumpPython()
{
ASSERT( myHomardHypothesis );
- return CORBA::string_dup( myHomardHypothesis->GetCaseCreation().c_str() );
+ return CORBA::string_dup( myHomardHypothesis->GetDumpPython().c_str() );
}
//=============================================================================
-char* HOMARD_Hypothesis_i::GetDumpPython()
+std::string HOMARD_Hypothesis_i::Dump() const
{
- ASSERT( myHomardHypothesis );
- return CORBA::string_dup( myHomardHypothesis->GetDumpPython().c_str() );
+ return HOMARD::Dump( *myHomardHypothesis );
}
-
//=============================================================================
-/*!
- */
+bool HOMARD_Hypothesis_i::Restore( const std::string& stream )
+{
+ return HOMARD::Restore( *myHomardHypothesis, stream );
+}
+//=============================================================================
+//=============================================================================
+// Caracteristiques
+//=============================================================================
//=============================================================================
void HOMARD_Hypothesis_i::SetAdapRefinUnRef( CORBA::Long TypeAdap,CORBA::Long TypeRaff, CORBA::Long TypeDera )
{
myHomardHypothesis->SetAdapType( TypeAdap );
myHomardHypothesis->SetRefinTypeDera( TypeRaff, TypeDera );
}
-
//=============================================================================
HOMARD::listeTypes* HOMARD_Hypothesis_i::GetAdapRefinUnRef()
{
ASSERT( myHomardHypothesis );
return CORBA::Long( myHomardHypothesis->GetUnRefType() );
}
-
-//=============================================================================
-/*!
- */
//=============================================================================
void HOMARD_Hypothesis_i::SetField( const char* FieldName )
{
myHomardHypothesis->SetField( FieldName );
}
//=============================================================================
-void HOMARD_Hypothesis_i::SetRefinThr( CORBA::Long TypeThR, CORBA::Double ThreshR )
-{
- myHomardHypothesis->SetRefinThr( TypeThR, ThreshR );
-}
-//=============================================================================
-void HOMARD_Hypothesis_i::SetUnRefThr( CORBA::Long TypeThC, CORBA::Double ThreshC )
-{
- myHomardHypothesis->SetUnRefThr( TypeThC, ThreshC );
-}
-//=============================================================================
-void HOMARD_Hypothesis_i::SetUseComp( CORBA::Long UsCmpI )
+char* HOMARD_Hypothesis_i::GetFieldName()
{
- myHomardHypothesis->SetUseComp( UsCmpI );
+ ASSERT( myHomardHypothesis );
+ return CORBA::string_dup( myHomardHypothesis->GetFieldName().c_str() );
}
//=============================================================================
void HOMARD_Hypothesis_i::SetUseField( CORBA::Long UsField )
{
myHomardHypothesis->SetUseField( UsField );
}
-
//=============================================================================
HOMARD::InfosHypo* HOMARD_Hypothesis_i::GetField()
{
aInfosHypo->TypeThC = CORBA::Long( myHomardHypothesis->GetUnRefThrType() );
aInfosHypo->ThreshC = CORBA::Double( myHomardHypothesis->GetThreshC() );
aInfosHypo->UsField = CORBA::Long( myHomardHypothesis->GetUseField() );
- aInfosHypo->UsCmpI = CORBA::Long( myHomardHypothesis->GetUseCompI() );
+ aInfosHypo->UsCmpI = CORBA::Long( myHomardHypothesis->GetUseComp() );
return aInfosHypo;
}
//=============================================================================
-char* HOMARD_Hypothesis_i::GetFieldName()
+void HOMARD_Hypothesis_i::SetUseComp( CORBA::Long UsCmpI )
+{
+ myHomardHypothesis->SetUseComp( UsCmpI );
+}
+//=============================================================================
+void HOMARD_Hypothesis_i::AddComp( const char* NomComposant )
{
ASSERT( myHomardHypothesis );
- return CORBA::string_dup( myHomardHypothesis->GetFieldName().c_str() );
+ myHomardHypothesis->AddComp( NomComposant );
+}
+//=============================================================================
+void HOMARD_Hypothesis_i::SupprComp()
+{
+ ASSERT( myHomardHypothesis );
+ myHomardHypothesis->SupprComp();
+}
+//=============================================================================
+HOMARD::listeComposantsHypo* HOMARD_Hypothesis_i::GetListComp()
+{
+ ASSERT( myHomardHypothesis );
+ const std::list<std::string>& ListString = myHomardHypothesis->GetListComp();
+ HOMARD::listeComposantsHypo_var aResult = new HOMARD::listeComposantsHypo;
+ aResult->length( ListString.size() );
+ std::list<std::string>::const_iterator it;
+ int i = 0;
+ for ( it = ListString.begin(); it != ListString.end(); it++ )
+ {
+ aResult[i++] = CORBA::string_dup( (*it).c_str() );
+ }
+ return aResult._retn();
+}
+//=============================================================================
+void HOMARD_Hypothesis_i::SetRefinThr( CORBA::Long TypeThR, CORBA::Double ThreshR )
+{
+ myHomardHypothesis->SetRefinThr( TypeThR, ThreshR );
}
//=============================================================================
CORBA::Long HOMARD_Hypothesis_i::GetRefinThrType()
return CORBA::Long( myHomardHypothesis->GetRefinThrType() );
}
//=============================================================================
+void HOMARD_Hypothesis_i::SetUnRefThr( CORBA::Long TypeThC, CORBA::Double ThreshC )
+{
+ myHomardHypothesis->SetUnRefThr( TypeThC, ThreshC );
+}
+//=============================================================================
CORBA::Long HOMARD_Hypothesis_i::GetUnRefThrType()
{
ASSERT( myHomardHypothesis );
return CORBA::Long( myHomardHypothesis->GetUnRefThrType() );
}
-
-/*!
- */
//=============================================================================
-void HOMARD_Hypothesis_i::AddIteration( const char* NomIteration )
+void HOMARD_Hypothesis_i::SetNivMax( CORBA::Long NivMax )
{
- ASSERT(myHomardHypothesis);
- myHomardHypothesis->AddIteration( NomIteration );
+ ASSERT( myHomardHypothesis );
+ myHomardHypothesis->SetNivMax( NivMax );
}
-
//=============================================================================
-void HOMARD_Hypothesis_i::AddZone( const char* NomZone, CORBA::Long TypeUse )
+CORBA::Long HOMARD_Hypothesis_i::GetNivMax()
{
ASSERT( myHomardHypothesis );
- myHomardHypothesis->AddZone( NomZone, TypeUse );
+ return myHomardHypothesis->GetNivMax();
}
//=============================================================================
-void HOMARD_Hypothesis_i::SupprZone (const char * NomZone)
+void HOMARD_Hypothesis_i::SetDiamMin( CORBA::Double DiamMin )
{
- ASSERT(myHomardHypothesis);
- myHomardHypothesis->SupprZone( NomZone);
+ ASSERT( myHomardHypothesis );
+ myHomardHypothesis->SetDiamMin( DiamMin );
}
//=============================================================================
-HOMARD::listeZonesHypo* HOMARD_Hypothesis_i::GetZones()
+CORBA::Double HOMARD_Hypothesis_i::GetDiamMin()
{
- ASSERT(myHomardHypothesis);
- const std::list<std::string>& ListString = myHomardHypothesis->GetZones();
- HOMARD::listeZonesHypo_var aResult = new HOMARD::listeZonesHypo;
- aResult->length( ListString.size() );
- std::list<std::string>::const_iterator it;
- int i = 0;
- for ( it = ListString.begin(); it != ListString.end(); it++ )
- {
- aResult[i++] = CORBA::string_dup( (*it).c_str() );
- }
- return aResult._retn();
+ ASSERT( myHomardHypothesis );
+ return myHomardHypothesis->GetDiamMin();
}
-
//=============================================================================
-HOMARD::listeIters* HOMARD_Hypothesis_i::GetIterations()
+void HOMARD_Hypothesis_i::SetAdapInit( CORBA::Long AdapInit )
{
- ASSERT(myHomardHypothesis);
- const std::list<std::string>& ListString = myHomardHypothesis->GetIterations();
- HOMARD::listeIters_var aResult = new HOMARD::listeIters;
- aResult->length( ListString.size() );
- std::list<std::string>::const_iterator it;
- int i = 0;
- for ( it = ListString.begin(); it != ListString.end(); it++ )
- {
- aResult[i++] = CORBA::string_dup( (*it).c_str() );
- }
- return aResult._retn();
+ ASSERT( myHomardHypothesis );
+ myHomardHypothesis->SetAdapInit( AdapInit );
}
-
//=============================================================================
-void HOMARD_Hypothesis_i::AddComp( const char* NomComposant )
+CORBA::Long HOMARD_Hypothesis_i::GetAdapInit()
{
ASSERT( myHomardHypothesis );
- myHomardHypothesis->AddComp( NomComposant );
+ return myHomardHypothesis->GetAdapInit();
}
-
//=============================================================================
-void HOMARD_Hypothesis_i::SupprComp()
+void HOMARD_Hypothesis_i::SetLevelOutput( CORBA::Long LevelOutput )
{
ASSERT( myHomardHypothesis );
- myHomardHypothesis->SupprComp();
+ myHomardHypothesis->SetLevelOutput( LevelOutput );
}
-
//=============================================================================
-HOMARD::listeComposantsHypo* HOMARD_Hypothesis_i::GetListComp()
+CORBA::Long HOMARD_Hypothesis_i::GetLevelOutput()
{
ASSERT( myHomardHypothesis );
- const std::list<std::string>& ListString = myHomardHypothesis->GetListComp();
- HOMARD::listeComposantsHypo_var aResult = new HOMARD::listeComposantsHypo;
- aResult->length( ListString.size() );
- std::list<std::string>::const_iterator it;
- int i = 0;
- for ( it = ListString.begin(); it != ListString.end(); it++ )
- {
- aResult[i++] = CORBA::string_dup( (*it).c_str() );
- }
- return aResult._retn();
+ return myHomardHypothesis->GetLevelOutput();
}
//=============================================================================
void HOMARD_Hypothesis_i::AddGroup( const char* Group)
return aResult._retn();
}
//=============================================================================
-/*!
- */
-//=============================================================================
void HOMARD_Hypothesis_i::SetTypeFieldInterp( CORBA::Long TypeFieldInterp )
{
ASSERT( myHomardHypothesis );
ASSERT( myHomardHypothesis );
myHomardHypothesis->AddFieldInterp( FieldInterp );
}
-
//=============================================================================
void HOMARD_Hypothesis_i::SupprFieldInterp()
{
ASSERT( myHomardHypothesis );
myHomardHypothesis->SupprFieldInterp();
}
-
//=============================================================================
HOMARD::listFieldInterpHypo* HOMARD_Hypothesis_i::GetListFieldInterp()
{
return aResult._retn();
}
//=============================================================================
-void HOMARD_Hypothesis_i::SetNivMax( CORBA::Long NivMax )
-{
- ASSERT( myHomardHypothesis );
- myHomardHypothesis->SetNivMax( NivMax );
-}
//=============================================================================
-CORBA::Long HOMARD_Hypothesis_i::GetNivMax()
+// Liens avec les autres structures
+//=============================================================================
+//=============================================================================
+void HOMARD_Hypothesis_i::SetCaseCreation( const char* NomCaseCreation )
{
ASSERT( myHomardHypothesis );
- return myHomardHypothesis->GetNivMax();
+ myHomardHypothesis->SetCaseCreation( NomCaseCreation );
}
//=============================================================================
-void HOMARD_Hypothesis_i::SetDiamMin( CORBA::Double DiamMin )
+char* HOMARD_Hypothesis_i::GetCaseCreation()
{
ASSERT( myHomardHypothesis );
- myHomardHypothesis->SetDiamMin( DiamMin );
+ return CORBA::string_dup( myHomardHypothesis->GetCaseCreation().c_str() );
}
//=============================================================================
-CORBA::Double HOMARD_Hypothesis_i::GetDiamMin()
+void HOMARD_Hypothesis_i::LinkIteration( const char* NomIteration )
{
- ASSERT( myHomardHypothesis );
- return myHomardHypothesis->GetDiamMin();
+ ASSERT(myHomardHypothesis);
+ myHomardHypothesis->LinkIteration( NomIteration );
}
//=============================================================================
-void HOMARD_Hypothesis_i::SetAdapInit( CORBA::Long AdapInit )
+void HOMARD_Hypothesis_i::UnLinkIteration( const char* NomIteration )
{
- ASSERT( myHomardHypothesis );
- myHomardHypothesis->SetAdapInit( AdapInit );
+ ASSERT(myHomardHypothesis);
+ myHomardHypothesis->UnLinkIteration( NomIteration );
}
//=============================================================================
-CORBA::Long HOMARD_Hypothesis_i::GetAdapInit()
+HOMARD::listeIters* HOMARD_Hypothesis_i::GetIterations()
{
- ASSERT( myHomardHypothesis );
- return myHomardHypothesis->GetAdapInit();
+ ASSERT(myHomardHypothesis);
+ const std::list<std::string>& ListString = myHomardHypothesis->GetIterations();
+ HOMARD::listeIters_var aResult = new HOMARD::listeIters;
+ aResult->length( ListString.size() );
+ std::list<std::string>::const_iterator it;
+ int i = 0;
+ for ( it = ListString.begin(); it != ListString.end(); it++ )
+ {
+ aResult[i++] = CORBA::string_dup( (*it).c_str() );
+ }
+ return aResult._retn();
}
//=============================================================================
-void HOMARD_Hypothesis_i::SetLevelOutput( CORBA::Long LevelOutput )
+void HOMARD_Hypothesis_i::AddZone( const char* NomZone, CORBA::Long TypeUse )
{
+ MESSAGE ("Dans AddZone pour " << NomZone) ;
ASSERT( myHomardHypothesis );
- myHomardHypothesis->SetLevelOutput( LevelOutput );
+ char* NomHypo = GetName() ;
+ return _gen_i->AssociateHypoZone(NomHypo, NomZone, TypeUse) ;
}
//=============================================================================
-CORBA::Long HOMARD_Hypothesis_i::GetLevelOutput()
+void HOMARD_Hypothesis_i::AddZone0( const char* NomZone, CORBA::Long TypeUse )
{
+ MESSAGE ("Dans AddZone0 pour " << NomZone) ;
ASSERT( myHomardHypothesis );
- return myHomardHypothesis->GetLevelOutput();
+ myHomardHypothesis->AddZone( NomZone, TypeUse );
}
-
//=============================================================================
-std::string HOMARD_Hypothesis_i::Dump() const
+void HOMARD_Hypothesis_i::SupprZone(const char * NomZone)
{
- return HOMARD::Dump( *myHomardHypothesis );
+ ASSERT(myHomardHypothesis);
+ myHomardHypothesis->SupprZone( NomZone);
}
-
//=============================================================================
-bool HOMARD_Hypothesis_i::Restore( const std::string& stream )
+HOMARD::listeZonesHypo* HOMARD_Hypothesis_i::GetZones()
{
- return HOMARD::Restore( *myHomardHypothesis, stream );
+ ASSERT(myHomardHypothesis);
+ const std::list<std::string>& ListString = myHomardHypothesis->GetZones();
+ HOMARD::listeZonesHypo_var aResult = new HOMARD::listeZonesHypo;
+ aResult->length( ListString.size() );
+ std::list<std::string>::const_iterator it;
+ int i = 0;
+ for ( it = ListString.begin(); it != ListString.end(); it++ )
+ {
+ aResult[i++] = CORBA::string_dup( (*it).c_str() );
+ }
+ return aResult._retn();
}