Click or drag to resize

ZipFileProjectArchiveManagerBase Class

Manages the permanent storage of projects into Zip files, including cloning to, and maintaining a safety copy. This manager uses Zip files zipped with the Altaxo provided Zip routines. This, progressive storage is supported, but the risk of data failures is higher.
Inheritance Hierarchy

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public abstract class ZipFileProjectArchiveManagerBase : IFileBasedProjectArchiveManager, 
	IProjectArchiveManager, IDisposable

The ZipFileProjectArchiveManagerBase type exposes the following members.

Constructors
 NameDescription
Protected methodZipFileProjectArchiveManagerBaseInitializes a new instance of the ZipFileProjectArchiveManagerBase class
Top
Properties
 NameDescription
Protected propertyCreateProjectArchive Creates a new project archive. This function is abstract and must be overridden in derived classes.
Public propertyFileOrFolderName Gets the name of the file or folder. Can be null if no file or folder is set (up to now).
Public propertyIsDisposed Gets a value indicating whether this instance is disposed.
Top
Methods
 NameDescription
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetArchiveReadOnlyThreadSave Gets an archive, for read-only purposes only. The call to this function should be thread-safe. It is required to call ReleaseArchiveThreadSave(Object, IProjectArchive) to release the returned archive if it is no longer in use.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodLoadFromFile Loads a project from a file.
Protected methodLoadFromFileStreamReadonly Loads a project from a file stream in read-only mode. For that, it is tried to make a copy of the file stream, and then use the copy to read the project from.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodReleaseArchiveThreadSave Releases the archive that was claimed with GetArchiveReadOnlyThreadSave(Object).
Public methodSave Saves the specified save project and windows state to the same file or folder that was used to open the project.
Public methodSaveAs Saves the project with a name given in destinationFileName. The name can or can not be the same name as was used before.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventFileOrFolderNameChanged 
Top
Fields
 NameDescription
Protected field_storageSettings 
Top
See Also