Gocator Development Kit
 All Classes Files Functions Variables Typedefs Friends Modules Pages
GdkParams.h
Go to the documentation of this file.
1 /**
2 * @file GdkParams.h
3 * @brief Declares the GdkParams class.
4 *
5 * Copyright (C) 2015 by LMI Technologies Inc. All rights reserved.
6 */
7 #ifndef GDK_EXT_PARAMS_H
8 #define GDK_EXT_PARAMS_H
9 
10 #include <Gdk/GdkDef.h>
11 #include <Gdk/Config/GdkParam.h>
13 
14 kBeginHeader()
15 
16 /**
17 * Represents a set of parameters.
18 *
19 * @class GdkParams
20 * @extends kObject
21 * @ingroup Gdk-Config
22 */
23 typedef kObject GdkParams;
24 kDeclareClass(Gdk, GdkParams, kObject)
25 
26 /**
27 * Returns the number of parameters in the set.
28 *
29 * @public @memberof GdkParams
30 * @param params Params object.
31 * @return Parameter Count.
32 */
33 GdkFx(kSize) GdkParams_Count(GdkParams params);
34 
35 /**
36 * Returns the parameter at a specified index.
37 *
38 * @public @memberof GdkParams
39 * @param params Params object.
40 * @param index Index of parameter to get.
41 * @return Paramter object.
42 */
43 GdkFx(GdkParam) GdkParams_At(GdkParams params, kSize index);
44 
45 /**
46 * Returns the parameter with a specified name.
47 *
48 * @public @memberof GdkParams
49 * @param params Params object.
50 * @param name Name of the parameter to get.
51 * @return Paramter object.
52 */
53 GdkFx(GdkParam) GdkParams_Find(GdkParams params, const kChar* name);
54 
55 kEndHeader()
56 
57 #endif
Essential Gdk declarations.
Represents a set of parameters.
GdkParam GdkParams_Find(GdkParams params, const kChar *name)
Returns the parameter with a specified name.
Declares the GdkParamsInfo class.
Represents the data of a configurable parameter.
Declares the GdkToolCfg class.
GdkParam GdkParams_At(GdkParams params, kSize index)
Returns the parameter at a specified index.
kObject kSize GdkParams_Count(GdkParams params)
Returns the number of parameters in the set.