Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor Class Reference

Just a dynamic property named after the picked autosampler. The value is just redirected to the mDynPropValue of the task. More...

+ Inheritance diagram for MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor:
+ Collaboration diagram for MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor:

Public Member Functions

 MyPropertyDescriptor (MockDynamicPropsDependingOnDevice parent)
 
override bool CanResetValue (object component)
 
override object GetValue (object component)
 
override void ResetValue (object component)
 
override void SetValue (object component, object value)
 
override bool ShouldSerializeValue (object component)
 
 MyPropertyDescriptor (MockDynamicPropsDependingOnDevice parent)
 
override bool CanResetValue (object component)
 
override object GetValue (object component)
 
override void ResetValue (object component)
 
override void SetValue (object component, object value)
 
override bool ShouldSerializeValue (object component)
 

Properties

override Type ComponentType [get]
 
override bool IsReadOnly [get]
 
override Type PropertyType [get]
 

Static Private Member Functions

static string BuildPropName (string parentDevName)
 
static string BuildPropName (string parentDevName)
 

Private Attributes

readonly MockDynamicPropsDependingOnDevice mParent
 

Detailed Description

Just a dynamic property named after the picked autosampler. The value is just redirected to the mDynPropValue of the task.

Definition at line 87 of file Tasks/MockDynamicPropsDependingOnDevice.cs.

Constructor & Destructor Documentation

◆ MyPropertyDescriptor() [1/2]

MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.MyPropertyDescriptor ( MockDynamicPropsDependingOnDevice parent)

◆ MyPropertyDescriptor() [2/2]

MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.MyPropertyDescriptor ( MockDynamicPropsDependingOnDevice parent)

Definition at line 91 of file Tasks/MockDynamicPropsDependingOnDevice.cs.

91 : base(BuildPropName(parent.mDevName),null)
92 {
93 mParent = parent;
94 }

References MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.mParent.

Member Function Documentation

◆ BuildPropName() [1/2]

static string MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.BuildPropName ( string parentDevName)
staticprivate

Definition at line 77 of file MockDynamicPropsDependingOnDevice.cs.

78 {
79 var sb = new StringBuilder("DynPropFor");
80 foreach (var someChar in parentDevName?? "NoDevice")
81 {
82 if (char.IsLetter(someChar))
83 {
84 sb.Append(someChar);
85 }
86 }
87 return sb.ToString();
88 }

◆ BuildPropName() [2/2]

static string MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.BuildPropName ( string parentDevName)
staticprivate

Definition at line 96 of file Tasks/MockDynamicPropsDependingOnDevice.cs.

97 {
98 var sb = new StringBuilder("DynPropFor");
99 foreach (var someChar in parentDevName?? "NoDevice")
100 {
101 if (char.IsLetter(someChar))
102 {
103 sb.Append(someChar);
104 }
105 }
106 return sb.ToString();
107 }

◆ CanResetValue() [1/2]

override bool MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.CanResetValue ( object component)

◆ CanResetValue() [2/2]

override bool MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.CanResetValue ( object component)

◆ GetValue() [1/2]

override object MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.GetValue ( object component)

◆ GetValue() [2/2]

override object MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.GetValue ( object component)

◆ ResetValue() [1/2]

override void MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.ResetValue ( object component)

Definition at line 94 of file MockDynamicPropsDependingOnDevice.cs.

95 {
96 }

◆ ResetValue() [2/2]

override void MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.ResetValue ( object component)

Definition at line 113 of file Tasks/MockDynamicPropsDependingOnDevice.cs.

114 {
115 }

◆ SetValue() [1/2]

override void MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.SetValue ( object component,
object value )

◆ SetValue() [2/2]

override void MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.SetValue ( object component,
object value )

◆ ShouldSerializeValue() [1/2]

override bool MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.ShouldSerializeValue ( object component)

◆ ShouldSerializeValue() [2/2]

override bool MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.ShouldSerializeValue ( object component)

Member Data Documentation

◆ mParent

readonly MockDynamicPropsDependingOnDevice MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.mParent
private

Property Documentation

◆ ComponentType

override Type MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.ComponentType
get

Definition at line 102 of file MockDynamicPropsDependingOnDevice.cs.

◆ IsReadOnly

override bool MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.IsReadOnly
get

Definition at line 103 of file MockDynamicPropsDependingOnDevice.cs.

◆ PropertyType

override Type MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.MyPropertyDescriptor.PropertyType
get

Definition at line 104 of file MockDynamicPropsDependingOnDevice.cs.


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