FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kSensorIdentity.h
Go to the documentation of this file.
1 
8 #ifndef K_FIRESYNC_SENSOR_IDENTITY_H
9 #define K_FIRESYNC_SENSOR_IDENTITY_H
10 
11 #include <kFireSync/kFsDef.h>
12 
18 #define kSENSOR_IDENTITY_FILENAME "Id.xml"
19 #define kSENSOR_IDENTITY_TEMP_FILENAME "/temp/Id.xml"
20 
28 //typedef kObject kSensorIdentity; --forward-declared in kFsDef.x.h
29 
41 kFsFx(kStatus) kSensorIdentity_Construct(kSensorIdentity* identity, kAlloc allocator);
42 
52 kFsFx(kStatus) kSensorIdentity_Load(kSensorIdentity* identity, const kChar* fileName, kAlloc allocator);
53 
62 kFsFx(kStatus) kSensorIdentity_Save(kSensorIdentity identity, const kChar* fileName);
63 
73 kFsFx(kStatus) kSensorIdentity_FromXml(kSensorIdentity* identity, kXml xml, kAlloc allocator);
74 
84 kFsFx(kStatus) kSensorIdentity_ToXml(kSensorIdentity identity, kXml* xml, kAlloc allocator);
85 
94 
103 
112 
121 
134 
143 
152 kFsFx(kBool) kSensorIdentity_FieldExists(kSensorIdentity identity, const kChar* name);
153 
162 kFsFx(k32u) kSensorIdentity_Field32u(kSensorIdentity identity, const kChar* name);
163 
172 kFsFx(k64f) kSensorIdentity_Field64f(kSensorIdentity identity, const kChar* name);
173 
182 kFsFx(const kChar*) kSensorIdentity_FieldText(kSensorIdentity identity, const kChar* name);
183 
193 kFsFx(kStatus) kSensorIdentity_SetField32u(kSensorIdentity identity, const kChar* name, k32u value);
194 
204 kFsFx(kStatus) kSensorIdentity_SetField64f(kSensorIdentity identity, const kChar* name, k64f value);
205 
215 kFsFx(kStatus) kSensorIdentity_SetFieldText(kSensorIdentity identity, const kChar* name, const kChar* value);
216 
225 
233 kFsFx(const kChar*) kSensorIdentity_PartNumber(kSensorIdentity identity);
234 
243 kFsFx(kStatus) kSensorIdentity_SetPartNumber(kSensorIdentity identity, const kChar* value);
244 
253 
262 
272 
281 
290 
299 kFsFx(kStatus) kSensorIdentity_SetClass(kSensorIdentity identity, k32u value);
300 
309 
317 kFsFx(const kChar*) kSensorIdentity_Model(kSensorIdentity identity);
318 
327 kFsFx(kStatus) kSensorIdentity_SetModel(kSensorIdentity identity, const kChar* value);
328 
337 
346 
356 
365 
373 kFsFx(const kChar*) kSensorIdentity_LaserClass(kSensorIdentity identity);
374 
383 kFsFx(kStatus) kSensorIdentity_SetLaserClass(kSensorIdentity identity, const kChar* value);
384 
393 
401 kFsFx(const kChar*) kSensorIdentity_Spectrum(kSensorIdentity identity);
402 
411 kFsFx(kStatus) kSensorIdentity_SetSpectrum(kSensorIdentity identity, const kChar* value);
412 
421 
429 kFsFx(const kChar*) kSensorIdentity_Package(kSensorIdentity identity);
430 
439 kFsFx(kStatus) kSensorIdentity_SetPackage(kSensorIdentity identity, const kChar* value);
440 
449 
458 
468 
477 
486 
495 kFsFx(kStatus) kSensorIdentity_SetFirmwareVersion(kSensorIdentity identity, const kChar* value);
496 
505 
514 
524 
533 
542 
552 
561 
570 
580 
589 
598 kFsFx(const kChar*) kSensorIdentity_FieldNameAt(kSensorIdentity identity, kSize index);
599 
608 kFsFx(const kChar*) kSensorIdentity_FieldValueAt(kSensorIdentity identity, kSize index);
609 
610 #include <kFireSync/Utils/kSensorIdentity.x.h>
611 
612 #endif /* #ifndef K_FIRESYNC_SENSOR_IDENTITY_H */
kBool kSensorIdentity_CompatibleFirmwareTagExists(kSensorIdentity identity)
Reports whether the CompatibleFirmwareTag field exists.
kStatus kSensorIdentity_SetModel(kSensorIdentity identity, const kChar *value)
Creates or modifies the Model field from a character array.
kBool kSensorIdentity_ModelNumberExists(kSensorIdentity identity)
Reports whether the ModelNumber field exists.
const kChar * kSensorIdentity_PartNumber(kSensorIdentity identity)
Returns the PartNumber field as a character array.
kBool kSensorIdentity_PackageExists(kSensorIdentity identity)
Reports whether the Package field exists.
kBool kSensorIdentity_LaserClassExists(kSensorIdentity identity)
Reports whether the LaserClass field exists.
const kChar * kSensorIdentity_Spectrum(kSensorIdentity identity)
Returns the Spectrum field as a character array.
kStatus kSensorIdentity_SetCompatibleFirmwareTag(kSensorIdentity identity, const kChar *value)
Creates or modifies the CompatibleFirmwareTag field from a character array.
kStatus kSensorIdentity_SetPackage(kSensorIdentity identity, const kChar *value)
Creates or modifies the Package field from a character array.
kBool kSensorIdentity_Equivalent(kSensorIdentity a, kSensorIdentity b)
Reports whether two kSensorIdentity objects represent the same sensor model.
kStatus kSensorIdentity_InitOnlyDefaultFields(kSensorIdentity identity)
Clears only the default fields, and initializes them back to the default values.
kStatus kSensorIdentity_SetFirmwareVersion(kSensorIdentity identity, const kChar *value)
Creates or modifies the Version field from a kVersion object.
kStatus kSensorIdentity_Clear(kSensorIdentity identity)
Clears all fields in the SensorIdentity object.
k32u kSensorIdentity_OptionCode(kSensorIdentity identity)
Returns the OptionCode field as a k32u value.
k32u kSensorIdentity_ModelNumber(kSensorIdentity identity)
Returns the ModelNumber field as a k32u value.
const kChar * kSensorIdentity_FieldValueAt(kSensorIdentity identity, kSize index)
Returns the field value at the specified index.
kStatus kSensorIdentity_InitFields(kSensorIdentity identity)
Clears ALL fields, and initializes the kSensorIdentity object with the current set of default fields...
kBool kSensorIdentity_SpectrumExists(kSensorIdentity identity)
Reports whether the Spectrum field exists.
const kChar * kSensorIdentity_FieldNameAt(kSensorIdentity identity, kSize index)
Returns the field name at the specified index.
const kChar * kSensorIdentity_LaserClass(kSensorIdentity identity)
Returns the LaserClass field as a character array.
kStatus kSensorIdentity_ToXml(kSensorIdentity identity, kXml *xml, kAlloc allocator)
Constructs an XML object from the SensorIdentity object.
kBool kSensorIdentity_IsControl(kSensorIdentity identity)
Returns the IsControl field as a kBool value.
kBool kSensorIdentity_OptionCodeExists(kSensorIdentity identity)
Reports whether the OptionCode field exists.
kStatus kSensorIdentity_SetHardwareRevision(kSensorIdentity identity, const kChar *value)
Creates or modifies the HardwareRevision field from a character array.
kStatus kSensorIdentity_SetFieldText(kSensorIdentity identity, const kChar *name, const kChar *value)
Creates or modifies the specified field from a character array.
const kChar * kSensorIdentity_Package(kSensorIdentity identity)
Returns the Package field as a character array.
const kChar * kSensorIdentity_Model(kSensorIdentity identity)
Returns the Model field as a character array.
k64f kSensorIdentity_Field64f(kSensorIdentity identity, const kChar *name)
Returns the specified field as a k64f value.
kBool kSensorIdentity_SerialNumberExists(kSensorIdentity identity)
Reports whether the SerialNumber field exists.
kStatus kSensorIdentity_SetField32u(kSensorIdentity identity, const kChar *name, k32u value)
Creates or modifies the specified field from a k32u value.
kBool kSensorIdentity_DefaultFieldsExist(kSensorIdentity identity)
Reports whether the kSensorIdentity object contains the current set of default fields.
Essential API declarations for the kFireSync library.
kStatus kSensorIdentity_SetLaserClass(kSensorIdentity identity, const kChar *value)
Creates or modifies the LaserClass field from a character array.
kBool kSensorIdentity_IsControlExists(kSensorIdentity identity)
Reports whether the IsControl field exists.
kStatus kSensorIdentity_SetModelNumber(kSensorIdentity identity, k32u value)
Creates or modifies the ModelNumber field from a k32u value.
kStatus kSensorIdentity_SetField64f(kSensorIdentity identity, const kChar *name, k64f value)
Creates or modifies the specified field from a k64f value.
kStatus kSensorIdentity_Load(kSensorIdentity *identity, const kChar *fileName, kAlloc allocator)
Loads a SensorIdentity object from file.
kStatus kSensorIdentity_SetOptionCode(kSensorIdentity identity, k32u value)
Creates or modifies the OptionCode field from a k32u value.
kStatus kSensorIdentity_SetIsControl(kSensorIdentity identity, kBool value)
Creates or modifies the IsControl field from a kBool value.
kStatus kSensorIdentity_FromXml(kSensorIdentity *identity, kXml xml, kAlloc allocator)
Constructs a SensorIdentity object from an XML object.
kBool kSensorIdentity_ModelExists(kSensorIdentity identity)
Reports whether the Model field exists.
k32u kSensorIdentity_Class(kSensorIdentity identity)
Returns the Class field as a k32u value.
const kChar * kSensorIdentity_FieldText(kSensorIdentity identity, const kChar *name)
Returns the specified field as a character array.
Manages Id.xml parsing and serialization.
kStatus kSensorIdentity_Construct(kSensorIdentity *identity, kAlloc allocator)
Constructs a kSensorIdentity object.
kStatus kSensorIdentity_Save(kSensorIdentity identity, const kChar *fileName)
Saves the SensorIdentity object to file.
kStatus kSensorIdentity_SetClass(kSensorIdentity identity, k32u value)
Creates or modifies the Class field from a k32u value.
kStatus kSensorIdentity_SetSerialNumber(kSensorIdentity identity, k32u value)
Creates or modifies the SerialNumber field from a k32u value.
const kChar * kSensorIdentity_FirmwareVersion(kSensorIdentity identity)
Returns the Version field as a kVersion object.
kSize kSensorIdentity_FieldCount(kSensorIdentity identity)
Returns the number of fields defined in the identity object.
kBool kSensorIdentity_PartNumberExists(kSensorIdentity identity)
Reports whether the PartNumber field exists.
const kChar * kSensorIdentity_HardwareRevision(kSensorIdentity identity)
Returns the HardwareRevision field as a character array.
kBool kSensorIdentity_FirmwareVersionExists(kSensorIdentity identity)
Reports whether the Version field exists.
k32u kSensorIdentity_SerialNumber(kSensorIdentity identity)
Returns the SerialNumber field as a k32u value.
kStatus kSensorIdentity_SetPartNumber(kSensorIdentity identity, const kChar *value)
Creates or modifies the PartNumber field from a character array.
kStatus kSensorIdentity_SetSpectrum(kSensorIdentity identity, const kChar *value)
Creates or modifies the Spectrum field from a character array.
kBool kSensorIdentity_ClassExists(kSensorIdentity identity)
Reports whether the Class field exists.
kBool kSensorIdentity_HardwareRevisionExists(kSensorIdentity identity)
Reports whether the HardwareRevision field exists.
k32u kSensorIdentity_Field32u(kSensorIdentity identity, const kChar *name)
Returns the specified field as a k32u value.
const kChar * kSensorIdentity_CompatibleFirmwareTag(kSensorIdentity identity)
Returns the CompatibleFirmwareTag field as a character array.
k32u kSensorIdentity_Version(kSensorIdentity identity)
Returns the SensorIdentity schema version (defined by kSENSOR_IDENTITY_VERSION).
kBool kSensorIdentity_FieldExists(kSensorIdentity identity, const kChar *name)
Reports whether a field exists with the specified name.