Imported Upstream version 0.9.2
[platform/upstream/iotivity.git] / service / soft-sensor-manager / SSMCore / src / SensorProcessor / SensingEngine.h
index 7f6827a..bfd6f3c 100644 (file)
@@ -68,6 +68,13 @@ class CSensingEngine :
                 *ppObject = pBase;
                 return SSM_S_OK;
             }
+            else if (IsEqualOID(objectID, OID_IContextRepository))
+            {
+                IBase *pBase = this;
+                pBase->addRef();
+                *ppObject = m_pContextRepository;
+                return SSM_S_OK;
+            }
 
             return SSM_E_NOINTERFACE;
         }
@@ -86,8 +93,8 @@ class CSensingEngine :
         * @exception
         * @see
         */
-        SSMRESULT registerContext(IN TypeofEvent callType, IN ISSMResource *pSSMResource,
-                                  IN IEvent *pEvent);
+        SSMRESULT registerContext(TypeofEvent callType, ISSMResource *pSSMResource,
+                                  IEvent *pEvent);
 
         /**
         * @fn           unregisterContext
@@ -103,8 +110,8 @@ class CSensingEngine :
         * @exception
         * @see
         */
-        SSMRESULT  unregisterContext(IN TypeofEvent callType, IN ISSMResource *pSSMResource,
-                                     IN IEvent *pEvent);
+        SSMRESULT  unregisterContext(TypeofEvent callType, ISSMResource *pSSMResource,
+                                     IEvent *pEvent);
 
         /**
         * @fn           getList
@@ -118,7 +125,7 @@ class CSensingEngine :
         * @exception
         * @see
         */
-        SSMRESULT getList(OUT std::vector<ISSMResource *> *pList);
+        SSMRESULT getList(std::vector<ISSMResource *> *pList);
 
         /**
         * @fn           onEvent
@@ -135,6 +142,6 @@ class CSensingEngine :
         * @exception
         * @see
         */
-        int onEvent(IN std::string name, IN TypeofEvent callType, IN std::vector<ContextData> ctxData);
+        int onEvent(std::string name, TypeofEvent callType, std::vector<ContextData> ctxData);
 };
 #endif
\ No newline at end of file