    

 ## On this page

  

 

 # Parameter&lt; Type &gt; Struct Template Reference

 Last update: 16.07.2025 

This class provides functions to work with a singleton parameter of the givien type. [More...](struct_parameter.xhtml#details)

## <a name="pub-static-methods"></a>Static Public Member Functions

static Type [load](struct_parameter.xhtml#ae504199e2178abdd49fea50a135f9a2a) ([JsonValue](class_json_value.xhtml) root) Static function that deserializaes the value of a parameter with the given type. [More...](#ae504199e2178abdd49fea50a135f9a2a)  
 static [JsonValue](class_json_value.xhtml) [save](struct_parameter.xhtml#a41136433d53167aa64a66be80945d814) (Type t, string="") Static function that takes an instance of a type and renders a Json representation. It uses the default range given in the SerializationTraits. [More...](#a41136433d53167aa64a66be80945d814)  
 static [JsonValue](class_json_value.xhtml) [save](struct_parameter.xhtml#a6ea2eacd9f701a26520d0a2b26463782) (Type t, [CreateRangeBase](struct_create_range_base.xhtml) range, string="") Static function that takes an instance of a type and renders a Json representation. It uses the specific range given by the user. [More...](#a6ea2eacd9f701a26520d0a2b26463782)  
 static [JsonValue](class_json_value.xhtml) [save](struct_parameter.xhtml#ab58ca861d04e5ae6e2545bbeab134ee8) (Type t, Type min\_value, Type max\_value, Type auto\_value, string="") Static function that takes an instance of a type and renders a Json representation. It uses the specific min, max and auto values given by the user. [More...](#ab58ca861d04e5ae6e2545bbeab134ee8)  
 <a id="details" name="details"></a>## Detailed Description

### template&lt;typename Type&gt;  
struct Parameter&lt; Type &gt;

This class provides functions to work with a singleton parameter of the givien type.

Template Parameters TThe type of the parameter 

## Member Function Documentation

<a id="ae504199e2178abdd49fea50a135f9a2a"></a>## [◆ ](#ae504199e2178abdd49fea50a135f9a2a)load()

 static Type load  ( [JsonValue](class_json_value.xhtml)  *root*)   static 

Static function that deserializaes the value of a parameter with the given type.

Parameters rootThe Json object contained the serialized data ReturnsAn instance of Type containing the value present in the serialization 



<a id="a41136433d53167aa64a66be80945d814"></a>## [◆ ](#a41136433d53167aa64a66be80945d814)save() \[1/3\]

 static [JsonValue](class_json_value.xhtml) save  ( Type  *t*,    string   = `""`   )   static 

Static function that takes an instance of a type and renders a Json representation. It uses the default range given in the SerializationTraits.

Parameters tThe instance to serialize display\_nameThe name to display in the GUI ReturnsThe Json serialization 



<a id="a6ea2eacd9f701a26520d0a2b26463782"></a>## [◆ ](#a6ea2eacd9f701a26520d0a2b26463782)save() \[2/3\]

 static [JsonValue](class_json_value.xhtml) save  ( Type  *t*,    [CreateRangeBase](struct_create_range_base.xhtml)  *range*,    string   = `""`   )   static 

Static function that takes an instance of a type and renders a Json representation. It uses the specific range given by the user.

Parameters tThe instance to serialize rangethe custom range to use for this instance display\_nameThe name to display in the GUI ReturnsThe Json serialization 



<a id="ab58ca861d04e5ae6e2545bbeab134ee8"></a>## [◆ ](#ab58ca861d04e5ae6e2545bbeab134ee8)save() \[3/3\]

 static [JsonValue](class_json_value.xhtml) save  ( Type  *t*,    Type  *min\_value*,    Type  *max\_value*,    Type  *auto\_value*,    string   = `""`   )   static 

Static function that takes an instance of a type and renders a Json representation. It uses the specific min, max and auto values given by the user.

Parameters tThe instance to serialize minThe custom minimum value for the range to use for this instance maxThe custom maximum value for the range to use for this instance autoThe custom auto value to use for this instance display\_nameThe name to display in the GUI ReturnsThe Json serialization