TheListOfCPPType = new TColStd_HSequenceOfInteger();
TheListOfInteger = new TColStd_HSequenceOfHAsciiString();
TheListOfGlobalUsed.Nullify();
- TheListOfGlobalUsed.Nullify();
+ TheListOfTypeUsed.Nullify();
TheListOfInst.Nullify();
TheListOfGen.Nullify();
}
{
if (TheMetaSchema->IsDefined(theTypeName))
{
- TheListOfGlobalUsed->Append(theTypeName);
+ TheListOfTypeUsed->Append(theTypeName);
return Standard_True;
}
Handle(TCollection_HAsciiString) aPackageName = new TCollection_HAsciiString(ThePackName);
TheInterface->Class(MS::BuildFullName(aPackageName,aClassName));
- TheListOfGlobalUsed->Append(MS::BuildFullName(aPackageName,aClassName));
+ TheListOfTypeUsed->Append(MS::BuildFullName(aPackageName,aClassName));
}
void Method_TypeName()
Handle(TCollection_HAsciiString) aClassName = new TCollection_HAsciiString(TheTypeName);
Handle(TCollection_HAsciiString) aPackageName = new TCollection_HAsciiString(ThePackName);
- TheListOfGlobalUsed->Append(MS::BuildFullName(aPackageName,aClassName));
+ TheListOfTypeUsed->Append(MS::BuildFullName(aPackageName,aClassName));
}
void Interface_Method(char* entityName)
TheAlias->Type(anAliasName,aPackageName);
- TheListOfGlobalUsed->Append(TheAlias->Type());
+ TheListOfTypeUsed->Append(TheAlias->Type());
}
void Alias_End()
Handle(TCollection_HAsciiString) aPackageName = new TCollection_HAsciiString(ThePackName);
ThePointer->Type(athetypename,aPackageName);
- TheListOfGlobalUsed->Append(ThePointer->Type());
+ TheListOfTypeUsed->Append(ThePointer->Type());
}
void Pointer_End()
ThePackage->Class (TheStdClass->Name());
TheStdClass->Package (ThePackage->FullName());
- TheListOfGlobalUsed->Append(TheStdClass->FullName());
+ TheListOfTypeUsed->Append(TheStdClass->FullName());
TheStdClass.Nullify();
TheSimpleClass->Use(TheListOfTypes->Value(i),TheListOfPackages->Value(i));
- TheListOfGlobalUsed->Append(aFullName);
+ TheListOfTypeUsed->Append(aFullName);
}
else
{
TheSimpleClass->Use(TheListOfTypes->Value(i),TheListOfPackages->Value(i));
- TheListOfGlobalUsed->Append(aFullName);
+ TheListOfTypeUsed->Append(aFullName);
}
TheListOfComments->Clear();
if (TheMetaSchema->IsDefined(theTypeName))
{
TheSimpleClass->Friend(aClassName,aPackName);
- TheListOfGlobalUsed->Append(theTypeName);
+ TheListOfTypeUsed->Append(theTypeName);
}
else
{
void Friend_Construct_Begin()
{
- TheConstruc = new MS_Construc(TheMethodName,TheListOfGlobalUsed->Value(TheListOfGlobalUsed->Length()));
+ TheConstruc = new MS_Construc(TheMethodName,TheListOfTypeUsed->Value(TheListOfTypeUsed->Length()));
TheMethod = TheConstruc;
TheMemberMet = TheConstruc;
TheMethod->MetaSchema(TheMetaSchema);
void Friend_InstMet_Begin()
{
- TheInstMet = new MS_InstMet(TheMethodName,TheListOfGlobalUsed->Value(TheListOfGlobalUsed->Length()));
+ TheInstMet = new MS_InstMet(TheMethodName,TheListOfTypeUsed->Value(TheListOfTypeUsed->Length()));
TheMethod = TheInstMet;
TheMemberMet = TheInstMet;
TheMethod->MetaSchema(TheMetaSchema);
void Friend_ClassMet_Begin()
{
- TheClassMet = new MS_ClassMet(TheMethodName,TheListOfGlobalUsed->Value(TheListOfGlobalUsed->Length()));
+ TheClassMet = new MS_ClassMet(TheMethodName,TheListOfTypeUsed->Value(TheListOfTypeUsed->Length()));
TheMethod = TheClassMet;
TheMemberMet = TheClassMet;
TheMethod->MetaSchema(TheMetaSchema);
TheMetaSchema = aMetaSchema;
TheListOfGlobalUsed = aGlobalList;
- TheListOfGlobalUsed = aTypeList;
+ TheListOfTypeUsed = aTypeList;
TheListOfInst = anInstList;
TheListOfGen = anGenList;
TheMetaSchema.Nullify();
TheListOfGlobalUsed.Nullify();
- TheListOfGlobalUsed.Nullify();
+ TheListOfTypeUsed.Nullify();
TheListOfInst.Nullify();
TheListOfGen.Nullify();
TheListOfComments.Nullify();
is
Initialize(aName: HAsciiString; aPackage: HAsciiString);
- Initialize(aName, aPackage : HAsciiString;
- Mother : HAsciiString from TCollection;
- aPrivate, aDeferred, aInComplete: Boolean);
Validity(me; aName: HAsciiString; aPackage: HAsciiString)
is deferred;
}
}
-MS_Class::MS_Class(const Handle(TCollection_HAsciiString)& aName,
- const Handle(TCollection_HAsciiString)& aPackage,
- const Handle(TCollection_HAsciiString)& Mother,
- const Standard_Boolean aPrivate,
- const Standard_Boolean aDeferred,
- const Standard_Boolean aInComplete) : MS_Type(aName)
-{
- if (!aPackage.IsNull()) {
- Handle(TCollection_HAsciiString) aFullName = MS::BuildFullName(aPackage,aName);
-
- if (GetMetaSchema() != 0) {
- Package(aPackage);
- }
-
- myIncomplete = aInComplete;
- myPrivate = aPrivate;
- myDeferred = aDeferred;
- myMother = Mother;
- myInherits = new TColStd_HSequenceOfHAsciiString;
- myUses = new TColStd_HSequenceOfHAsciiString;
- myRaises = new TColStd_HSequenceOfHAsciiString;
- myMethods = new MS_HSequenceOfMemberMet;
- myFields = new MS_HSequenceOfField;
- myFriendMets = new TColStd_HSequenceOfHAsciiString;
- myFriends = new TColStd_HSequenceOfHAsciiString;
- myComment = new TCollection_HAsciiString("");
-
- FullName(aFullName);
- }
- else {
- Standard_NullObject::Raise("MS_Class::MS_Class - aPakage is NULL");
- }
-}
-
void MS_Class::Deferred(const Standard_Boolean aDeferred)
{
myDeferred = aDeferred;
Create(aName: HAsciiString; aPackage: HAsciiString)
returns mutable Error from MS;
- Create(aName, aPackage, Mother : HAsciiString;
- aPrivate, aDeferred, aInComplete: Boolean)
- returns mutable Error from MS;
-
Validity(me; aName: HAsciiString; aPackage: HAsciiString) is redefined;
end Error from MS;
Incomplete(Standard_False);
}
-MS_Error::MS_Error(const Handle(TCollection_HAsciiString)& aName,
- const Handle(TCollection_HAsciiString)& aPackage,
- const Handle(TCollection_HAsciiString)& Mother,
- const Standard_Boolean aPrivate,
- const Standard_Boolean aDeferred,
- const Standard_Boolean aInComplete) : MS_StdClass(aName,aPackage,Mother,aPrivate,aDeferred,aInComplete)
-{
- Incomplete(Standard_False);
-}
-
//void MS_Error::Validity(const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aPackage) const
void MS_Error::Validity(const Handle(TCollection_HAsciiString)& , const Handle(TCollection_HAsciiString)& ) const
{
Create(aName: HAsciiString from TCollection; aPackage: HAsciiString from TCollection)
returns mutable InstClass from MS;
-
- Create(aName, aPackage : HAsciiString from TCollection;
- Mother: HAsciiString from TCollection;
- aPrivate, aDeferred, aInComplete: Boolean)
- returns mutable InstClass from MS;
-
+
Validity(me; aName: HAsciiString from TCollection; aPackage: HAsciiString from TCollection);
InstType(me : mutable; aType: HAsciiString from TCollection; aPackage: HAsciiString from TCollection);
myComment = new TCollection_HAsciiString("");
}
-MS_InstClass::MS_InstClass(const Handle(TCollection_HAsciiString)& aName,
- const Handle(TCollection_HAsciiString)& aPackage,
- const Handle(TCollection_HAsciiString)& Mother,
- const Standard_Boolean aPrivate,
- const Standard_Boolean aDeferred,
- const Standard_Boolean aInComplete)
-: MS_Class(aName,aPackage,Mother,aPrivate,aDeferred,aInComplete), myGenClass(new TCollection_HAsciiString),myBasicInsType(new TColStd_HSequenceOfHAsciiString),myInstType(new TColStd_HSequenceOfHAsciiString),
- myGenType(new TColStd_HSequenceOfHAsciiString),myNestStd(new TColStd_HSequenceOfHAsciiString),
- myNestIns(new TColStd_HSequenceOfHAsciiString),myNestNeu(new TColStd_HSequenceOfHAsciiString),myInstFlag(Standard_False)
-{
- myComment = new TCollection_HAsciiString("");
-}
-
void MS_InstClass::Validity(const Handle(TCollection_HAsciiString)& ,
const Handle(TCollection_HAsciiString)& ) const
{
Create(aName: HAsciiString; aPackage: HAsciiString)
returns mutable StdClass from MS;
-
- Create(aName, aPackage, Mother: HAsciiString;
- aPrivate, aDeferred, aInComplete: Boolean)
- returns mutable StdClass from MS;
-
+
Validity(me; aName: HAsciiString; aPackage: HAsciiString) is virtual;
CreatedBy(me : mutable; anInstClass : InstClass from MS);
myComment = new TCollection_HAsciiString("");
}
-MS_StdClass::MS_StdClass(const Handle(TCollection_HAsciiString)& aName,
- const Handle(TCollection_HAsciiString)& aPackage,
- const Handle(TCollection_HAsciiString)& Mother,
- const Standard_Boolean aPrivate,
- const Standard_Boolean aDeferred,
- const Standard_Boolean aInComplete)
-: MS_Class(aName,aPackage,Mother,aPrivate,aDeferred,aInComplete), myNestingState(Standard_False)
-{
- myComment = new TCollection_HAsciiString("");
-}
-
void MS_StdClass::Validity(const Handle(TCollection_HAsciiString)& ,
const Handle(TCollection_HAsciiString)& ) const
{