Gocator Development Kit
 All Classes Files Functions Variables Typedefs Friends Modules Pages
GdkToolVersionInfo.h
Go to the documentation of this file.
1 /**
2 * @file GdkToolVersionInfo.h
3 * @brief Declares the GdkToolCfg class.
4 *
5 * Copyright (C) 2015 by LMI Technologies Inc. All rights reserved.
6 */
7 #ifndef GDK_TOOL_VERSION_INFO_H
8 #define GDK_TOOL_VERSION_INFO_H
9 
10 #include <Gdk/GdkDef.h>
13 
14 kBeginHeader()
15 
16 /**
17 * Describes a tool config version. A version consists of a set of parameters, measurements,
18 * and the parameters of those measurements.
19 *
20 * @class GdkToolVersionInfo
21 * @extends kObject
22 * @ingroup Gdk-Tools
23 */
25 kDeclareClass(Gdk, GdkToolVersionInfo, kObject)
26 
27 /**
28 * Use another version as the base for this version. All parameters and measurements
29 * are copied.
30 *
31 * @public @memberof GdkToolVersionInfo
32 * @param info Info object.
33 * @param source Source info object.
34 * @return Params info.
35 */
36 GdkFx(kStatus) GdkToolVersionInfo_UseBase(GdkToolVersionInfo info, GdkToolVersionInfo source);
37 
38 /**
39 * Returns the schema for the parameters.
40 *
41 * @public @memberof GdkToolVersionInfo
42 * @param info Info object.
43 * @return Params info.
44 */
45 GdkFx(GdkParamsInfo) GdkToolVersionInfo_Params(GdkToolVersionInfo info);
46 
47 /**
48 * Add a measurement type.
49 *
50 * @public @memberof GdkToolVersionInfo
51 * @param info Info object.
52 * @param type Measurement type name (should be unique within the tool).
53 * @param measurementInfo Pointer to receive the new measurement info.
54 * @return Operation status.
55 */
56 GdkFx(kStatus) GdkToolVersionInfo_AddMeasurement(GdkToolVersionInfo info, const kChar* type, GdkMeasurementInfo* measurementInfo);
57 
58 /**
59 * Clears measurement types.
60 *
61 * @public @memberof GdkToolVersionInfo
62 * @param info Info object.
63 * @return Operation status.
64 */
65 GdkFx(kStatus) GdkToolVersionInfo_ClearMeasurements(GdkToolVersionInfo info);
66 
67 /**
68 * Returns the number of measurement types.
69 *
70 * @public @memberof GdkToolVersionInfo
71 * @param info Info object.
72 * @return Measurement type count.
73 */
74 GdkFx(kSize) GdkToolVersionInfo_MeasurementCount(GdkToolVersionInfo info);
75 
76 /**
77 * Returns the measurement type at a specified index.
78 *
79 * @public @memberof GdkToolVersionInfo
80 * @param info Info object.
81 * @param index Measurement type index.
82 * @return Measurement type.
83 */
84 GdkFx(GdkMeasurementInfo) GdkToolVersionInfo_MeasurementAt(GdkToolVersionInfo info, kSize index);
85 
86 /**
87 * Sets the version name. If the name is specified as kNULL, a version will
88 * automatically be generated based on the contents of the version object.
89 *
90 * @public @memberof GdkToolVersionInfo
91 * @param info Info object.
92 * @param version Version name (can be empty string or kNULL).
93 * @return Found version object or kNULL.
94 */
95 GdkFx(kStatus) GdkToolVersionInfo_SetName(GdkToolVersionInfo info, const kChar* version);
96 
97 /**
98 * Returns the version name.
99 *
100 * @public @memberof GdkToolVersionInfo
101 * @param info Info object.
102 * @return Version name.
103 */
104 GdkFx(const kChar*) GdkToolVersionInfo_Name(GdkToolVersionInfo info);
105 
106 kEndHeader()
107 
108 #endif
Essential Gdk declarations.
kStatus GdkToolVersionInfo_AddMeasurement(GdkToolVersionInfo info, const kChar *type, GdkMeasurementInfo *measurementInfo)
Add a measurement type.
kObject kStatus GdkToolVersionInfo_UseBase(GdkToolVersionInfo info, GdkToolVersionInfo source)
Use another version as the base for this version.
Describes a measurement type.
Declares the GdkToolCfg class.
kStatus GdkToolVersionInfo_ClearMeasurements(GdkToolVersionInfo info)
Clears measurement types.
Represents the schema of a parameter set.
kSize GdkToolVersionInfo_MeasurementCount(GdkToolVersionInfo info)
Returns the number of measurement types.
Declares the GdkParamsInfo class.
kStatus GdkToolVersionInfo_SetName(GdkToolVersionInfo info, const kChar *version)
Sets the version name.
GdkParamsInfo GdkToolVersionInfo_Params(GdkToolVersionInfo info)
Returns the schema for the parameters.
Describes a tool config version.
const kChar * GdkToolVersionInfo_Name(GdkToolVersionInfo info)
Returns the version name.
GdkMeasurementInfo GdkToolVersionInfo_MeasurementAt(GdkToolVersionInfo info, kSize index)
Returns the measurement type at a specified index.