Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
DoubleParameter Struct Reference

#include <double_parameter.h>

Collaboration diagram for DoubleParameter:
[legend]

Public Member Functions

DoubleParameterAllocateDoubleParameter (const struct ServiceData *service_data_p, const ParameterType pt, const char *const name_s, const char *const display_name_s, const char *const description_s, const double64 *default_value_p, const double64 *current_value_p, ParameterLevel level)
 Allocate a DoubleParameter. More...
 

Data Fields

Parameter dp_base_param
 
double64 * dp_current_value_p
 
double64 * dp_default_value_p
 
double64 * dp_min_value_p
 
double64 * dp_max_value_p
 

Member Function Documentation

◆ AllocateDoubleParameter()

DoubleParameter * AllocateDoubleParameter ( const struct ServiceData service_data_p,
const ParameterType  pt,
const char *const  name_s,
const char *const  display_name_s,
const char *const  description_s,
const double64 *  default_value_p,
const double64 *  current_value_p,
ParameterLevel  level 
)

Allocate a DoubleParameter.

Parameters
service_data_pThe ServiceData for the Service that is allocating this Parameter.
name_sThe name of the Parameter. The Parameter will store a copy of this string so this value does not need to remain in scope.
display_name_sAn optional name to display for the Parameter for use in Clients. The Parameter will store a copy of this string so this value does not need to remain in scope. This can be NULL.
description_sThe description of the Parameter. The Parameter will store a copy of this string so this value does not need to remain in scope.
options_pThis can be used to constrain the Parameter to a fixed set of values. If this is NULL then the Parameter can be set to any value.
default_value_pThe default value for this Parameter.
current_value_pIf this is not NULL, then copy this value as the current value of the Parameter. If this is NULL, then current value for this Parameter will be set to be a copy of its default value.
bounds_pIf this is not NULL, then this will be used to specify the minimum and maximum values that this Parameter can take. If this is NULL, then the Parameter can take any value.
levelThe ParameterLevel for this Parameter. This determines when the Client should display this Parameter to the user.
check_value_fnIf this is not NULL, then this will be used to check whether the Parameter has been set to a valid value.
Returns
A newly-allocated Parameter or NULL upon error.

Field Documentation

◆ dp_base_param

Parameter dp_base_param

◆ dp_current_value_p

double64* dp_current_value_p

◆ dp_default_value_p

double64* dp_default_value_p

◆ dp_min_value_p

double64* dp_min_value_p

◆ dp_max_value_p

double64* dp_max_value_p

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