TypeDefinition* newPoly_PortType() { PortType* pPortTypeObj = NULL; TypeDefinition* pObj = new_TypeDefinition(); /* Allocating memory */ pPortTypeObj = (PortType*)malloc(sizeof(PortType)); if (pPortTypeObj == NULL) { pObj->Delete(pObj); return NULL; } pObj->pDerivedObj = pPortTypeObj; /* Pointing to derived object */ pPortTypeObj->super = pObj; pPortTypeObj->synchrone = -1; pObj->super->metaClassName = PortType_metaClassName; pObj->internalGetKey = PortType_internalGetKey; pObj->VisitAttributes = PortType_VisitAttributes; pObj->VisitPathAttributes = PortType_VisitPathAttributes; pObj->VisitReferences = TypeDefinition_VisitReferences; pObj->VisitPathReferences = TypeDefinition_VisitPathReferences; pObj->FindByPath = PortType_FindByPath; pObj->Delete = deletePoly_PortType; return pObj; }
PortType* new_PortType() { PortType* pPortTypeObj = NULL; TypeDefinition* pObj = new_TypeDefinition(); if(pObj == NULL) return NULL; /* Allocating memory */ pPortTypeObj = (PortType*)malloc(sizeof(PortType)); if (pPortTypeObj == NULL) { return NULL; } pPortTypeObj->super = pObj; pPortTypeObj->synchrone = -1; pPortTypeObj->metaClassName = PortType_metaClassName; pPortTypeObj->internalGetKey = PortType_internalGetKey; pPortTypeObj->VisitAttributes = PortType_VisitAttributes; pPortTypeObj->VisitPathAttributes = PortType_VisitPathAttributes; pPortTypeObj->VisitReferences = TypeDefinition_VisitReferences; pPortTypeObj->VisitPathReferences = TypeDefinition_VisitPathReferences; pPortTypeObj->FindByPath = PortType_FindByPath; pPortTypeObj->Delete = delete_PortType; return pPortTypeObj; }
NodeType* new_NodeType() { NodeType* pNodeTypeObj = NULL; TypeDefinition* pObj = new_TypeDefinition(); if(pObj == NULL) return NULL; /* Allocating memory */ pNodeTypeObj = (NodeType*)malloc(sizeof(NodeType)); if (pNodeTypeObj == NULL) { return NULL; } /*pObj->pDerivedObj = pNodeTypeObj; Pointing to derived object */ pNodeTypeObj->super = pObj; pNodeTypeObj->MetaClassName = NodeType_MetaClassName; pNodeTypeObj->InternalGetKey = NodeType_InternalGetKey; pNodeTypeObj->VisitAttributes = NodeType_VisitAttributes; pNodeTypeObj->VisitReferences = TypeDefinition_VisitAttributes; pNodeTypeObj->Delete = delete_NodeType; return pNodeTypeObj; }
TypeDefinition* newPoly_ComponentType(void) { ComponentType* pCompTypeObj = NULL; TypeDefinition* pObj = new_TypeDefinition(); if(pObj == NULL) return NULL; /* Allocating memory */ pCompTypeObj = (ComponentType*)malloc(sizeof(ComponentType)); if (pCompTypeObj == NULL) { pObj->Delete(pObj); return NULL; } pObj->pDerivedObj = pCompTypeObj; /* Pointing to derived object */ pCompTypeObj->super = pObj; pCompTypeObj->eContainer = NULL; pCompTypeObj->path = NULL; pCompTypeObj->refs = NULL; pCompTypeObj->required = NULL; pCompTypeObj->provided = NULL; pCompTypeObj->FindRequiredByID = ComponentType_FindRequiredByID; pCompTypeObj->FindProvidedByID = ComponentType_FindProvidedByID; pCompTypeObj->AddRequired = ComponentType_AddRequired; pCompTypeObj->AddProvided = ComponentType_AddProvided; pCompTypeObj->RemoveRequired = ComponentType_RemoveRequired; pCompTypeObj->RemoveProvided = ComponentType_RemoveProvided; pCompTypeObj->metaClassName = ComponentType_metaClassName; pCompTypeObj->internalGetKey = ComponentType_internalGetKey; pCompTypeObj->VisitAttributes = ComponentType_VisitAttributes; pCompTypeObj->VisitPathAttributes = ComponentType_VisitPathAttributes; pCompTypeObj->VisitReferences = ComponentType_VisitReferences; pCompTypeObj->VisitPathReferences = ComponentType_VisitPathReferences; pObj->super->metaClassName = ComponentType_metaClassName; pObj->internalGetKey = ComponentType_internalGetKey; pObj->VisitAttributes = ComponentType_VisitAttributes; pObj->VisitReferences = ComponentType_VisitReferences; pObj->FindByPath = ComponentType_FindByPath; pObj->Delete = deletePoly_ComponentType; return pObj; }