C# Class MyEverything.MyEverythingDB

Exibir arquivo Open project: yiwenshengmei/MyEverything Class Usage Examples

Public Methods

Method Description
AddRecord ( string volume, List r, MyEverythingRecordType type ) : void
AddRecord ( string volume, MyEverythingRecord record, MyEverythingRecordType type ) : void
ContainsVolume ( string volume ) : bool
DeleteRecord ( string volume, ulong frn ) : bool
FindByFrn ( string volume, ulong frn ) : MyEverythingRecord
FindByName ( string filename, long &foundFileCnt, long &fountFolderCnt ) : List
GetFolderSource ( string volume ) : MyEverythingRecord>.Dictionary
MyEverythingDB ( ) : System
UpdateRecord ( string volume, MyEverythingRecord record, MyEverythingRecordType type ) : void

Private Methods

Method Description
CheckHashTableKey ( MyEverythingRecord>.Dictionary hashtable, string key ) : void
DeleteRecordHashTableItem ( MyEverythingRecord>.Dictionary hashtable, string volume, ulong frn ) : bool
RealUpdateRecord ( string volume, MyEverythingRecord>.Dictionary source, MyEverythingRecord record ) : bool

Method Details

AddRecord() public method

public AddRecord ( string volume, List r, MyEverythingRecordType type ) : void
volume string
r List
type MyEverythingRecordType
return void

AddRecord() public method

public AddRecord ( string volume, MyEverythingRecord record, MyEverythingRecordType type ) : void
volume string
record MyEverythingRecord
type MyEverythingRecordType
return void

ContainsVolume() public method

public ContainsVolume ( string volume ) : bool
volume string
return bool

DeleteRecord() public method

public DeleteRecord ( string volume, ulong frn ) : bool
volume string
frn ulong
return bool

FindByFrn() public method

public FindByFrn ( string volume, ulong frn ) : MyEverythingRecord
volume string
frn ulong
return MyEverythingRecord

FindByName() public method

public FindByName ( string filename, long &foundFileCnt, long &fountFolderCnt ) : List
filename string
foundFileCnt long
fountFolderCnt long
return List

GetFolderSource() public method

public GetFolderSource ( string volume ) : MyEverythingRecord>.Dictionary
volume string
return MyEverythingRecord>.Dictionary

MyEverythingDB() public method

public MyEverythingDB ( ) : System
return System

UpdateRecord() public method

public UpdateRecord ( string volume, MyEverythingRecord record, MyEverythingRecordType type ) : void
volume string
record MyEverythingRecord
type MyEverythingRecordType
return void