Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.InvetorySystem.StoragesDatabase.AFeaturesHolderContainer< FeatureType, ContainerType > Class Template Reference

Detailed Description

Data container that provides interface for FeatureContainer collection store.

Template Parameters
FeatureTypeType of operating features.
ContainerTypeType of container using in base operation and events.
Type Constraints
FeatureType :AEntityFeature 
ContainerType :ADataContainer 
Inheritance diagram for Doloro.InvetorySystem.StoragesDatabase.AFeaturesHolderContainer< FeatureType, ContainerType >:
Collaboration diagram for Doloro.InvetorySystem.StoragesDatabase.AFeaturesHolderContainer< FeatureType, ContainerType >:

Public Member Functions

 AFeaturesHolderContainer ()
 Creates new empty container
 
 AFeaturesHolderContainer (Guid id)
 Creates data container with predefined id. More...
 
void SetFeatureState (FeatureType prop)
 Collects session data from the property and stores it in container. More...
 
void SetFeatureState (Type propType, byte[] data)
 Collects session data from the property and stores it in container. More...
 
void SetFeatureState (string propFullType, byte[] data)
 Collects session data from the property and stores it in container. More...
 
bool ContainsFeatureState (FeatureType prop)
 Checks is the container contains binary data related to the property. More...
 
bool ContainsFeatureState (Type prop)
 Checks is the container contains binary data related to the property. More...
 
bool ContainsFeatureState (string prop)
 Checks is the container contains binary data related to the property. More...
 
bool DropFeatureState (Type prop)
 Drops property related data. More...
 
bool DropFeatureState (string prop)
 Drops property data. More...
 
virtual void GetObjectData (SerializationInfo info, StreamingContext context)
 Calling by binary serializer to get object's data. More...
 
virtual object Clone ()
 Clones data container. More...
 

Protected Member Functions

virtual void OnModified ()
 Should be called any time when some important runtime property is changed.
 

Properties

FeatureContainer this[Type type] [get]
 Returns FeatureContainer by type in string format in case if it exists. More...
 
FeatureContainer this[string type] [get]
 Returns FeatureContainer by type in string format in case if it exists. More...
 
Dictionary< string, FeatureContainerfeatures [get]
 Collection of FeatureType related cross-session data in binary format.
 
Guid id [get]
 Unique id of the container.. More...
 

Events

static Action< ContainerType > ContainerModified
 Occurs when any container state has been somehow modified.
 
Action< ContainerType > Modified
 Occurs when a container state has been somehow modified.
 

Constructor & Destructor Documentation

◆ AFeaturesHolderContainer()

Creates data container with predefined id.

Parameters
idId to set.

Member Function Documentation

◆ Clone()

virtual object Doloro.InvetorySystem.StoragesDatabase.ADataContainer< ContainerType >.Clone ( )
virtualinherited

Clones data container.

Returns
Cloned instance.

◆ ContainsFeatureState() [1/3]

bool Doloro.InvetorySystem.StoragesDatabase.AFeaturesHolderContainer< FeatureType, ContainerType >.ContainsFeatureState ( FeatureType  prop)

Checks is the container contains binary data related to the property.

Parameters
propProperty to check.
Returns
true in case if there is stored property data.

◆ ContainsFeatureState() [2/3]

bool Doloro.InvetorySystem.StoragesDatabase.AFeaturesHolderContainer< FeatureType, ContainerType >.ContainsFeatureState ( string  prop)

Checks is the container contains binary data related to the property.

Parameters
propProperty to check.
Returns
true in case if there is stored property data.

◆ ContainsFeatureState() [3/3]

bool Doloro.InvetorySystem.StoragesDatabase.AFeaturesHolderContainer< FeatureType, ContainerType >.ContainsFeatureState ( Type  prop)

Checks is the container contains binary data related to the property.

Parameters
propProperty to check.
Returns
true in case if there is stored property data.

◆ DropFeatureState() [1/2]

bool Doloro.InvetorySystem.StoragesDatabase.AFeaturesHolderContainer< FeatureType, ContainerType >.DropFeatureState ( string  prop)

Drops property data.

Parameters
propProperty name to release.
Returns
Is the property container has been found and released.

◆ DropFeatureState() [2/2]

bool Doloro.InvetorySystem.StoragesDatabase.AFeaturesHolderContainer< FeatureType, ContainerType >.DropFeatureState ( Type  prop)

Drops property related data.

Parameters
propType of the FeatureType to data release.
Returns
Is the property container has been found and released.

◆ GetObjectData()

virtual void Doloro.InvetorySystem.StoragesDatabase.ADataContainer< ContainerType >.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)
virtualinherited

Calling by binary serializer to get object's data.

Parameters
info
context

◆ SetFeatureState() [1/3]

void Doloro.InvetorySystem.StoragesDatabase.AFeaturesHolderContainer< FeatureType, ContainerType >.SetFeatureState ( FeatureType  prop)

Collects session data from the property and stores it in container.

Parameters
propProperty to data save.

◆ SetFeatureState() [2/3]

void Doloro.InvetorySystem.StoragesDatabase.AFeaturesHolderContainer< FeatureType, ContainerType >.SetFeatureState ( string  propFullType,
byte[]  data 
)

Collects session data from the property and stores it in container.

Parameters
propFullTypeFull name of property's type related to the data.
dataBinary data related to the property.

◆ SetFeatureState() [3/3]

void Doloro.InvetorySystem.StoragesDatabase.AFeaturesHolderContainer< FeatureType, ContainerType >.SetFeatureState ( Type  propType,
byte[]  data 
)

Collects session data from the property and stores it in container.

Parameters
propTypeProperty type related to the data.
dataBinary data related to the property.

Property Documentation

◆ id

Guid Doloro.InvetorySystem.StoragesDatabase.ADataContainer< ContainerType >.id
getinherited

Unique id of the container..

Generates new in case if undefined.

◆ this[string type]

FeatureContainer Doloro.InvetorySystem.StoragesDatabase.AFeaturesHolderContainer< FeatureType, ContainerType >.this[string type]
get

Returns FeatureContainer by type in string format in case if it exists.

Parameters
typeType in string format received with the Type.FullName
Returns
Cross-session property data or null in case if not found.

◆ this[Type type]

FeatureContainer Doloro.InvetorySystem.StoragesDatabase.AFeaturesHolderContainer< FeatureType, ContainerType >.this[Type type]
get

Returns FeatureContainer by type in string format in case if it exists.

Parameters
typeType of the FeatureType instance.
Returns
Cross-session property data or null in case if not found.

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