%End
-class HYDROData_Bathymetry : HYDROData_Object
+class HYDROData_Bathymetry : HYDROData_Entity
{
%ConvertToSubClassCode
- if ( !Handle(HYDROData_Bathymetry)::DownCast( sipCpp ).IsNull() )
- sipClass = sipClass_HYDROData_Bathymetry;
- else
- sipClass = NULL;
+ switch ( sipCpp->GetKind() )
+ {
+ case KIND_BATHYMETRY:
+ sipClass = sipClass_HYDROData_Bathymetry;
+ break;
+
+ default:
+ // We don't recognise the type.
+ sipClass = NULL;
+ }
%End
%TypeHeaderCode
%End
-
-public:
-
- const ObjectKind GetKind() const;
-
-
public:
// Public methods to work with Bathymetry altitudes.