Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.DataManagement.Serialization.StorableAsset Class Reference

Detailed Description

Class that implements API for handling the object as file system asset.

Always use asset instead of this operator. The object itself is envelope standard reference system and guaranties you reference integrity between linked assets.

Todo:
DOCUMENTATION: Should be well documented at the manual.
Inheritance diagram for Doloro.DataManagement.Serialization.StorableAsset:
Collaboration diagram for Doloro.DataManagement.Serialization.StorableAsset:

Classes

class  IO
 

Public Member Functions

 StorableAsset ()
 Empty constructor.
 
 StorableAsset (SerializationInfo info, StreamingContext context)
 Allows to binary serializer instantiate the object from binary. 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 OnPreSave ()
 Occurs before save process started. More...
 
virtual void OnPostSave ()
 Occurs after save process started.
 

Properties

bool isDirty [get, set]
 Asset was modified
 
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.
 

Constructor & Destructor Documentation

◆ StorableAsset()

Doloro.DataManagement.Serialization.StorableAsset.StorableAsset ( SerializationInfo  info,
StreamingContext  context 
)

Allows to binary serializer instantiate the object from binary.

Parameters
info
context

Member Function Documentation

◆ GetObjectData()

virtual void Doloro.DataManagement.Serialization.StorableAsset.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)
virtual

Converts data object to the binary dump.

Parameters
info
context

◆ OnPreSave()

virtual void Doloro.DataManagement.Serialization.StorableAsset.OnPreSave ( )
protectedvirtual

Occurs before save process started.

Reimplemented in Doloro.DataManagement.Tables.Solution, and Doloro.DataManagement.Tables.Spreadsheet.

Property Documentation

◆ asset

StorableAsset Doloro.DataManagement.Serialization.StorableAsset.asset
getsetprotected

Reference to relevant asset.

References itself in case if isObsolete is false.

◆ isObsolete

bool Doloro.DataManagement.Serialization.StorableAsset.isObsolete
getpackage

The asset data is no longer relevant.

Occurs when object was overridden by some data operation (Load etc.) In this case reference

See also
asset

◆ StoredAssetPath

string Doloro.DataManagement.Serialization.StorableAsset.StoredAssetPath
getset

Path to resource binded to the instance.

Changes during IO.LoadAs(string), IO.SaveAs(StorableAsset, string) or manual set operation.


The documentation for this class was generated from the following file: