Gocator Development Kit
 All Classes Files Functions Variables Typedefs Friends Modules Pages
GdkToolCfg.h
Go to the documentation of this file.
1 /**
2 * @file GdkToolCfg.h
3 * @brief Declares the GdkToolCfg class.
4 *
5 * Copyright (C) 2015 by LMI Technologies Inc. All rights reserved.
6 */
7 #ifndef GDK_TOOL_CFG_H
8 #define GDK_TOOL_CFG_H
9 
11 #include <Gdk/Config/GdkParams.h>
12 
13 #include <Gdk/GdkDef.h>
14 
15 kBeginHeader()
16 
17 /**
18 * Represents configuration for a tool.
19 *
20 * @class GdkToolCfg
21 * @extends kObject
22 * @ingroup Gdk-Config
23 */
24 typedef kObject GdkToolCfg;
25 kDeclareInterface(Gdk, GdkToolCfg, kNull)
26 
27 /**
28 * Returns the tool name.
29 *
30 * @public @memberof GdkToolCfg
31 * @param config Configuration object.
32 * @return Pointer to type name.
33 */
34 GdkFx(const kChar*) GdkToolCfg_Name(GdkToolCfg config);
35 
36 /**
37 * Set the data source used by the tool.
38 *
39 * This function should be called only during configuration initialization.
40 *
41 * @public @memberof GdkToolCfg
42 * @param config Configuration object.
43 * @param source Data source.
44 * @return Operation status.
45 */
46 GdkFx(kStatus) GdkToolCfg_SetSource(GdkToolCfg config, GdkDataSource source);
47 
48 /**
49 * Returns the data source used by the tool.
50 *
51 * @public @memberof GdkToolCfg
52 * @param config Configuration object.
53 * @return Data source.
54 */
55 GdkFx(GdkDataSource) GdkToolCfg_Source(GdkToolCfg config);
56 
57 /**
58 * Set the anchor source used by the tool.
59 *
60 * This function should be called only during configuration initialization.
61 *
62 * @public @memberof GdkToolCfg
63 * @param config Configuration object.
64 * @param axis Anchoring axis.
65 * @param id ID of source measurement.
66 * @return Operation status.
67 */
68 GdkFx(kStatus) GdkToolCfg_SetAnchor(GdkToolCfg config, GdkAxis axis, k32s id);
69 
70 /**
71 * Returns the anchor source used by the tool.
72 *
73 * @public @memberof GdkToolCfg
74 * @param config Configuration object.
75 * @param axis Anchoring axis.
76 * @return ID of source measurement.
77 */
78 GdkFx(k32s) GdkToolCfg_Anchor(GdkToolCfg config, GdkAxis axis);
79 
80 /**
81 * Returns user-defined parameter set.
82 *
83 * @public @memberof GdkToolCfg
84 * @param config Configuration object.
85 * @return Parameter set.
86 */
87 GdkFx(GdkParams) GdkToolCfg_Parameters(GdkToolCfg config);
88 
89 /**
90 * Add a new measurement to the tool.
91 *
92 * @public @memberof GdkToolCfg
93 * @param config Configuration object.
94 * @param type Type name of the measurement.
95 * @param measurementCfg Pointer to receive the new measurement.
96 * @return Operation status.
97 */
98 GdkFx(kStatus) GdkToolCfg_AddMeasurement(GdkToolCfg config, const kChar* type, GdkMeasurementCfg* measurementCfg);
99 
100 /**
101 * Returns the number of measurements in the tool.
102 *
103 * @public @memberof GdkToolCfg
104 * @return Number of measurements.
105 */
106 GdkFx(kSize) GdkToolCfg_MeasurementCount(GdkToolCfg config);
107 
108 /**
109 * Returns the measurement at an index.
110 *
111 * @public @memberof GdkToolCfg
112 * @param config Configuration object.
113 * @param index Index of measurement.
114 * @return Measurement handle.
115 */
116 GdkFx(GdkMeasurementCfg) GdkToolCfg_MeasurementAt(GdkToolCfg config, kSize index);
117 
118 /**
119 * Sets the version of the configuration.
120 *
121 * @public @memberof GdkToolCfg
122 * @param config Configuration object.
123 * @param version Version of the config.
124 * @return Operation status.
125 */
126 GdkFx(kStatus) GdkToolCfg_SetVersion(GdkToolCfg config, const kChar* version);
127 
128 /**
129 * Returns the version of the configuration.
130 *
131 * @public @memberof GdkToolCfg
132 * @param config Configuration object.
133 * @return Config version.
134 */
135 GdkFx(const kChar*) GdkToolCfg_Version(GdkToolCfg config);
136 
137 GdkFx(kBool) GdkToolCfg_VersionUnknown(GdkToolCfg config);
138 
139 kEndHeader()
140 
141 #endif
Essential Gdk declarations.
GdkMeasurementCfg GdkToolCfg_MeasurementAt(GdkToolCfg config, kSize index)
Returns the measurement at an index.
kStatus GdkToolCfg_SetVersion(GdkToolCfg config, const kChar *version)
Sets the version of the configuration.
Represents configuration for a measurement.
Declares the GdkMeasurementCfg class.
kStatus GdkToolCfg_AddMeasurement(GdkToolCfg config, const kChar *type, GdkMeasurementCfg *measurementCfg)
Add a new measurement to the tool.
Represents a data source selections.
Declares the GdkParams class.
Represents a set of parameters.
kStatus GdkToolCfg_SetSource(GdkToolCfg config, GdkDataSource source)
Set the data source used by the tool.
kSize GdkToolCfg_MeasurementCount(GdkToolCfg config)
Returns the number of measurements in the tool.
GdkParams GdkToolCfg_Parameters(GdkToolCfg config)
Returns user-defined parameter set.
const kChar * GdkToolCfg_Version(GdkToolCfg config)
Returns the version of the configuration.
kStatus GdkToolCfg_SetAnchor(GdkToolCfg config, GdkAxis axis, k32s id)
Set the anchor source used by the tool.
GdkDataSource GdkToolCfg_Source(GdkToolCfg config)
Returns the data source used by the tool.
Represents configuration for a tool.
Represents data source selections.
k32s GdkToolCfg_Anchor(GdkToolCfg config, GdkAxis axis)
Returns the anchor source used by the tool.
kNull const kChar * GdkToolCfg_Name(GdkToolCfg config)
Returns the tool name.