Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Spreadsheet that contains data of the table explorer editor.
Public Member Functions | |
Solution () | |
Creates empty solution. | |
Solution (SerializationInfo info, StreamingContext context) | |
Allows to binary serializer instantiate the object from binary. More... | |
Solution (params string[] resourcePaths) | |
Creates solution for the resources located by defined paths. More... | |
Solution (params Spreadsheet[] ramSheets) | |
Creates solution for the RAM located spreadsheets. More... | |
void | SetDirty (Spreadsheet source) |
Marks data source as modified. More... | |
void | LoadSpreadsheet (string reference, out Spreadsheet sheet) |
Trying to load spreadsheet by reference defined by index. In case if already loaded, reloads data with the referenced source. More... | |
void | LoadSpreadsheet (int idx, out Spreadsheet sheet) |
Trying to load spreadsheet by reference defined by index. In case if already loaded, reloads data with the referenced source. More... | |
bool | IsSpreadsheetLoaded (string reference) |
Checks is the spreadsheet loaded to the memory. More... | |
bool | UnloadSpreadsheet (string reference) |
Unloading spreadsheet from loaded. Releases allocated memory using by the source Table. More... | |
void | Dispose () |
void | AddReference (string path) |
Adding reference to the data table by the path. More... | |
string | GetRefernce (int index) |
Returns reference by order index. More... | |
bool | RemoveReference (string path, bool disposeData) |
trying to remove reference among registered. More... | |
bool | FindReference (Spreadsheet sheet, out string reference) |
Trying to find resource's file system reference among loaded. More... | |
bool | FindSpreadsheet (string reference, out Spreadsheet sheet) |
Looking for spreadsheet related to resource reference among loaded. More... | |
void | UpdateReference (string oldRef, string newRef) |
Updating one reference value. More... | |
bool | ContaninsReference (string path) |
Checks is the reference already added to the spreadsheet. More... | |
IEnumerator< string > | GetEnumerator () |
Enumerates solution as bunch of spreed sheet references. More... | |
virtual void | GetObjectData (SerializationInfo info, StreamingContext context) |
Converts data object to the binary dump. More... | |
void | SetDirty () |
Marks asset as modified and required save operation. | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Releasing loaded data of connected spreadsheets as well with referenced data tables. More... | |
override void | OnPreSave () |
Checking is some of binded spreadsheet has no reference definition. More... | |
virtual void | OnPostSave () |
Occurs after save process started. | |
Properties | |
new bool | isDirty [get] |
Is the references data or spreadsheet settings was modified. | |
Spreadsheet[] | unsaved [get] |
Array that contains references to the | |
int | ActiveSpreadsheet [get, set] |
Index of the spreadsheet that was in view at the last time. More... | |
int | ReferencesCount [get] |
Count of spreadsheet references binded to the solution. | |
List< string > | references [get] |
Collection of paths to tables data referenced to the spreadsheet. | |
bool | isRamLocated [get] |
Is the object has no binding to the stored resource. | |
bool | isObsolete [get] |
The asset data is no longer relevant. More... | |
StorableAsset | asset [get, set] |
Reference to relevant asset. More... | |
string | StoredAssetPath [get, set] |
Path to resource binded to the instance. More... | |
Events | |
Action | AssetObsoleted |
Occurs when object became obsolete. | |
Doloro.DataManagement.Tables.Solution.Solution | ( | SerializationInfo | info, |
StreamingContext | context | ||
) |
Allows to binary serializer instantiate the object from binary.
info | |
context |
Doloro.DataManagement.Tables.Solution.Solution | ( | params string[] | resourcePaths | ) |
Creates solution for the resources located by defined paths.
resourcePaths | Paths to the serialized Spreadsheet resource. |
Doloro.DataManagement.Tables.Solution.Solution | ( | params Spreadsheet[] | ramSheets | ) |
Creates solution for the RAM located spreadsheets.
ramSheets | Array to sheets to solutions include. |
void Doloro.DataManagement.Tables.Solution.AddReference | ( | string | path | ) |
Adding reference to the data table by the path.
path | Path to the table. |
ArgumentException | Reference already exists. |
ArgumentNullException | Path is null or whitespace. |
bool Doloro.DataManagement.Tables.Solution.ContaninsReference | ( | string | path | ) |
Checks is the reference already added to the spreadsheet.
path | Path to data table. |
ArgumentNullException | Null or whitespace as argument. |
|
protectedvirtual |
Releasing loaded data of connected spreadsheets as well with referenced data tables.
disposing |
bool Doloro.DataManagement.Tables.Solution.FindReference | ( | Spreadsheet | sheet, |
out string | reference | ||
) |
Trying to find resource's file system reference among loaded.
sheet | Loaded sheet related to the solution. |
reference | File system reference in case if found. |
bool Doloro.DataManagement.Tables.Solution.FindSpreadsheet | ( | string | reference, |
out Spreadsheet | sheet | ||
) |
Looking for spreadsheet related to resource reference among loaded.
reference | Path to stored resource. |
sheet |
IEnumerator< string > Doloro.DataManagement.Tables.Solution.GetEnumerator | ( | ) |
Enumerates solution as bunch of spreed sheet references.
|
virtualinherited |
Converts data object to the binary dump.
info | |
context |
string Doloro.DataManagement.Tables.Solution.GetRefernce | ( | int | index | ) |
Returns reference by order index.
index | Index of the reference into definition list. |
IndexOutOfRangeException | index lesser then 0 or greater or equal then ReferencesCount. |
bool Doloro.DataManagement.Tables.Solution.IsSpreadsheetLoaded | ( | string | reference | ) |
Checks is the spreadsheet loaded to the memory.
reference | Spreadsheet asset referenced path. |
void Doloro.DataManagement.Tables.Solution.LoadSpreadsheet | ( | int | idx, |
out Spreadsheet | sheet | ||
) |
Trying to load spreadsheet by reference defined by index. In case if already loaded, reloads data with the referenced source.
idx | Index of the reference into the defined order. |
sheet | Reference to loaded sheet instance in case if operation succeeded. |
IndexOutOfRangeException | value lesser then 0 or greater or equal to the ReferencesCount. |
void Doloro.DataManagement.Tables.Solution.LoadSpreadsheet | ( | string | reference, |
out Spreadsheet | sheet | ||
) |
Trying to load spreadsheet by reference defined by index. In case if already loaded, reloads data with the referenced source.
reference | Path to the referenced asset in file system. |
sheet | Reference to loaded sheet instance in case if operation succeeded. |
In case if reference not found among registered adds it via the AddReference(string) handler.
|
protectedvirtual |
Checking is some of binded spreadsheet has no reference definition.
Reimplemented from Doloro.DataManagement.Serialization.StorableAsset.
bool Doloro.DataManagement.Tables.Solution.RemoveReference | ( | string | path, |
bool | disposeData | ||
) |
trying to remove reference among registered.
path | path to remove. |
disposeData | If true then will release referenced spreadsheet. |
ArgumentNullException | Path is null or whitespace. |
void Doloro.DataManagement.Tables.Solution.SetDirty | ( | Spreadsheet | source | ) |
Marks data source as modified.
source | Source itself. |
bool Doloro.DataManagement.Tables.Solution.UnloadSpreadsheet | ( | string | reference | ) |
Unloading spreadsheet from loaded. Releases allocated memory using by the source Table.
reference |
void Doloro.DataManagement.Tables.Solution.UpdateReference | ( | string | oldRef, |
string | newRef | ||
) |
Updating one reference value.
oldRef | Current reference. Case insensitive. |
newRef | New value to set. |
ArgumentNullException | Reference is null or whitespace. |
|
getset |
Index of the spreadsheet that was in view at the last time.
IndexOutOfRangeException | value lesser then 0 or greater or equal to the ReferencesCount. |
|
getsetprotectedinherited |
Reference to relevant asset.
References itself in case if isObsolete is false.
|
getpackageinherited |
The asset data is no longer relevant.
Occurs when object was overridden by some data operation (Load etc.) In this case reference
|
getsetinherited |
Path to resource binded to the instance.
Changes during IO.LoadAs(string), IO.SaveAs(StorableAsset, string) or manual set operation.