Version FC

Dependencies:   DmTftLibrary eeprom SX1280Lib filesystem mbed

Fork of MSNV2-Terminal_V1-5 by Francis CHATAIN

Branch:
Integration
Revision:
38:9b43b2415093
Parent:
20:b0281e8a375a
Child:
39:13e66d087ae9
--- a/Payload.hpp	Tue Oct 16 11:28:33 2018 +0000
+++ b/Payload.hpp	Fri Oct 19 06:32:59 2018 +0000
@@ -4,61 +4,62 @@
 #include "Context.h"
 
 #include <vector>
-#include <sstream>
+//#include <sstream>
 
 #include "Component.hpp"
 
 
-namespace misnet {
-    class Payload;
+namespace misnet
+{
+class Payload;
 }
 
-    
-class misnet::Payload {
 
-    public:
-        // TODO : provide a real list of payload identifiers !
-        enum PAYLOAD_ID {
-            IOT_PAYLOAD_1           = 1,
-            IOT_PAYLOAD_2           = 2,
-            IOT_PAYLOAD_3           = 3,
-            IOT_PAYLOAD_4           = 4,
-            IOT_PAYLOAD_5           = 5,
-            IOT_PAYLOAD_6           = 6,
-            SMART_TOOL_PAYLOAD_1    = 7,
-            SMART_TOOL_PAYLOAD_2    = 8,
-            SMART_TOOL_PAYLOAD_3    = 9,
-            SMART_TOOL_PAYLOAD_4    = 10
-        } ;
+class misnet::Payload
+{
+public:
+    // TODO : provide a real list of payload identifiers !
+    enum PAYLOAD_ID {
+        IOT_PAYLOAD_1           = 1,
+        IOT_PAYLOAD_2           = 2,
+        IOT_PAYLOAD_3           = 3,
+        IOT_PAYLOAD_4           = 4,
+        IOT_PAYLOAD_5           = 5,
+        IOT_PAYLOAD_6           = 6,
+        SMART_TOOL_PAYLOAD_1    = 7,
+        SMART_TOOL_PAYLOAD_2    = 8,
+        SMART_TOOL_PAYLOAD_3    = 9,
+        SMART_TOOL_PAYLOAD_4    = 10
+    } ;
 
-        Payload(PAYLOAD_ID id, std::vector<Component*> components, uint16_t base_period);
+    Payload(PAYLOAD_ID id, std::vector<misnet::Component*> components, uint16_t base_period);
 
-        std::vector<Component*>& getComponents() {
-            return this->_components;
-        }
+    std::vector<misnet::Component*>& getComponents() {
+        return this->_components;
+    }
 
-        std::vector<Service*>& getServices() {
-            return this->_services;
-        }
+    std::vector<misnet::Service*>& getServices() {
+        return this->_services;
+    }
 
-        Service* getServiceByRank(short channelRank);
+    misnet::Service* getServiceByRank(short channelRank);
 
-        PAYLOAD_ID getId() {
-            return this->_id;
-        }
+    PAYLOAD_ID getId() {
+        return this->_id;
+    }
 
-        uint16_t getBasePeriod() {
-            return this->_basePeriod;
-        }
+    uint16_t getBasePeriod() {
+        return this->_basePeriod;
+    }
 
-        std::string toString();
+    std::string toString();
 
 
-    private:
-        const PAYLOAD_ID            _id;
-        std::vector<Component*>     _components;
-        std::vector<Service*>       _services;
-        uint16_t                    _basePeriod;
+private:
+    const PAYLOAD_ID                    _id;
+    std::vector<misnet::Component*>     _components;
+    std::vector<misnet::Service*>       _services;
+    uint16_t                            _basePeriod;
 };
 
 #endif // __PAYLOAD_HPP__