[4761] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
| 2 | <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
|
---|
| 3 | <CodeSnippet Format="1.0.0">
|
---|
| 4 | <Header>
|
---|
| 5 | <Title>HL3.DefineParameter</Title>
|
---|
| 6 | <Author>Andreas Beham</Author>
|
---|
| 7 | <Description>Defines a new parameter by adding it to the collection, as well as defining the parameter property</Description>
|
---|
| 8 | <HelpUrl>https://dev.heuristiclab.com/trac/hl/core/wiki/DevelopersCodeSnippets</HelpUrl>
|
---|
| 9 | <SnippetTypes />
|
---|
| 10 | <Keywords />
|
---|
| 11 | <Shortcut>hl3DefineParam</Shortcut>
|
---|
| 12 | </Header>
|
---|
| 13 | <Snippet>
|
---|
| 14 | <References />
|
---|
| 15 | <Imports>
|
---|
| 16 | <Import>
|
---|
| 17 | <Namespace>HeuristicLab.Parameters</Namespace>
|
---|
| 18 | </Import>
|
---|
| 19 | </Imports>
|
---|
| 20 | <Declarations>
|
---|
| 21 | <Literal Editable="true">
|
---|
| 22 | <ID>ParameterVisibility</ID>
|
---|
| 23 | <Type></Type>
|
---|
| 24 | <ToolTip>public, private or protected</ToolTip>
|
---|
| 25 | <Default>public</Default>
|
---|
| 26 | <Function />
|
---|
| 27 | </Literal>
|
---|
| 28 | <Literal Editable="true">
|
---|
| 29 | <ID>ParameterType</ID>
|
---|
| 30 | <Type />
|
---|
| 31 | <ToolTip>The parameter type (Lookup, Value, ValueLookup, ScopeTreeLookup, ...)</ToolTip>
|
---|
| 32 | <Default>Lookup</Default>
|
---|
| 33 | <Function />
|
---|
| 34 | </Literal>
|
---|
| 35 | <Literal Editable="true">
|
---|
| 36 | <ID>ParameterDataType</ID>
|
---|
| 37 | <Type />
|
---|
| 38 | <ToolTip>The data type of the parameter</ToolTip>
|
---|
| 39 | <Default>IntValue</Default>
|
---|
| 40 | <Function />
|
---|
| 41 | </Literal>
|
---|
| 42 | <Literal Editable="true">
|
---|
| 43 | <ID>ParameterName</ID>
|
---|
| 44 | <Type />
|
---|
| 45 | <ToolTip>The name of the parameter</ToolTip>
|
---|
| 46 | <Default>Name</Default>
|
---|
| 47 | <Function />
|
---|
| 48 | </Literal>
|
---|
| 49 | <Literal Editable="true">
|
---|
| 50 | <ID>ParameterDescription</ID>
|
---|
| 51 | <Type />
|
---|
| 52 | <ToolTip />
|
---|
| 53 | <Default>Missing description.</Default>
|
---|
| 54 | <Function />
|
---|
| 55 | </Literal>
|
---|
| 56 | </Declarations>
|
---|
[7271] | 57 | <Code Language="csharp" Kind="" Delimiter="$"><![CDATA[$ParameterVisibility$ I$ParameterType$Parameter<$ParameterDataType$> $ParameterName$Parameter {
|
---|
| 58 | get { return (I$ParameterType$Parameter<$ParameterDataType$>)Parameters["$ParameterName$"]; }
|
---|
[4761] | 59 | }
|
---|
| 60 | // Parameters.Add(new $ParameterType$Parameter<$ParameterDataType$>("$ParameterName$", "$ParameterDescription$"));]]></Code>
|
---|
| 61 | </Snippet>
|
---|
| 62 | </CodeSnippet>
|
---|
| 63 | </CodeSnippets> |
---|