fka mod

Fork of BLE_API by Bluetooth Low Energy

Revision:
1179:4ab722f8dca0
Parent:
1167:91c37c858f48
Child:
1183:1589830dbdb7
diff -r a4418fcb462f -r 4ab722f8dca0 ble/GattService.h
--- a/ble/GattService.h	Wed Apr 06 19:15:28 2016 +0100
+++ b/ble/GattService.h	Wed Apr 06 19:15:30 2016 +0100
@@ -59,58 +59,15 @@
      *              The number of characteristics.
      */
     GattService(const UUID &uuid, GattCharacteristic *characteristics[], unsigned numCharacteristics) :
-        _primaryServiceID(uuid),
-        _characteristicCount(numCharacteristics),
-        _characteristics(characteristics),
-        _handle(0) {
+        _primaryServiceID(uuid), _characteristicCount(numCharacteristics), _characteristics(characteristics), _handle(0) {
         /* empty */
     }
 
-    /**
-     * Get this service's UUID.
-     *
-     * @return A reference to the service's UUID.
-     */
-    const UUID &getUUID(void) const {
-        return _primaryServiceID;
-    }
-
-    /**
-     * Get handle of the service declaration attribute in the ATT table.
-     *
-     * @return The service's handle.
-     */
-    uint16_t getHandle(void) const {
-        return _handle;
-    }
+    const UUID &getUUID(void)                const {return _primaryServiceID;   }
+    uint16_t    getHandle(void)              const {return _handle;             }
+    uint8_t     getCharacteristicCount(void) const {return _characteristicCount;}
+    void setHandle(uint16_t handle) {_handle = handle;}
 
-    /**
-     * Get the total number of characteristics within this service.
-     *
-     * @return The total number of characteristics within this service.
-     */
-    uint8_t getCharacteristicCount(void) const {
-        return _characteristicCount;
-    }
-
-    /**
-     * Set the handle of the service declaration attribute in the ATT table.
-     *
-     * @param[in] handle
-     *              The service's handle.
-     */
-    void setHandle(uint16_t handle) {
-        _handle = handle;
-    }
-
-    /**
-     * Get this service's characteristic at a specific index.
-     *
-     * @param[in] index
-     *              The index of the characteristic.
-     *
-     * @return A pointer to the characterisitic at index @p index.
-     */
     GattCharacteristic *getCharacteristic(uint8_t index) {
         if (index >= _characteristicCount) {
             return NULL;
@@ -120,25 +77,10 @@
     }
 
 private:
-    /**
-     * This service's UUID.
-     */
     UUID                 _primaryServiceID;
-    /**
-     * Total number of characteristics within this service.
-     */
     uint8_t              _characteristicCount;
-    /**
-     * An array with pointers to the characteristics added to this service.
-     */
     GattCharacteristic **_characteristics;
-    /**
-     * Handle of the service declaration attribute in the ATT table.
-     *
-     * @note This handle is generally assigned by the underlying BLE stack when the
-     *       service is added to the ATT table.
-     */
     uint16_t             _handle;
 };
 
-#endif /* ifndef __GATT_SERVICE_H__ */
\ No newline at end of file
+#endif // ifndef __GATT_SERVICE_H__
\ No newline at end of file