C# Class Pluton.DataStore

Inheritance: CountedInstance
Datei anzeigen Open project: Notulp/Pluton Class Usage Examples

Public Properties

Property Type Description
PATH string
datastore System.Collections.Hashtable

Public Methods

Method Description
Add ( string tablename, object key, object val ) : void
AddFromIni ( string inipath ) : bool
ContainsKey ( string tablename, object key ) : bool
ContainsValue ( string tablename, object val ) : bool
Count ( string tablename ) : int
DataStore ( string path ) : System
Flush ( string tablename ) : void
Get ( string tablename, object key ) : object
GetInstance ( ) : DataStore
GetTable ( string tablename ) : Hashtable
Keys ( string tablename ) : object[]
Load ( ) : void
Remove ( string tablename, object key ) : void
RemoveChars ( string str ) : string
Save ( ) : void
TableToIni ( string tablename, string inipath ) : bool
ToIni ( string inifilename = "DataStore" ) : bool
Values ( string tablename ) : object[]
this ( string tablename, object key ) : object

Private Methods

Method Description
DeserializeIfPossible ( object keyorval ) : object
SerializeIfPossible ( object keyorval ) : object

Method Details

Add() public method

public Add ( string tablename, object key, object val ) : void
tablename string
key object
val object
return void

AddFromIni() public method

public AddFromIni ( string inipath ) : bool
inipath string
return bool

ContainsKey() public method

public ContainsKey ( string tablename, object key ) : bool
tablename string
key object
return bool

ContainsValue() public method

public ContainsValue ( string tablename, object val ) : bool
tablename string
val object
return bool

Count() public method

public Count ( string tablename ) : int
tablename string
return int

DataStore() public method

public DataStore ( string path ) : System
path string
return System

Flush() public method

public Flush ( string tablename ) : void
tablename string
return void

Get() public method

public Get ( string tablename, object key ) : object
tablename string
key object
return object

GetInstance() public static method

public static GetInstance ( ) : DataStore
return DataStore

GetTable() public method

public GetTable ( string tablename ) : Hashtable
tablename string
return System.Collections.Hashtable

Keys() public method

public Keys ( string tablename ) : object[]
tablename string
return object[]

Load() public method

public Load ( ) : void
return void

Remove() public method

public Remove ( string tablename, object key ) : void
tablename string
key object
return void

RemoveChars() public method

public RemoveChars ( string str ) : string
str string
return string

Save() public method

public Save ( ) : void
return void

TableToIni() public method

public TableToIni ( string tablename, string inipath ) : bool
tablename string
inipath string
return bool

ToIni() public method

public ToIni ( string inifilename = "DataStore" ) : bool
inifilename string
return bool

Values() public method

public Values ( string tablename ) : object[]
tablename string
return object[]

this() public method

public this ( string tablename, object key ) : object
tablename string
key object
return object

Property Details

PATH public_oe property

public string PATH
return string

datastore public_oe property

public Hashtable,System.Collections datastore
return System.Collections.Hashtable