Gocator Development Kit
 All Classes Files Functions Variables Typedefs Friends Modules Pages
GdkParam.h
Go to the documentation of this file.
1 /**
2 * @file GdkParam.h
3 * @brief Declares the GdkToolCfg class.
4 *
5 * Copyright (C) 2015 by LMI Technologies Inc. All rights reserved.
6 */
7 #ifndef GDK_EXT_PARAM_H
8 #define GDK_EXT_PARAM_H
9 
10 #include <Gdk/GdkDef.h>
12 
13 kBeginHeader()
14 
15 /**
16 * Represents the data of a configurable parameter.
17 *
18 * @class GdkParam
19 * @extends kObject
20 * @ingroup Gdk-Config
21 */
22 typedef kObject GdkParam;
23 kDeclareClass(Gdk, GdkParam, kObject)
24 
25 GdkFx(kStatus) GdkParam_Construct(GdkParam* param, GdkParamInfo info, kAlloc alloc);
26 
27 GdkFx(kStatus) GdkParam_Assign(GdkParam param, GdkParam source);
28 
29 /**
30 * Sets the used attribute.
31 *
32 * @public @memberof GdkParam
33 * @param param Param object.
34 * @param used Used state.
35 * @return Operation status.
36 */
37 GdkFx(kStatus) GdkParam_SetUsed(GdkParam param, kBool used);
38 
39 /**
40 * Returns the used attribute.
41 *
42 * @public @memberof GdkParam
43 * @param param Param object.
44 * @return Used state.
45 */
46 GdkFx(kBool) GdkParam_Used(GdkParam param);
47 
48 /**
49 * Returns whether or not an optional parameter has been set.
50 *
51 * @public @memberof GdkParam
52 * @param param Param object.
53 * @return Set state.
54 */
55 GdkFx(kBool) GdkParam_IsSet(GdkParam param);
56 
57 /**
58 * Sets the value of an integer parameter.
59 *
60 * @public @memberof GdkParam
61 * @param param Param object.
62 * @param value New parameter value.
63 * @return Operation status.
64 */
65 GdkFx(kStatus) GdkParam_SetInt(GdkParam param, k32s value);
66 
67 /**
68 * Returns the value of an integer parameter.
69 *
70 * @public @memberof GdkParam
71 * @param param Param object.
72 * @return Parameter value.
73 */
74 GdkFx(k32s) GdkParam_AsInt(GdkParam param);
75 
76 /**
77 * Sets the value of a decimal parameter.
78 *
79 * @public @memberof GdkParam
80 * @param param Param object.
81 * @param value New parameter value.
82 * @return Operation status.
83 */
84 GdkFx(kStatus) GdkParam_SetFloat(GdkParam param, k64f value);
85 
86 /**
87 * Returns the value of an decimal parameter.
88 *
89 * @public @memberof GdkParam
90 * @param param Param object.
91 * @return Parameter value.
92 */
93 GdkFx(k64f) GdkParam_AsFloat(GdkParam param);
94 
95 /**
96 * Sets the value of a boolean parameter.
97 *
98 * @public @memberof GdkParam
99 * @param param Param object.
100 * @param value New parameter value.
101 * @return Operation status.
102 */
103 GdkFx(kStatus) GdkParam_SetBool(GdkParam param, kBool value);
104 
105 /**
106 * Returns the value of an boolean parameter.
107 *
108 * @public @memberof GdkParam
109 * @param param Param object.
110 * @return Parameter value.
111 */
112 GdkFx(kBool) GdkParam_AsBool(GdkParam param);
113 
114 /**
115 * Sets the value of a string parameter.
116 *
117 * @public @memberof GdkParam
118 * @param param Param object.
119 * @param value New parameter value.
120 * @return Operation status.
121 */
122 GdkFx(kStatus) GdkParam_SetString(GdkParam param, const kChar* value);
123 
124 /**
125 * Returns the value of a string parameter.
126 *
127 * @public @memberof GdkParam
128 * @param param Param object.
129 * @return Parameter value.
130 */
131 GdkFx(const kChar*) GdkParam_AsString(GdkParam param);
132 
133 /**
134 * Sets the value of a profile region parameter.
135 *
136 * @public @memberof GdkParam
137 * @param param Param object.
138 * @param value New parameter value.
139 * @return Operation status.
140 */
141 GdkFx(kStatus) GdkParam_SetProfileRegion(GdkParam param, const GdkRegionXZ64f* value);
142 
143 /**
144 * Returns the value of a profile region parameter.
145 *
146 * @public @memberof GdkParam
147 * @param param Param object.
148 * @return Pointer to parameter value.
149 */
150 GdkFx(const GdkRegionXZ64f*) GdkParam_AsProfileRegion(GdkParam param);
151 
152 /**
153 * Sets the value of a surface region parameter.
154 *
155 * @public @memberof GdkParam
156 * @param param Param object.
157 * @param value New parameter value.
158 * @return Operation status.
159 */
160 GdkFx(kStatus) GdkParam_SetSurfaceRegion(GdkParam param, const GdkRegion3d64f* value);
161 
162 /**
163 * Returns the value of a surface region parameter.
164 *
165 * @public @memberof GdkParam
166 * @param param Param object.
167 * @return Pointer to parameter value.
168 */
169 GdkFx(const GdkRegion3d64f*) GdkParam_AsSurfaceRegion(GdkParam param);
170 
171 /**
172 * Sets the value of a surface 2D region parameter.
173 *
174 * @public @memberof GdkParam
175 * @param param Param object.
176 * @param value New parameter value.
177 * @return Operation status.
178 */
179 GdkFx(kStatus) GdkParam_SetSurfaceRegion2D(GdkParam param, const GdkRegion2d64f* value);
180 
181 /**
182 * Returns the value of a surface 2D region parameter.
183 *
184 * @public @memberof GdkParam
185 * @param param Param object.
186 * @return Pointer to parameter value.
187 */
188 GdkFx(const GdkRegion2d64f*) GdkParam_AsSurfaceRegion2D(GdkParam param);
189 
190 GdkFx(kStatus) GdkParam_EditableInfo(GdkParam param, GdkParamInfo* info);
191 
192 kEndHeader()
193 
194 #endif
Essential Gdk declarations.
const kChar * GdkParam_AsString(GdkParam param)
Returns the value of a string parameter.
Declares the GdkParamInfo class.
kStatus GdkParam_SetString(GdkParam param, const kChar *value)
Sets the value of a string parameter.
Represents the schema of a configurable parameter.
kStatus GdkParam_SetUsed(GdkParam param, kBool used)
Sets the used attribute.
const GdkRegion2d64f * GdkParam_AsSurfaceRegion2D(GdkParam param)
Returns the value of a surface 2D region parameter.
kStatus GdkParam_SetInt(GdkParam param, k32s value)
Sets the value of an integer parameter.
kStatus GdkParam_SetSurfaceRegion2D(GdkParam param, const GdkRegion2d64f *value)
Sets the value of a surface 2D region parameter.
kStatus GdkParam_SetProfileRegion(GdkParam param, const GdkRegionXZ64f *value)
Sets the value of a profile region parameter.
const GdkRegion3d64f * GdkParam_AsSurfaceRegion(GdkParam param)
Returns the value of a surface region parameter.
k64f GdkParam_AsFloat(GdkParam param)
Returns the value of an decimal parameter.
Represents the data of a configurable parameter.
k32s GdkParam_AsInt(GdkParam param)
Returns the value of an integer parameter.
kStatus GdkParam_SetBool(GdkParam param, kBool value)
Sets the value of a boolean parameter.
kBool GdkParam_Used(GdkParam param)
Returns the used attribute.
kBool GdkParam_AsBool(GdkParam param)
Returns the value of an boolean parameter.
kStatus GdkParam_SetSurfaceRegion(GdkParam param, const GdkRegion3d64f *value)
Sets the value of a surface region parameter.
kStatus GdkParam_SetFloat(GdkParam param, k64f value)
Sets the value of a decimal parameter.
const GdkRegionXZ64f * GdkParam_AsProfileRegion(GdkParam param)
Returns the value of a profile region parameter.
kBool GdkParam_IsSet(GdkParam param)
Returns whether or not an optional parameter has been set.