NetworkInfo* new_NetworkInfo() { NetworkInfo* pNetInfoObj = NULL; NamedElement* pObj = new_NamedElement(); if(pObj == NULL) return NULL; /* Allocating memory */ pNetInfoObj = (NetworkInfo*)malloc(sizeof(NetworkInfo)); if (pNetInfoObj == NULL) { return NULL; } /*pObj->pDerivedObj = pNetInfoObj; Pointing to derived object */ pNetInfoObj->super = pObj; /*pNetInfoObj->values = hashmap_new();*/ pNetInfoObj->values = NULL; pNetInfoObj->AddValues = NetworkInfo_AddValues; pNetInfoObj->RemoveValues = NetworkInfo_RemoveValues; pNetInfoObj->FindValuesByID = NetworkInfo_FindValuesByID; pNetInfoObj->MetaClassName = NetworkInfo_MetaClassName; pNetInfoObj->InternalGetKey = NetworkInfo_InternalGetKey; pNetInfoObj->VisitAttributes = NetworkInfo_VisitAttributes; pNetInfoObj->VisitReferences = NetworkInfo_VisitReferences; pNetInfoObj->Delete = delete_NetworkInfo; return pNetInfoObj; }
NamedElement* newPoly_TypeLibrary(void) { TypeLibrary* pTypeLibObj = NULL; NamedElement* pObj = new_NamedElement(); /* Allocating memory */ pTypeLibObj = (TypeLibrary*)malloc(sizeof(TypeLibrary)); if (pTypeLibObj == NULL) { pObj->Delete(pObj); return NULL; } pObj->pDerivedObj = pTypeLibObj; /* Pointing to derived object */ pTypeLibObj->subTypes = NULL; pTypeLibObj->eContainer = NULL; pTypeLibObj->FindSubTypesByID = TypeLibrary_FindSubTypesByID; pTypeLibObj->AddSubTypes = TypeLibrary_AddSubTypes; pTypeLibObj->RemoveSubTypes = TypeLibrary_RemoveSubTypes; pObj->metaClassName = TypeLibrary_metaClassName; pObj->internalGetKey = TypeLibrary_internalGetKey; pObj->Delete = deletePoly_TypeLibrary; pObj->VisitAttributes = TypeLibrary_VisitAttributes; pObj->VisitPathAttributes = TypeLibrary_VisitPathAttributes; pObj->VisitReferences = TypeLibrary_VisitReferences; pObj->VisitPathReferences = TypeLibrary_VisitPathReferences; pObj->FindByPath = TypeLibrary_FindByPath; return pObj; }
NetworkProperty* new_NetworkProperty() { NetworkProperty* pNetPropObj = NULL; NamedElement* pObj = new_NamedElement(); if(pObj == NULL) return NULL; /* Allocating memory */ pNetPropObj = (NetworkProperty*)malloc(sizeof(NetworkProperty)); if (pNetPropObj == NULL) { return NULL; } /*pObj->pDerivedObj = pNetPropObj; Pointing to derived object */ pNetPropObj->super = pObj; pNetPropObj->MetaClassName = NetworkProperty_MetaClassName; pNetPropObj->InternalGetKey = NetworkProperty_InternalGetKey; pNetPropObj->VisitAttributes = NetworkProperty_VisitAttributes; /*pNetPropObj->VisitReferences = NetworkProperty_VisitAttributes;*/ pNetPropObj->Delete = delete_NetworkProperty; return pNetPropObj; }
TypeLibrary* new_TypeLibrary(void) { TypeLibrary* pTypeLibObj = NULL; NamedElement* pObj = new_NamedElement(); if(pObj == NULL) return NULL; /* Allocating memory */ pTypeLibObj = (TypeLibrary*)malloc(sizeof(TypeLibrary)); if (pTypeLibObj == NULL) { return NULL; } /* pObj->pDerivedObj = pTypeLibObj; Pointing to derived object */ pTypeLibObj->super = pObj; /*pTypeLibObj->subTypes = hashmap_new();*/ pTypeLibObj->subTypes = NULL; pTypeLibObj->FindSubTypesByID = TypeLibrary_FindSubTypesByID; pTypeLibObj->AddSubTypes = TypeLibrary_AddSubTypes; pTypeLibObj->RemoveSubTypes = TypeLibrary_RemoveSubTypes; pTypeLibObj->MetaClassName = TypeLibrary_MetaClassname; pTypeLibObj->InternalGetKey = TypeLibrary_InternalGetKey; pTypeLibObj->Delete = delete_TypeLibrary; pTypeLibObj->VisitAttributes = TypeLibrary_VisitAttributes; pTypeLibObj->VisitReferences = TypeLibrary_VisitReferences; return pTypeLibObj; }
DeployUnit* new_DeployUnit() { DeployUnit* pDepUnitObj = NULL; NamedElement* pObj = new_NamedElement(); if(pObj == NULL) return NULL; /* Allocating memory */ pDepUnitObj = (DeployUnit*)malloc(sizeof(DeployUnit)); if (pDepUnitObj == NULL) { return NULL; } /*pObj->pDerivedObj = pDepUnitObj; Pointing to derived object */ pDepUnitObj->super = pObj; /* Pointing to the base object */ pDepUnitObj->groupName = NULL; pDepUnitObj->version = NULL; pDepUnitObj->url = NULL; pDepUnitObj->hashcode = NULL; pDepUnitObj->type = NULL; pDepUnitObj->requiredLibs = NULL; pDepUnitObj->eContainer = NULL; pDepUnitObj->internalKey = NULL; pDepUnitObj->AddRequiredLibs = DeployUnit_AddRequiredLibs; pDepUnitObj->RemoveRequiredLibs = DeployUnit_RemoveRequiredLibs; pDepUnitObj->FindRequiredLibsByID = DeployUnit_FindRequiredLibsByID; pDepUnitObj->metaClassName = DeployUnit_metaClassName; pObj->metaClassName = DeployUnit_metaClassName; pDepUnitObj->internalGetKey = DeployUnit_internalGetKey; pDepUnitObj->VisitAttributes = DeployUnit_VisitAttributes; pDepUnitObj->VisitPathAttributes = DeployUnit_VisitPathAttributes; pDepUnitObj->VisitReferences = DeployUnit_VisitReferences; pDepUnitObj->VisitPathReferences = DeployUnit_VisitPathReferences; pDepUnitObj->FindByPath = DeployUnit_FindByPath; pDepUnitObj->Delete = delete_DeployUnit; return pDepUnitObj; }
TypedElement* new_TypedElement(void) { TypedElement* pTypeElemObj = NULL; NamedElement* pObj = new_NamedElement(); if(pObj == NULL) return NULL; /* Allocating memory */ pTypeElemObj = (TypedElement*)malloc(sizeof(TypedElement)); if (pTypeElemObj == NULL) { return NULL; } pObj->pDerivedObj = pObj; /*Pointing to derived object */ pTypeElemObj->super = pObj; pTypeElemObj->genericTypes = NULL; pTypeElemObj->eContainer = NULL; pTypeElemObj->FindGenericTypesByID = TypedElement_FindGenericTypesByID; pTypeElemObj->AddGenericTypes = TypedElement_AddGenericTypes; pTypeElemObj->RemoveGenericTypes = TypedElement_RemoveGenericTypes; pTypeElemObj->metaClassName = TypedElement_metaClassName; pObj->metaClassName = TypedElement_metaClassName; pTypeElemObj->internalGetKey = TypedElement_internalGetKey; pTypeElemObj->Delete = delete_TypedElement; pTypeElemObj->VisitAttributes = TypedElement_VisitAttributes; pTypeElemObj->VisitPathAttributes = TypedElement_VisitPathAttributes; pTypeElemObj->VisitReferences = TypedElement_VisitReferences; pTypeElemObj->VisitPathReferences = TypedElement_VisitPathReferences; pTypeElemObj->FindByPath = TypedElement_FindByPath; return pTypeElemObj; }
TypeLibrary* new_TypeLibrary() { TypeLibrary* pTypeLibObj = NULL; NamedElement* pObj = new_NamedElement(); if(pObj == NULL) return NULL; /* Allocating memory */ pTypeLibObj = (TypeLibrary*)malloc(sizeof(TypeLibrary)); if (pTypeLibObj == NULL) { return NULL; } pTypeLibObj->super = pObj; pTypeLibObj->subTypes = NULL; pTypeLibObj->eContainer = NULL; pTypeLibObj->FindSubTypesByID = TypeLibrary_FindSubTypesByID; pTypeLibObj->AddSubTypes = TypeLibrary_AddSubTypes; pTypeLibObj->RemoveSubTypes = TypeLibrary_RemoveSubTypes; pTypeLibObj->metaClassName = TypeLibrary_metaClassName; pObj->metaClassName = TypeLibrary_metaClassName; pTypeLibObj->internalGetKey = TypeLibrary_internalGetKey; pTypeLibObj->Delete = delete_TypeLibrary; pTypeLibObj->VisitAttributes = TypeLibrary_VisitAttributes; pTypeLibObj->VisitPathAttributes = TypeLibrary_VisitPathAttributes; pTypeLibObj->VisitReferences = TypeLibrary_VisitReferences; pTypeLibObj->VisitPathReferences = TypeLibrary_VisitPathReferences; pTypeLibObj->FindByPath = TypeLibrary_FindByPath; return pTypeLibObj; }
NamedElement* newPoly_DeployUnit() { DeployUnit* pDepUnitObj = NULL; NamedElement* pObj = new_NamedElement(); /* Allocating memory */ pDepUnitObj = (DeployUnit*)malloc(sizeof(DeployUnit)); if (pDepUnitObj == NULL) { pObj->Delete(pObj); return NULL; } pObj->pDerivedObj = pDepUnitObj; /* Pointing to derived object */ /*pDepUnitObj->requiredLibs = hashmap_new();*/ pDepUnitObj->groupName = NULL; pDepUnitObj->version = NULL; pDepUnitObj->url = NULL; pDepUnitObj->hashcode = NULL; pDepUnitObj->type = NULL; pDepUnitObj->requiredLibs = NULL; pDepUnitObj->AddRequiredLibs = DeployUnit_AddRequiredLibs; pDepUnitObj->RemoveRequiredLibs = DeployUnit_RemoveRequiredLibs; pDepUnitObj->FindRequiredLibsByID = DeployUnit_FindRequiredLibsByID; pObj->MetaClassName = DeployUnit_MetaClassName; pObj->InternalGetKey = DeployUnit_InternalGetKey; pObj->VisitAttributes = DeployUnit_VisitAttributes; pObj->VisitReferences = DeployUnit_VisitReferences; pObj->Delete = deletePoly_DeployUnit; return pObj; }