Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
|
This task demonstrates how to use a custom type descriptor to implement a dynamic list of properties. The number of properties can be changed by setting the PropCount property. More...
Classes | |
class | MyMemberDescriptor |
Member descriptor "implementation" - the defaults are ok for us. More... | |
class | MyPropertyDescriptor |
Custom property descriptor, redirecting get/set into our mPropsValues dictionary. More... | |
Public Member Functions | |
void | PreValidate () |
Called before the schedule construction is completed. | |
void | PostValidate () |
Called after the schedule construction is completed. | |
void | Execute () |
Do whatever you have to do with your parameters. | |
string | GetTaskAction () |
Description of the tasks's action (for hints/time table) | |
FlexibleArguments () | |
override object | GetPropertyOwner (PropertyDescriptor pd) |
Must be overridden, else you'll get NullRefrences when trying to work with the descriptor. | |
override PropertyDescriptorCollection | GetProperties () |
override AttributeCollection | GetAttributes () |
Public Member Functions inherited from AxelSemrau.Chronos.Plugin.ITask |
Properties | |
uint | PropCount [get, set] |
Private Member Functions | |
string | GetArgList () |
Private Attributes | |
readonly Dictionary< string, object > | mPropsValues = new Dictionary<string, object>() |
Storage for fake property names and values. | |
PropertyDescriptorCollection | mPropDescColl |
Caches the list resulting from set_PropCount. | |
readonly List< PropertyDescriptor > | mProps = new List<PropertyDescriptor>() |
readonly AttributeCollection | mAttrs |
uint | mPropCount |
This task demonstrates how to use a custom type descriptor to implement a dynamic list of properties. The number of properties can be changed by setting the PropCount property.
Definition at line 17 of file MockDynamicProperties.cs.
MockPlugin.Tasks.FlexibleArguments.FlexibleArguments | ( | ) |
Definition at line 66 of file MockDynamicProperties.cs.
References MockPlugin.Tasks.FlexibleArguments.mAttrs, MockPlugin.Tasks.FlexibleArguments.mProps, and MockPlugin.Tasks.FlexibleArguments.PropCount.
Referenced by MockPlugin.Tasks.FlexibleArguments.MyPropertyDescriptor.GetValue(), and MockPlugin.Tasks.FlexibleArguments.MyPropertyDescriptor.SetValue().
void MockPlugin.Tasks.FlexibleArguments.Execute | ( | ) |
Do whatever you have to do with your parameters.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 31 of file MockDynamicProperties.cs.
|
private |
Definition at line 36 of file MockDynamicProperties.cs.
References MockPlugin.Tasks.FlexibleArguments.mPropsValues.
Referenced by MockPlugin.Tasks.FlexibleArguments.GetTaskAction().
override AttributeCollection MockPlugin.Tasks.FlexibleArguments.GetAttributes | ( | ) |
override PropertyDescriptorCollection MockPlugin.Tasks.FlexibleArguments.GetProperties | ( | ) |
Definition at line 176 of file MockDynamicProperties.cs.
References MockPlugin.Tasks.FlexibleArguments.mPropDescColl.
override object MockPlugin.Tasks.FlexibleArguments.GetPropertyOwner | ( | PropertyDescriptor | pd | ) |
Must be overridden, else you'll get NullRefrences when trying to work with the descriptor.
pd |
Definition at line 166 of file MockDynamicProperties.cs.
References MockPlugin.Tasks.FlexibleArguments.mProps.
string MockPlugin.Tasks.FlexibleArguments.GetTaskAction | ( | ) |
Description of the tasks's action (for hints/time table)
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 54 of file MockDynamicProperties.cs.
References MockPlugin.Tasks.FlexibleArguments.GetArgList().
void MockPlugin.Tasks.FlexibleArguments.PostValidate | ( | ) |
Called after the schedule construction is completed.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 26 of file MockDynamicProperties.cs.
void MockPlugin.Tasks.FlexibleArguments.PreValidate | ( | ) |
Called before the schedule construction is completed.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 21 of file MockDynamicProperties.cs.
|
private |
Definition at line 186 of file MockDynamicProperties.cs.
Referenced by MockPlugin.Tasks.FlexibleArguments.FlexibleArguments().
|
private |
Definition at line 187 of file MockDynamicProperties.cs.
|
private |
Caches the list resulting from set_PropCount.
Definition at line 174 of file MockDynamicProperties.cs.
Referenced by MockPlugin.Tasks.FlexibleArguments.GetProperties().
|
private |
Definition at line 185 of file MockDynamicProperties.cs.
Referenced by MockPlugin.Tasks.FlexibleArguments.FlexibleArguments(), and MockPlugin.Tasks.FlexibleArguments.GetPropertyOwner().
|
private |
Storage for fake property names and values.
Definition at line 64 of file MockDynamicProperties.cs.
Referenced by MockPlugin.Tasks.FlexibleArguments.GetArgList(), MockPlugin.Tasks.FlexibleArguments.MyPropertyDescriptor.GetValue(), and MockPlugin.Tasks.FlexibleArguments.MyPropertyDescriptor.SetValue().
|
getset |
Definition at line 190 of file MockDynamicProperties.cs.
Referenced by MockPlugin.Tasks.FlexibleArguments.FlexibleArguments().