if (!CPP_HaveHandleHeaders())
{
- aName = CPP_WithoutHandleSuffix (aName);
+// aName = CPP_WithoutHandleSuffix (aName);
+/**/
+ // do not include any header instead of "Handle_...hxx"
+ // forward declaration will be added separately and will be sufficient
+ Handle(TCollection_HAsciiString) aNonHandledName = CPP_WithoutHandleSuffix (aName);
+ if (! aNonHandledName->IsSameString (aName))
+ {
+ continue;
+ }
+/**/
}
api->AddVariable (VIClass, aName->ToCString());
api->Apply (VTICIncludes, "Include");
continue;
}
- //if (!CPP_HaveHandleHeaders())
+ if (!CPP_HaveHandleHeaders())
{
- aName = CPP_WithoutHandleSuffix (aName);
+// aName = CPP_WithoutHandleSuffix (aName);
+/**/
+ // do not include any header instead of "Handle_...hxx"
+ // forward declaration will be added separately and will be sufficient
+ Handle(TCollection_HAsciiString) aNonHandledName = CPP_WithoutHandleSuffix (aName);
+ if (! aNonHandledName->IsSameString (aName))
+ {
+ continue;
+ }
+/**/
}
api->AddVariable (VIClass, aName->ToCString());
$
$#include <Standard.hxx>
$#include <Standard_DefineAlloc.hxx>
-$#include <Standard_Macro.hxx>
+$#include <Standard_Handle.hxx>
$
$%TICIncludes
$
$#include <Standard_SStream.hxx>
$#include <%Inherits.hxx>
$
-$DEFINE_STANDARD_EXCEPTION(%Class, %Inherits)
+$class %Class;
+$DEFINE_STANDARD_HANDLE(%Class, %Inherits)
$
$#if !defined No_Exception && !defined No_%Class
$ #define %Class_Raise_if(CONDITION, MESSAGE) \
$ #define %Class_Raise_if(CONDITION, MESSAGE)
$#endif
$
+$DEFINE_STANDARD_EXCEPTION(%Class, %Inherits)
+$
$#endif // _%Class_HeaderFile
@end;
@end;
@template ItemConstraintHandle(%DName,%DValue) is
-$#define Handle_%DName Handle_%DValue
+$#define Handle_%DName Handle(%DValue)
@end;
@template ItemHandleDefine (%DName,%DValue) is
-$#define Handle_%DName Handle_%DValue
+$#define Handle_%DName Handle(%DValue)
@end;
@template Undefine(%DName) is
@end;
@template MethodHeader(%Virtual,%RetSpec,%Return,%And,%MethodName,%Arguments,%MetSpec) is
-$%Virtual %RetSpec %Return%And %MethodName(%Arguments) %MetSpec\^
+$%Virtual%RetSpec%Return%And %MethodName(%Arguments)%MetSpec\^
@end;
@template ExternalConstructorHeader(%Class,%Arguments) is
@end;
@template ExternalMethodHeader(%Class,%Virtual,%RetSpec,%Return,%And,%MethodName,%Arguments,%MetSpec) is
-$%Virtual %RetSpec %Return%And %Class::%MethodName(%Arguments) %MetSpec\^
+$%Virtual%RetSpec%Return%And %Class::%MethodName(%Arguments)%MetSpec\^
@end;
@template MethodTemplateDec(%MethodComment,%Method) is
if (!CPP_HaveHandleHeaders())
{
- aName = CPP_WithoutHandleSuffix (aName);
+// aName = CPP_WithoutHandleSuffix (aName);
+/**/
+ // do not include any header instead of "Handle_...hxx"
+ // forward declaration will be added separately and will be sufficient
+ Handle(TCollection_HAsciiString) aNonHandledName = CPP_WithoutHandleSuffix (aName);
+ if (! aNonHandledName->IsSameString (aName))
+ {
+ continue;
+ }
+/**/
}
api->AddVariable (VIClass, aName->ToCString());
api->Apply (VTICIncludes, "Include");