C# Class SIL.CoreImpl.LocalFileWritingSystemStore

A file-based local writing system store.
Inheritance: Palaso.WritingSystems.LdmlInFolderWritingSystemRepository, IFwWritingSystemStore
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
CanSave ( WritingSystemDefinition ws, string &filePath ) : bool

Return true if it will be possible (absent someone changing permissions while we aren't looking) to save changes to the specified writing system.

CreateNew ( ) : IWritingSystemDefinition

Creates a new writing system definition.

LastChecked ( string identifier, System.DateTime dateModified ) : void

LocalFileWritingSystemStore ( string path ) : System

Initializes a new instance of the LocalFileWritingSystemStore class.

LocalFileWritingSystemStore ( string path, IFwWritingSystemStore globalStore ) : System

Initializes a new instance of the LocalFileWritingSystemStore class.

Remove ( string identifier ) : void

Removes the specified identifier.

Save ( ) : void

Saves this instance.

TryGet ( string identifier, IWritingSystemDefinition &ws ) : bool

Gets the specified writing system if it exists.

Méthodes protégées

Méthode Description
CreateLdmlAdaptor ( ) : Palaso.WritingSystems.LdmlDataMapper

Creates an LDML adaptor.

OnChangeNotifySharedStore ( IWritingSystemDefinition ws ) : void

Private Methods

Méthode Description
ReadGlobalWritingSystemsToIgnore ( ) : void
WriteGlobalWritingSystemsToIgnore ( ) : void

Method Details

CanSave() public méthode

Return true if it will be possible (absent someone changing permissions while we aren't looking) to save changes to the specified writing system.
public CanSave ( WritingSystemDefinition ws, string &filePath ) : bool
ws WritingSystemDefinition
filePath string
Résultat bool

CreateLdmlAdaptor() protected méthode

Creates an LDML adaptor.
protected CreateLdmlAdaptor ( ) : Palaso.WritingSystems.LdmlDataMapper
Résultat Palaso.WritingSystems.LdmlDataMapper

CreateNew() public méthode

Creates a new writing system definition.
public CreateNew ( ) : IWritingSystemDefinition
Résultat IWritingSystemDefinition

LastChecked() public méthode

public LastChecked ( string identifier, System.DateTime dateModified ) : void
identifier string The identifier.
dateModified System.DateTime The date modified.
Résultat void

LocalFileWritingSystemStore() public méthode

Initializes a new instance of the LocalFileWritingSystemStore class.
public LocalFileWritingSystemStore ( string path ) : System
path string The path.
Résultat System

LocalFileWritingSystemStore() public méthode

Initializes a new instance of the LocalFileWritingSystemStore class.
public LocalFileWritingSystemStore ( string path, IFwWritingSystemStore globalStore ) : System
path string The path.
globalStore IFwWritingSystemStore The global store.
Résultat System

OnChangeNotifySharedStore() protected méthode

protected OnChangeNotifySharedStore ( IWritingSystemDefinition ws ) : void
ws IWritingSystemDefinition The ws.
Résultat void

Remove() public méthode

Removes the specified identifier.
public Remove ( string identifier ) : void
identifier string The identifier.
Résultat void

Save() public méthode

Saves this instance.
public Save ( ) : void
Résultat void

TryGet() public méthode

Gets the specified writing system if it exists.
public TryGet ( string identifier, IWritingSystemDefinition &ws ) : bool
identifier string The identifier.
ws IWritingSystemDefinition The writing system.
Résultat bool