[SSM] Modify ommited arduino sample and soft sensor sample
[platform/upstream/iotivity.git] / service / soft-sensor-manager / SoftSensorPlugin / IndoorTrajectorySensor / include / ITS.h
index ab20039..9d245ba 100644 (file)
@@ -58,7 +58,7 @@ namespace ITSName
     {
         SUCCESS = 0, ERROR, NO_ELEMENT
     } ITSResult;
-       
+
     class SThing
     {
         public:
@@ -96,6 +96,7 @@ namespace ITSName
     class ITS: public ICtxEvent
     {
         private:
+            static ITS *singleton;
             Things *m_TList;
             SThing *m_closestThing;
 
@@ -104,9 +105,11 @@ namespace ITSName
         public:
             static physicalInput s_PHYSICAL_SENSORs[PHYSICAL_EA];
 
+            static ITS *GetInstance( void );
             ITS();
             ~ITS();
 
+            static void *SelfTrajectoryThread(void *param);
             void onCtxEvent(enum CTX_EVENT_TYPE eventType, std::vector< ContextData > contextDataList);
 
             ITSResult getInput(std::vector< ContextData > &contextDataList, CurrentService *CService );