protected void EarthView_World_Core_CArchiveFactory_destroyInstance_void_CArchive_Function(IntPtr ptr) { EarthView.World.Core.Archive csobj_ptr = new EarthView.World.Core.Archive(CreatedWhenConstruct.CWC_NotToCreate); csobj_ptr.BindNativeObject(ptr, "CArchive"); csobj_ptr.Delegate = true; IClassFactory csobj_ptrClassFactory = GlobalClassFactoryMap.Get(csobj_ptr.GetCppInstanceTypeName()); if (csobj_ptrClassFactory != null) { csobj_ptr.Delegate = true; csobj_ptr = csobj_ptrClassFactory.Create() as EarthView.World.Core.Archive; csobj_ptr.BindNativeObject(ptr, "CArchive"); csobj_ptr.Delegate = true; } DestroyInstance(csobj_ptr); }
/// <summary> Creates a new object.</summary> /// <param>name= "name" Name of the object to create</param> /// <returns>return An object created by the factory. The type of the object depends on ///the factory.</returns> public virtual EarthView.World.Core.Archive CreateInstance(string name) { IntPtr __ptr = EarthView_World_Core_CArchiveFactory_createInstance_CArchive_EVString(this.NativeObject, name); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Core.Archive csObj = new EarthView.World.Core.Archive(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CArchive"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Core.Archive; csObj.BindNativeObject(__ptr, "CArchive"); csObj.Delegate = true; } return(csObj); }