C# Class SIL.CoreImpl.LocalFileWritingSystemStore

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

Public Methods

Method 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.

Protected Methods

Method Description
CreateLdmlAdaptor ( ) : Palaso.WritingSystems.LdmlDataMapper

Creates an LDML adaptor.

OnChangeNotifySharedStore ( IWritingSystemDefinition ws ) : void

Private Methods

Method Description
ReadGlobalWritingSystemsToIgnore ( ) : void
WriteGlobalWritingSystemsToIgnore ( ) : void

Method Details

CanSave() public method

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
return bool

CreateLdmlAdaptor() protected method

Creates an LDML adaptor.
protected CreateLdmlAdaptor ( ) : Palaso.WritingSystems.LdmlDataMapper
return Palaso.WritingSystems.LdmlDataMapper

CreateNew() public method

Creates a new writing system definition.
public CreateNew ( ) : IWritingSystemDefinition
return IWritingSystemDefinition

LastChecked() public method

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

LocalFileWritingSystemStore() public method

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

LocalFileWritingSystemStore() public method

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

OnChangeNotifySharedStore() protected method

protected OnChangeNotifySharedStore ( IWritingSystemDefinition ws ) : void
ws IWritingSystemDefinition The ws.
return void

Remove() public method

Removes the specified identifier.
public Remove ( string identifier ) : void
identifier string The identifier.
return void

Save() public method

Saves this instance.
public Save ( ) : void
return void

TryGet() public method

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