// Transient classes
//
if (aClass->IsTransient() && !aName->IsSameString(MS::GetTransientRootName())) {
- Handle(TCollection_HAsciiString) aHandleFile = new TCollection_HAsciiString(outdir);
-
- aHandleFile->AssignCat("Handle_");
- aHandleFile->AssignCat(aName);
- aHandleFile->AssignCat(".hxx");
-
- outfile->Append(aHandleFile);
+ ///Handle(TCollection_HAsciiString) aHandleFile = new TCollection_HAsciiString(outdir);
+ ///aHandleFile->AssignCat("Handle_");
+ ///aHandleFile->AssignCat(aName);
+ ///aHandleFile->AssignCat(".hxx");
+ ///outfile->Append(aHandleFile);
if (aClass->GetInheritsNames()->Length() == 0) {
ErrorMsg() << "CPPExt" << "incomplete metaschema..." << endm;
Standard_NoSuchObject::Raise();
}
- CPP_TransientHandle(api,aName,aClass->GetInheritsNames()->Value(1),aHandleFile);
+ /// CPP_TransientHandle(api,aName,aClass->GetInheritsNames()->Value(1),aHandleFile);
if (aClass->IsKind(STANDARD_TYPE(MS_Error))) {
CPP_ExceptionClass(aMeta,api,aClass,outfile);
// Persistent classes
//
else if (aClass->IsPersistent() && !aName->IsSameString(MS::GetPersistentRootName())) {
- Handle(TCollection_HAsciiString) aHandleFile = new TCollection_HAsciiString(outdir);
+ ///Handle(TCollection_HAsciiString) aHandleFile = new TCollection_HAsciiString(outdir);
- aHandleFile->AssignCat("Handle_");
- aHandleFile->AssignCat(aName);
- aHandleFile->AssignCat(".hxx");
+ ///aHandleFile->AssignCat("Handle_");
+ ///aHandleFile->AssignCat(aName);
+ ///aHandleFile->AssignCat(".hxx");
- outfile->Append(aHandleFile);
+ ///outfile->Append(aHandleFile);
if (aClass->GetInheritsNames()->Length() == 0) {
ErrorMsg() << "CPPExt" << "incomplete metaschema..." << endm;
}
if (!strcmp(api->GetVariableValue("%CPPEXTDBMS")->ToCString(),"OBJY")) {
- CPP_PersistentHandleOBJY(api,aName,aClass->GetInheritsNames()->Value(1),aHandleFile);
+ ///CPP_PersistentHandleOBJY(api,aName,aClass->GetInheritsNames()->Value(1),aHandleFile);
CPP_PersistentClassOBJY(aMeta,api,aClass,outfile);
}
else if (!strcmp(api->GetVariableValue("%CPPEXTDBMS")->ToCString(),"MEM")) {
}
else if (!strcmp(api->GetVariableValue("%CPPEXTDBMS")->ToCString(),"OBJS")) {
- CPP_PersistentHandleOBJS(api,aName,aClass->GetInheritsNames()->Value(1),aHandleFile);
+ ///CPP_PersistentHandleOBJS(api,aName,aClass->GetInheritsNames()->Value(1),aHandleFile);
CPP_PersistentClassOBJS(aMeta,api,aClass,outfile);
}
else if (!strcmp(api->GetVariableValue("%CPPEXTDBMS")->ToCString(),"OO2")) {
}
else if (!strcmp(api->GetVariableValue("%CPPEXTDBMS")->ToCString(),"CSFDB")) {
- CPP_PersistentHandleCSFDB(api,aName,aClass->GetInheritsNames()->Value(1),aHandleFile);
+ ///CPP_PersistentHandleCSFDB(api,aName,aClass->GetInheritsNames()->Value(1),aHandleFile);
CPP_PersistentClassCSFDB(aMeta,api,aClass,outfile);
}
}
$
$#include <Standard.hxx>
$#include <Standard_DefineHandle.hxx>
-$#include <Handle_%Class.hxx>
$
$%TICIncludes
$
+$class Handle(%Inherits);
+$class %Class;
+$DEFINE_STANDARD_HANDLE(%Class, %Inherits)
+$
$%ClassComment
$class %Class : public %Inherits
${
$#include <Standard_DefineException.hxx>
$#include <Standard_SStream.hxx>
$#include <%Inherits.hxx>
-$#include <Handle_%Class.hxx>
+$
+$class %Class;
+$DEFINE_STANDARD_HANDLE(%Class, %Inherits)
$
$#if !defined No_Exception && !defined No_%Class
$ #define %Class_Raise_if(CONDITION, MESSAGE) \