Class VirtualStorageState
Manages the state of the virtual storage. This class implements the singleton pattern and maintains the current settings and state.
Inherited Members
Namespace: AkiraNetwork.VirtualStorageLibrary
Assembly: VirtualStorageLibrary.dll
Syntax
public class VirtualStorageState
Properties
InvalidNodeNameCharacters
Gets or sets an array of characters that are invalid in node names.
Declaration
public HashSet<char> InvalidNodeNameCharacters { get; set; }
Property Value
Type | Description |
---|---|
HashSet<char> | An array of characters that are invalid in node names. |
InvalidNodeNames
Gets or sets an array of invalid node names.
Declaration
public HashSet<string> InvalidNodeNames { get; set; }
Property Value
Type | Description |
---|---|
HashSet<string> | An array of invalid node names. |
NodeListConditions
Gets or sets the conditions for listing nodes.
Declaration
public VirtualNodeListConditions NodeListConditions { get; set; }
Property Value
Type | Description |
---|---|
VirtualNodeListConditions | The conditions for listing nodes. |
PathDot
Gets or sets the path representing the current directory. The default value is ".".
Declaration
public string PathDot { get; set; }
Property Value
Type | Description |
---|---|
string | The path representing the current directory. |
PathDotDot
Gets or sets the path representing the parent directory. The default value is "..".
Declaration
public string PathDotDot { get; set; }
Property Value
Type | Description |
---|---|
string | The path representing the parent directory. |
PathRoot
Gets or sets the root path. The default value is "/".
Declaration
public string PathRoot { get; set; }
Property Value
Type | Description |
---|---|
string | The root path. |
PathSeparator
Gets or sets the path separator character. The default value is '/'.
Declaration
public char PathSeparator { get; set; }
Property Value
Type | Description |
---|---|
char | The path separator character. |
PrefixDirectory
Gets or sets the prefix used for directory names. The default value is "dir". Used for auto-generating node names.
Declaration
public string PrefixDirectory { get; set; }
Property Value
Type | Description |
---|---|
string | The prefix used for directory names. |
PrefixItem
Gets or sets the prefix used for item names. The default value is "item". Used for auto-generating node names.
Declaration
public string PrefixItem { get; set; }
Property Value
Type | Description |
---|---|
string | The prefix used for item names. |
PrefixSymbolicLink
Gets or sets the prefix used for symbolic link names. The default value is "link". Used for auto-generating node names.
Declaration
public string PrefixSymbolicLink { get; set; }
Property Value
Type | Description |
---|---|
string | The prefix used for symbolic link names. |
State
Gets the current instance of the state.
Declaration
public static VirtualStorageState State { get; }
Property Value
Type | Description |
---|---|
VirtualStorageState |
WildcardMatcher
Gets or sets the wildcard matcher.
Declaration
public IVirtualWildcardMatcher? WildcardMatcher { get; set; }
Property Value
Type | Description |
---|---|
IVirtualWildcardMatcher | The wildcard matcher. |
Methods
SetNodeListConditions(VirtualNodeListConditions)
Sets the conditions for listing nodes.
Declaration
public static void SetNodeListConditions(VirtualNodeListConditions conditions)
Parameters
Type | Name | Description |
---|---|---|
VirtualNodeListConditions | conditions | The conditions for listing nodes. |
SetNodeListConditions(VirtualNodeTypeFilter, VirtualGroupCondition<VirtualNode, object>?, List<VirtualSortCondition<VirtualNode>>?)
Sets the conditions for listing nodes.
Declaration
public static void SetNodeListConditions(VirtualNodeTypeFilter filter, VirtualGroupCondition<VirtualNode, object>? groupCondition = null, List<VirtualSortCondition<VirtualNode>>? sortConditions = null)
Parameters
Type | Name | Description |
---|---|---|
VirtualNodeTypeFilter | filter | The filter for node types. |
VirtualGroupCondition<VirtualNode, object> | groupCondition | The condition for grouping nodes. |
List<VirtualSortCondition<VirtualNode>> | sortConditions | The conditions for sorting nodes. |
SetWildcardMatcher(IVirtualWildcardMatcher)
Sets the wildcard matcher. This method configures the matcher used for searching and filtering node names with the specified wildcard matcher. By setting the wildcard matcher, you can easily search for nodes that match specific patterns.
Declaration
public static void SetWildcardMatcher(IVirtualWildcardMatcher wildcardMatcher)
Parameters
Type | Name | Description |
---|---|---|
IVirtualWildcardMatcher | wildcardMatcher | The instance of the wildcard matcher to set. |