public ModifyObject ( IPersistenceLocation location, String name, String newName, String newDesc ) : void | ||
location | IPersistenceLocation | The location of the object being modified. |
name | String | The old name of the object being modified. |
newName | String | The new name of the object being modified. |
newDesc | String | The new description of the object being modified. |
return | void |
/// <summary> /// Update any header properties for an Encog object, for example, /// a rename. /// </summary> /// <param name="name">The name of the object to change. </param> /// <param name="newName">The new name of this object.</param> /// <param name="newDesc">The description for this object.</param> public void UpdateProperties(String name, String newName, String newDesc) { PersistWriter writer = new PersistWriter(this.fileTemp); writer.Begin(); writer.WriteHeader(); writer.BeginObjects(); writer.ModifyObject(this.filePrimary, name, newName, newDesc); writer.EndObjects(); writer.End(); writer.Close(); MergeTemp(); BuildDirectory(); }
/// <summary> /// Update any header properties for an Encog object, for example, /// a rename. /// </summary> /// <param name="name">The name of the object to change. </param> /// <param name="newName">The new name of this object.</param> /// <param name="newDesc">The description for this object.</param> public void UpdateProperties(String name, String newName, String newDesc) { PersistWriter writer = new PersistWriter(this.fileTemp); writer.Begin(); writer.WriteHeader(); writer.BeginObjects(); writer.ModifyObject(this.filePrimary, name, newName, newDesc); writer.EndObjects(); writer.End(); writer.Close(); MergeTemp(); BuildDirectory(); }