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 
13 kBeginHeader()
14 
15 
20 #define kSENSOR_IDENTITY_FILENAME "Id.xml"
21 #define kSENSOR_IDENTITY_TEMP_FILENAME "/temp/Id.xml"
22 
30 //typedef kObject kSensorIdentity; --forward-declared in kFsDef.x.h
31 
43 kFsFx(kStatus) kSensorIdentity_Construct(kSensorIdentity* identity, kAlloc allocator);
44 
54 kFsFx(kStatus) kSensorIdentity_Load(kSensorIdentity* identity, const kChar* fileName, kAlloc allocator);
55 
64 kFsFx(kStatus) kSensorIdentity_Save(kSensorIdentity identity, const kChar* fileName);
65 
75 kFsFx(kStatus) kSensorIdentity_FromXml(kSensorIdentity* identity, kXml xml, kAlloc allocator);
76 
86 kFsFx(kStatus) kSensorIdentity_ToXml(kSensorIdentity identity, kXml* xml, kAlloc allocator);
87 
96 
105 
114 
127 
136 
145 kFsFx(kBool) kSensorIdentity_FieldExists(kSensorIdentity identity, const kChar* name);
146 
155 kFsFx(k32u) kSensorIdentity_Field32u(kSensorIdentity identity, const kChar* name);
156 
165 kFsFx(k64f) kSensorIdentity_Field64f(kSensorIdentity identity, const kChar* name);
166 
175 kFsFx(const kChar*) kSensorIdentity_FieldText(kSensorIdentity identity, const kChar* name);
176 
186 kFsFx(kStatus) kSensorIdentity_SetField32u(kSensorIdentity identity, const kChar* name, k32u value);
187 
197 kFsFx(kStatus) kSensorIdentity_SetField64f(kSensorIdentity identity, const kChar* name, k64f value);
198 
208 kFsFx(kStatus) kSensorIdentity_SetFieldText(kSensorIdentity identity, const kChar* name, const kChar* value);
209 
218 
226 kFsFx(const kChar*) kSensorIdentity_PartNumber(kSensorIdentity identity);
227 
236 kFsFx(kStatus) kSensorIdentity_SetPartNumber(kSensorIdentity identity, const kChar* value);
237 
246 
255 
265 
274 
283 
292 kFsFx(kStatus) kSensorIdentity_SetClass(kSensorIdentity identity, k32u value);
293 
302 
310 kFsFx(const kChar*) kSensorIdentity_Model(kSensorIdentity identity);
311 
320 kFsFx(kStatus) kSensorIdentity_SetModel(kSensorIdentity identity, const kChar* value);
321 
330 
339 
349 
358 
366 kFsFx(const kChar*) kSensorIdentity_LaserClass(kSensorIdentity identity);
367 
376 kFsFx(kStatus) kSensorIdentity_SetLaserClass(kSensorIdentity identity, const kChar* value);
377 
386 
394 kFsFx(const kChar*) kSensorIdentity_Spectrum(kSensorIdentity identity);
395 
404 kFsFx(kStatus) kSensorIdentity_SetSpectrum(kSensorIdentity identity, const kChar* value);
405 
414 
422 kFsFx(const kChar*) kSensorIdentity_Package(kSensorIdentity identity);
423 
432 kFsFx(kStatus) kSensorIdentity_SetPackage(kSensorIdentity identity, const kChar* value);
433 
442 
451 
461 
470 
479 
488 kFsFx(kStatus) kSensorIdentity_SetFirmwareVersion(kSensorIdentity identity, const kChar* value);
489 
498 
507 
517 
526 
535 
545 
554 
563 
573 
582 
591 kFsFx(const kChar*) kSensorIdentity_FieldNameAt(kSensorIdentity identity, kSize index);
592 
601 kFsFx(const kChar*) kSensorIdentity_FieldValueAt(kSensorIdentity identity, kSize index);
602 
603 kEndHeader()
604 #include <kFireSync/Utils/kSensorIdentity.x.h>
605 
606 #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_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)
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.