%End
%ConvertToSubClassCode
- if ( !Handle(HYDROData_ArtificialObject)::DownCast( sipCpp ).IsNull() )
- sipClass = sipClass_HYDROData_ArtificialObject;
- else if ( !Handle(HYDROData_NaturalObject)::DownCast( sipCpp ).IsNull() )
- sipClass = sipClass_HYDROData_NaturalObject;
- else
- {
- // HYDROData_Object sub-classes provide a unique kind ID.
- switch ( sipCpp->GetKind() )
- {
- case KIND_OBSTACLE:
- sipClass = sipClass_HYDROData_Obstacle;
- break;
-
- case KIND_UNKNOWN:
- sipClass = sipClass_HYDROData_Object;
- break;
-
- default:
- // We don't recognise the type.
- sipClass = NULL;
- }
- }
+ // HYDROData_Object sub-classes provide a unique kind ID.
+ switch ( sipCpp->GetKind() )
+ {
+ case KIND_OBSTACLE:
+ sipClass = sipClass_HYDROData_Obstacle;
+ break;
+
+ case KIND_IMMERSIBLE_ZONE:
+ sipClass = sipClass_HYDROData_ImmersibleZone;
+ break;
+
+ case KIND_UNKNOWN:
+ sipClass = sipClass_HYDROData_Entity;
+ break;
+
+ default:
+ // We don't recognise the type.
+ sipClass = NULL;
+ }
%End
public: