SSM: Remove IN/OUT macros
authorThiago Macieira <thiago.macieira@intel.com>
Sat, 11 Apr 2015 02:08:13 +0000 (19:08 -0700)
committerUze Choi <uzchoi@samsung.com>
Mon, 20 Apr 2015 10:28:01 +0000 (10:28 +0000)
They are not part of the coding standard for IoTivity, so they shouldn't
be there. The names are too generic, so there's a good chance of
conflicts too.

Change-Id: I27eaacb532114dd188c4ffff13d3d39cc37770da
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/695
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
Tested-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
43 files changed:
service/soft-sensor-manager/SDK/cpp/src/InprocSSMCore.cpp
service/soft-sensor-manager/SSMCore/src/Common/InternalInterface.h
service/soft-sensor-manager/SSMCore/src/Common/ObjectManager.h
service/soft-sensor-manager/SSMCore/src/Common/PlatformLayer.h
service/soft-sensor-manager/SSMCore/src/Common/ThreadManager.cpp
service/soft-sensor-manager/SSMCore/src/Common/ThreadManager.h
service/soft-sensor-manager/SSMCore/src/QueryProcessor/CQLParser.cpp
service/soft-sensor-manager/SSMCore/src/QueryProcessor/CQLParser.h
service/soft-sensor-manager/SSMCore/src/QueryProcessor/ConditionedModel.cpp
service/soft-sensor-manager/SSMCore/src/QueryProcessor/ConditionedModel.h
service/soft-sensor-manager/SSMCore/src/QueryProcessor/ConditionedQuery.cpp
service/soft-sensor-manager/SSMCore/src/QueryProcessor/ConditionedQuery.h
service/soft-sensor-manager/SSMCore/src/QueryProcessor/ConditionedQueryResult.cpp
service/soft-sensor-manager/SSMCore/src/QueryProcessor/ConditionedQueryResult.h
service/soft-sensor-manager/SSMCore/src/QueryProcessor/ContextModel.cpp
service/soft-sensor-manager/SSMCore/src/QueryProcessor/ContextModel.h
service/soft-sensor-manager/SSMCore/src/QueryProcessor/ContextQuery.cpp
service/soft-sensor-manager/SSMCore/src/QueryProcessor/ContextQuery.h
service/soft-sensor-manager/SSMCore/src/QueryProcessor/DataReader.cpp
service/soft-sensor-manager/SSMCore/src/QueryProcessor/DataReader.h
service/soft-sensor-manager/SSMCore/src/QueryProcessor/EvaluationEngine.cpp
service/soft-sensor-manager/SSMCore/src/QueryProcessor/EvaluationEngine.h
service/soft-sensor-manager/SSMCore/src/QueryProcessor/ModelData.cpp
service/soft-sensor-manager/SSMCore/src/QueryProcessor/ModelData.h
service/soft-sensor-manager/SSMCore/src/QueryProcessor/PropagationEngine.cpp
service/soft-sensor-manager/SSMCore/src/QueryProcessor/PropagationEngine.h
service/soft-sensor-manager/SSMCore/src/QueryProcessor/QueryEngine.cpp
service/soft-sensor-manager/SSMCore/src/QueryProcessor/QueryEngine.h
service/soft-sensor-manager/SSMCore/src/SSMInterface/SSMCore.cpp
service/soft-sensor-manager/SSMCore/src/SSMInterface/SSMCore.h
service/soft-sensor-manager/SSMCore/src/SSMInterface/SSMCore_JNI.cpp
service/soft-sensor-manager/SSMCore/src/SSMInterface/SSMResourceServer.cpp
service/soft-sensor-manager/SSMCore/src/SSMInterface/SoftSensorManager.cpp
service/soft-sensor-manager/SSMCore/src/SSMInterface/SoftSensorManager.h
service/soft-sensor-manager/SSMCore/src/SensorProcessor/ContextDataReader.cpp
service/soft-sensor-manager/SSMCore/src/SensorProcessor/ContextDataReader.h
service/soft-sensor-manager/SSMCore/src/SensorProcessor/ContextExecutor.cpp
service/soft-sensor-manager/SSMCore/src/SensorProcessor/ContextExecutor.h
service/soft-sensor-manager/SSMCore/src/SensorProcessor/ContextRepository.cpp
service/soft-sensor-manager/SSMCore/src/SensorProcessor/ContextRepository.h
service/soft-sensor-manager/SSMCore/src/SensorProcessor/ResourceFinder.cpp
service/soft-sensor-manager/SSMCore/src/SensorProcessor/ResourceFinder.h
service/soft-sensor-manager/SSMCore/src/SensorProcessor/SensingEngine.h

index 4179059..01451e9 100644 (file)
@@ -28,7 +28,7 @@ class SSMCoreEventReceiver : public IQueryEngineEvent
         {
         }
 
-        SSMRESULT onQueryEngineEvent(IN int cqid, IN IDataReader *pResult)
+        SSMRESULT onQueryEngineEvent(int cqid, IDataReader *pResult)
         {
             SSMRESULT res = SSM_E_FAIL;
 
@@ -58,12 +58,12 @@ CLEANUP:
             m_mtxListener.unlock();
         }
 
-        void addListener(IN int cqid, IN IQueryEngineEvent *pEngineEvent)
+        void addListener(int cqid, IQueryEngineEvent *pEngineEvent)
         {
             m_mapListener[cqid] = pEngineEvent;
         }
 
-        void removeListener(IN int cqid)
+        void removeListener(int cqid)
         {
             m_mapListener.erase(cqid);
         }
@@ -118,8 +118,8 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT OIC::RegisterQuery(IN std::string queryString, IN IQueryEngineEvent *listener,
-                             IN int &cqid)
+SSMRESULT OIC::RegisterQuery(std::string queryString, IQueryEngineEvent *listener,
+                             int &cqid)
 {
     SSMRESULT res = SSM_E_FAIL;
 
@@ -136,7 +136,7 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT OIC::UnregisterQuery(IN int cqid)
+SSMRESULT OIC::UnregisterQuery(int cqid)
 {
     SSMRESULT res = SSM_E_FAIL;
 
index 884e14d..250ace7 100644 (file)
@@ -89,7 +89,7 @@ class IContextRepository : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getSoftSensorList(OUT std::vector<ISSMResource *> *pSoftSensorList) = 0 ;
+        virtual SSMRESULT getSoftSensorList(std::vector<ISSMResource *> *pSoftSensorList) = 0 ;
 
         /**
         * @fn           getPrimitiveSensorList
@@ -109,7 +109,7 @@ class IContextRepository : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getPrimitiveSensorList(OUT std::vector<ISSMResource *> *pPrimitiveSensorList) = 0
+        virtual SSMRESULT getPrimitiveSensorList(std::vector<ISSMResource *> *pPrimitiveSensorList) = 0
                 ;
 
         /**
@@ -126,21 +126,21 @@ class IContextRepository : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT initRepository(IN std::string name, IN std::string type,
-                                         IN std::string pathSoftSensors, IN std::string pathDescription) = 0;
+        virtual SSMRESULT initRepository(std::string name, std::string type,
+                                         std::string pathSoftSensors, std::string pathDescription) = 0;
 
-        virtual SSMRESULT registerResourceFinderEvent(IN IResourceEvent *pResourceEvent) = 0;
+        virtual SSMRESULT registerResourceFinderEvent(IResourceEvent *pResourceEvent) = 0;
         virtual SSMRESULT startResourceFinder() = 0;
         virtual SSMRESULT stopResourceFinder() = 0;
-        virtual SSMRESULT onResourceFound(IN ISSMResource *pSensor) = 0;
-        virtual SSMRESULT onResourceLost(IN ISSMResource *pSensor) = 0;
+        virtual SSMRESULT onResourceFound(ISSMResource *pSensor) = 0;
+        virtual SSMRESULT onResourceLost(ISSMResource *pSensor) = 0;
 
-        virtual SSMRESULT startObserveResource(IN ISSMResource *pSensor, IN IEvent *pEvent) = 0;
-        virtual SSMRESULT stopObserveResource(IN ISSMResource *pSensor) = 0;
+        virtual SSMRESULT startObserveResource(ISSMResource *pSensor, IEvent *pEvent) = 0;
+        virtual SSMRESULT stopObserveResource(ISSMResource *pSensor) = 0;
 
-        virtual SSMRESULT loadSoftSensor(IN std::string softSensorName, IN ICtxDelegate *pDelegate,
-                                         OUT void **hSoftSensor) = 0;
-        virtual SSMRESULT unloadSoftSensor(IN void *hSoftSensor) = 0;
+        virtual SSMRESULT loadSoftSensor(std::string softSensorName, ICtxDelegate *pDelegate,
+                                         void **hSoftSensor) = 0;
+        virtual SSMRESULT unloadSoftSensor(void *hSoftSensor) = 0;
 };
 
 struct ModelProperty
@@ -184,7 +184,7 @@ class IEvaluationEngineEvent : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT onWatchModelData(IN int triggerId, IN int dataId) = 0;
+        virtual SSMRESULT onWatchModelData(int triggerId, int dataId) = 0;
 };
 
 static const OID OID_IEvaluationEngine = { 0x5a59a9f3, 0x7506, 0x4a3a, { 0xb9, 0x34, 0xcb, 0x51, 0xd, 0xb4, 0xed, 0x53 } };
@@ -238,9 +238,9 @@ class IEvaluationEngine : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT createModel(IN int parentModelId, IN const char *newModelName,
-                                      IN ModelPropertyVec *pModelDescs, OUT int *pModelId) = 0;
-        //virtual SSMRESULT GetModelSchema(IN int modelId, OUT ModelPropertyVec *pModelProperties) = 0;
+        virtual SSMRESULT createModel(int parentModelId, const char *newModelName,
+                                      ModelPropertyVec *pModelDescs, int *pModelId) = 0;
+        //virtual SSMRESULT GetModelSchema(int modelId, ModelPropertyVec *pModelProperties) = 0;
 
         /**
         * @fn     addModelData
@@ -257,8 +257,8 @@ class IEvaluationEngine : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT addModelData(IN int modelId, IN int parentModelId, IN int parentDataId,
-                                       IN ModelPropertyVec *pModelValues, OUT int *pDataId) = 0;
+        virtual SSMRESULT addModelData(int modelId, int parentModelId, int parentDataId,
+                                       ModelPropertyVec *pModelValues, int *pDataId) = 0;
 
         /**
         * @fn     updateModelData
@@ -273,10 +273,10 @@ class IEvaluationEngine : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT updateModelData(IN int modelId, IN int dataId,
-                                          IN ModelPropertyVec *pModelValues) = 0;
+        virtual SSMRESULT updateModelData(int modelId, int dataId,
+                                          ModelPropertyVec *pModelValues) = 0;
 
-        //virtual SSMRESULT DeleteModel(IN int modelId) = 0;
+        //virtual SSMRESULT DeleteModel(int modelId) = 0;
 
         /**
         * @fn     deleteModelData
@@ -290,9 +290,9 @@ class IEvaluationEngine : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT deleteModelData(IN int modelId, IN int dataId) = 0;
+        virtual SSMRESULT deleteModelData(int modelId, int dataId) = 0;
 
-        //virtual SSMRESULT GetModelId(IN const char *modelName, OUT int *pModelId) = 0;
+        //virtual SSMRESULT GetModelId(const char *modelName, int *pModelId) = 0;
 
         /**
         * @fn     getModelData
@@ -307,8 +307,8 @@ class IEvaluationEngine : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getModelData(IN int modelId, IN int dataId,
-                                       OUT ModelPropertyVec *pModelProperties) = 0;
+        virtual SSMRESULT getModelData(int modelId, int dataId,
+                                       ModelPropertyVec *pModelProperties) = 0;
 
         /**
         * @fn     getModelDataSet
@@ -325,8 +325,8 @@ class IEvaluationEngine : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getModelDataSet(IN int modelId, IN int startIndex, IN int count,
-                                          OUT std::vector<ModelPropertyVec> *pDataSet, OUT int *pLastIndex) = 0;
+        virtual SSMRESULT getModelDataSet(int modelId, int startIndex, int count,
+                                          std::vector<ModelPropertyVec> *pDataSet, int *pLastIndex) = 0;
 
         /**
         * @fn     getConditionedModelData
@@ -341,8 +341,8 @@ class IEvaluationEngine : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getConditionedModelData(IN int modelId, IN ModelConditionVec *pModelConditions,
-                OUT IntVec *pDataIds) = 0;
+        virtual SSMRESULT getConditionedModelData(int modelId, ModelConditionVec *pModelConditions,
+                IntVec *pDataIds) = 0;
 
         /**
         * @fn     watchModelData
@@ -358,8 +358,8 @@ class IEvaluationEngine : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT watchModelData(IN int modelId, IN ModelConditionVec *pModelConditions,
-                                         IN IEvaluationEngineEvent *pEvaluationEngineEvent, OUT int *pTriggerId) = 0;
+        virtual SSMRESULT watchModelData(int modelId, ModelConditionVec *pModelConditions,
+                                         IEvaluationEngineEvent *pEvaluationEngineEvent, int *pTriggerId) = 0;
 
         /**
         * @fn     dropWatchModelData
@@ -372,7 +372,7 @@ class IEvaluationEngine : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT dropWatchModelData(IN int triggerId) = 0;
+        virtual SSMRESULT dropWatchModelData(int triggerId) = 0;
 
         /**
         * @fn     getParentDataId
@@ -388,8 +388,8 @@ class IEvaluationEngine : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getParentDataId(IN int modelId, IN int dataId, IN int parentModelId,
-                                          OUT int *pParentDataId) = 0;
+        virtual SSMRESULT getParentDataId(int modelId, int dataId, int parentModelId,
+                                          int *pParentDataId) = 0;
 
         /**
         * @fn     getChildDataId
@@ -405,13 +405,13 @@ class IEvaluationEngine : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getChildDataId(IN int modelId, IN int dataId, IN int childModelId,
-                                         OUT IntVec *pChildDataIds) = 0;
+        virtual SSMRESULT getChildDataId(int modelId, int dataId, int childModelId,
+                                         IntVec *pChildDataIds) = 0;
 
         //For decision tree
-        //virtual SSMRESULT GetPathToRoot(IN int currentModelId, OUT IntVec *pPath) = 0;
-        //virtual SSMRESULT GetModelHierarchy(IN int rootModelId, OUT StringVec *pPath) = 0;
-        //virtual SSMRESULT GetDataHierarchy(IN int rootModelId, IN int dataId, OUT StringVec *pPath) = 0;
+        //virtual SSMRESULT GetPathToRoot(int currentModelId, IntVec *pPath) = 0;
+        //virtual SSMRESULT GetModelHierarchy(int rootModelId, StringVec *pPath) = 0;
+        //virtual SSMRESULT GetDataHierarchy(int rootModelId, int dataId, StringVec *pPath) = 0;
 };
 
 /**
@@ -435,7 +435,7 @@ class IConditionedModelEvent
         * @exception
         * @see
         */
-        virtual SSMRESULT onConditionedModelTriggered(IN int triggerId) = 0;
+        virtual SSMRESULT onConditionedModelTriggered(int triggerId) = 0;
         virtual ~IConditionedModelEvent() {};
 };
 
@@ -463,7 +463,7 @@ class IConditionedModel : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getBaseContextModel(OUT IContextModel **ppBaseContextModel) = 0;
+        virtual SSMRESULT getBaseContextModel(IContextModel **ppBaseContextModel) = 0;
 
         /**
         * @fn     registerConditionedModelEvent
@@ -476,7 +476,7 @@ class IConditionedModel : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT registerConditionedModelEvent(IN IConditionedModelEvent *pConditionedModelEvent) =
+        virtual SSMRESULT registerConditionedModelEvent(IConditionedModelEvent *pConditionedModelEvent) =
             0;
 
         /**
@@ -490,7 +490,7 @@ class IConditionedModel : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT activateTrigger(OUT int *pTriggerId) = 0;
+        virtual SSMRESULT activateTrigger(int *pTriggerId) = 0;
 
         /**
         * @fn     deactivateTrigger
@@ -529,7 +529,7 @@ class IConditionedModel : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getAffectedData(OUT IntVec *pDataIds) = 0;
+        virtual SSMRESULT getAffectedData(IntVec *pDataIds) = 0;
 
         /**
         * @fn     getWatchCondition
@@ -542,7 +542,7 @@ class IConditionedModel : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getWatchCondition(OUT ModelConditionVec *pModelConditions) = 0;
+        virtual SSMRESULT getWatchCondition(ModelConditionVec *pModelConditions) = 0;
 };
 
 static const OID OID_IConditionedQueryResult = { 0x4a24e85b, 0x8903, 0x4cf5, { 0x88, 0x7b, 0x65, 0xc2, 0xc3, 0x9e, 0x42, 0xfd } };
@@ -581,8 +581,8 @@ class IConditionedQueryResult : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getConditionedContextModel(IN unsigned int conditionedModelIndex,
-                OUT IConditionedModel **ppConditionedModel) = 0;
+        virtual SSMRESULT getConditionedContextModel(unsigned int conditionedModelIndex,
+                IConditionedModel **ppConditionedModel) = 0;
 };
 
 /**
@@ -606,8 +606,8 @@ class IConditionedQueryEvent
         * @exception
         * @see
         */
-        virtual SSMRESULT onConditionedQueryEvent(IN int userTriggerId,
-                IN IConditionedQueryResult *pConditionedQueryResult) = 0;
+        virtual SSMRESULT onConditionedQueryEvent(int userTriggerId,
+                IConditionedQueryResult *pConditionedQueryResult) = 0;
         virtual ~IConditionedQueryEvent() {};
 };
 
@@ -633,7 +633,7 @@ class IConditionedQuery : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT registerConditionedModel(IN IConditionedModel *pConditionedModel) = 0;
+        virtual SSMRESULT registerConditionedModel(IConditionedModel *pConditionedModel) = 0;
 
         /**
         * @fn     activateTriggers
@@ -646,7 +646,7 @@ class IConditionedQuery : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT activateTriggers(IN int userTriggerId) = 0;
+        virtual SSMRESULT activateTriggers(int userTriggerId) = 0;
 
         /**
         * @fn     deactivateTriggers
@@ -672,7 +672,7 @@ class IConditionedQuery : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getConditionedQueryResult(OUT IConditionedQueryResult **ppConditionedQueryResult)
+        virtual SSMRESULT getConditionedQueryResult(IConditionedQueryResult **ppConditionedQueryResult)
             = 0;
 
         /**
@@ -756,8 +756,8 @@ class IContextModel : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getParentDataId(IN int dataId, IN IContextModel *pParentModel,
-                                          OUT int *pParentDataId) = 0;
+        virtual SSMRESULT getParentDataId(int dataId, IContextModel *pParentModel,
+                                          int *pParentDataId) = 0;
 
         /**
         * @fn     getChildDataId
@@ -772,8 +772,8 @@ class IContextModel : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getChildDataId(IN int dataId, IN IContextModel *pChildModel,
-                                         OUT IntVec *pPath) = 0;
+        virtual SSMRESULT getChildDataId(int dataId, IContextModel *pChildModel,
+                                         IntVec *pPath) = 0;
 
         /**
         * @fn     activate
@@ -787,7 +787,7 @@ class IContextModel : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT activate(IN ActivationType activationType, IN int targetDeviceDataId) = 0;
+        virtual SSMRESULT activate(ActivationType activationType, int targetDeviceDataId) = 0;
 
         /**
         * @fn     deactivate
@@ -802,8 +802,8 @@ class IContextModel : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT deactivate(IN ActivationType activationType, IN int targetDeviceDataId) = 0;
-        //virtual SSMRESULT GetModelSchema(OUT ModelPropertyVec *pModelProperties) = 0;
+        virtual SSMRESULT deactivate(ActivationType activationType, int targetDeviceDataId) = 0;
+        //virtual SSMRESULT GetModelSchema(ModelPropertyVec *pModelProperties) = 0;
 
         /**
         * @fn     addModelData
@@ -818,8 +818,8 @@ class IContextModel : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT addModelData(IN int parentDataId, IN ModelPropertyVec *pData,
-                                       OUT int *pDataId) = 0;
+        virtual SSMRESULT addModelData(int parentDataId, ModelPropertyVec *pData,
+                                       int *pDataId) = 0;
 
         /**
         * @fn     updateModelData
@@ -833,7 +833,7 @@ class IContextModel : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT updateModelData(IN int dataId, IN ModelPropertyVec *pData) = 0;
+        virtual SSMRESULT updateModelData(int dataId, ModelPropertyVec *pData) = 0;
 
         /**
         * @fn     deleteModelData
@@ -846,7 +846,7 @@ class IContextModel : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT deleteModelData(IN int dataId) = 0;
+        virtual SSMRESULT deleteModelData(int dataId) = 0;
 
         /**
         * @fn     getModelData
@@ -860,7 +860,7 @@ class IContextModel : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getModelData(IN int dataId, OUT ModelPropertyVec *pData) = 0;
+        virtual SSMRESULT getModelData(int dataId, ModelPropertyVec *pData) = 0;
 
         /**
         * @fn     getModelDataSet
@@ -876,8 +876,8 @@ class IContextModel : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getModelDataSet(IN int startIndex, IN int count,
-                                          OUT std::vector<ModelPropertyVec> *pDataSet, OUT int *pLastIndex) = 0;
+        virtual SSMRESULT getModelDataSet(int startIndex, int count,
+                                          std::vector<ModelPropertyVec> *pDataSet, int *pLastIndex) = 0;
 
         /**
         * @fn     createConditionedModel
@@ -891,8 +891,8 @@ class IContextModel : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT createConditionedModel(IN ModelConditionVec *pModelConditionVec,
-                OUT IConditionedModel **ppConditionedModel) = 0;
+        virtual SSMRESULT createConditionedModel(ModelConditionVec *pModelConditionVec,
+                IConditionedModel **ppConditionedModel) = 0;
         //virtual SSMRESULT CleanUpModelData() = 0;
 
         /**
@@ -940,8 +940,8 @@ class IContextModelEvent
         * @exception
         * @see
         */
-        virtual SSMRESULT onModelStatusChange(IN IContextModel::Status newStatus,
-                                              IN ISSMResource *pSSMResource, IN IContextModel *pModel) = 0;
+        virtual SSMRESULT onModelStatusChange(IContextModel::Status newStatus,
+                                              ISSMResource *pSSMResource, IContextModel *pModel) = 0;
         virtual ~IContextModelEvent() {}
 };
 
@@ -967,8 +967,8 @@ class IContextModelAccessor
         * @exception
         * @see
         */
-        virtual SSMRESULT onQueryContextModel(IN std::string modelName,
-                                              OUT IContextModel **ppContextModel) = 0;
+        virtual SSMRESULT onQueryContextModel(std::string modelName,
+                                              IContextModel **ppContextModel) = 0;
         virtual ~IContextModelAccessor() {}
 };
 
@@ -994,7 +994,7 @@ class IContextDataReader : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT registerContextModelAccessor(IN IContextModelAccessor *pContextModelAccessor) = 0;
+        virtual SSMRESULT registerContextModelAccessor(IContextModelAccessor *pContextModelAccessor) = 0;
 
         /**
         * @fn     getContextData
@@ -1011,8 +1011,8 @@ class IContextDataReader : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getContextData(IN std::string modelName, IN int startIndex, IN int count,
-                                         OUT std::vector<ContextData> *data, OUT int *pLastIndex) = 0;
+        virtual SSMRESULT getContextData(std::string modelName, int startIndex, int count,
+                                         std::vector<ContextData> *data, int *pLastIndex) = 0;
 };
 
 typedef std::vector<std::pair<std::string, ModelConditionVec> > QueryCondition;
@@ -1040,8 +1040,8 @@ class IPropagationEngine : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getContextModel(IN std:: string modelName,
-                                          OUT IContextModel **ppContextModel) = 0;
+        virtual SSMRESULT getContextModel(std:: string modelName,
+                                          IContextModel **ppContextModel) = 0;
 
         /**
         * @fn     createConditionedQuery
@@ -1057,9 +1057,9 @@ class IPropagationEngine : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT createConditionedQuery(IN IContextModel::ActivationType activationType,
-                IN QueryCondition *pQueryCondition,
-                IN IConditionedQueryEvent *pEvent, OUT IConditionedQuery **ppConditionedQuery) = 0;
+        virtual SSMRESULT createConditionedQuery(IContextModel::ActivationType activationType,
+                QueryCondition *pQueryCondition,
+                IConditionedQueryEvent *pEvent, IConditionedQuery **ppConditionedQuery) = 0;
 };
 
 static const OID OID_IQueryEngineInternal = { 0x6eabf1a9, 0xe884, 0x4562, { 0x8b, 0x90, 0x1e, 0xe8, 0xba, 0xbf, 0xbe, 0x1a } };
@@ -1185,8 +1185,8 @@ class ISensingEngine : public IBase
 class IResourceFinderEvent
 {
     public:
-        virtual SSMRESULT onResourceFound(IN ISSMResource *pSensor) = 0;
-        virtual SSMRESULT onResourceLost(IN ISSMResource *pSensor) = 0;
+        virtual SSMRESULT onResourceFound(ISSMResource *pSensor) = 0;
+        virtual SSMRESULT onResourceLost(ISSMResource *pSensor) = 0;
         virtual ~IResourceFinderEvent() {}
 };
 
@@ -1194,11 +1194,11 @@ static const OID OID_IResourceFinder = { 0x8f52a31f, 0x51d5, 0x462b, { 0xa9, 0x8
 class IResourceFinder : public IBase
 {
     public:
-        virtual SSMRESULT registerResourceFinderEvent(IN IResourceFinderEvent *pEvent) = 0;
+        virtual SSMRESULT registerResourceFinderEvent(IResourceFinderEvent *pEvent) = 0;
         virtual SSMRESULT startResourceFinder() = 0;
         virtual SSMRESULT stopResourceFinder() = 0;
-        virtual SSMRESULT startObserveResource(IN ISSMResource *pSensor, IN IEvent *pEvent) = 0;
-        virtual SSMRESULT stopObserveResource(IN ISSMResource *pSensor) = 0;
+        virtual SSMRESULT startObserveResource(ISSMResource *pSensor, IEvent *pEvent) = 0;
+        virtual SSMRESULT stopObserveResource(ISSMResource *pSensor) = 0;
 };
 
 /**
@@ -1234,7 +1234,7 @@ class ISoftSensorManager : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT initializeCore(IN std::string xmlDescription) = 0;
+        virtual SSMRESULT initializeCore(std::string xmlDescription) = 0;
 
         /**
         * @fn startCore
@@ -1273,7 +1273,7 @@ class ISoftSensorManager : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT terminateCore(IN bool factoryResetFlag) = 0;
+        virtual SSMRESULT terminateCore(bool factoryResetFlag) = 0;
 
         /**
         * @fn createQueryEngine
@@ -1287,7 +1287,7 @@ class ISoftSensorManager : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT createQueryEngine(OUT IQueryEngine **ppQueryEngine) = 0;
+        virtual SSMRESULT createQueryEngine(IQueryEngine **ppQueryEngine) = 0;
 
         /**
         * @fn releaseQueryEngine
@@ -1299,7 +1299,7 @@ class ISoftSensorManager : public IBase
         * @exception
         * @see
         */
-        virtual unsigned long releaseQueryEngine(IN IQueryEngine *pQueryEngine) = 0;
+        virtual unsigned long releaseQueryEngine(IQueryEngine *pQueryEngine) = 0;
 
         /**
         * @fn getInstalledModelList
@@ -1312,6 +1312,6 @@ class ISoftSensorManager : public IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT getInstalledModelList(OUT std::vector<ISSMResource *> *pList) = 0;
+        virtual SSMRESULT getInstalledModelList(std::vector<ISSMResource *> *pList) = 0;
 };
 #endif
index 98015a3..73cff04 100644 (file)
@@ -91,7 +91,7 @@ class IBase
         * @exception
         * @see
         */
-        virtual SSMRESULT queryInterface(IN const OID &interfaceID, OUT IBase **ppObject) = 0;
+        virtual SSMRESULT queryInterface(const OID &interfaceID, IBase **ppObject) = 0;
 
         /**
         * @fn     addRef
@@ -393,7 +393,7 @@ class CObjectPtr
 * @see
 */
 template <class T>
-SSMRESULT CreateNewObject(IN const OID &objectID, OUT IBase **ppObject)
+SSMRESULT CreateNewObject(const OID &objectID, IBase **ppObject)
 {
     SSMRESULT res = SSM_E_OUTOFMEMORY;
 
index 0b3cf3c..ded07bd 100644 (file)
@@ -174,7 +174,7 @@ typedef std::vector<int> IntVec;
 * @exception
 * @see
 */
-INTERFACE_DECLSPEC SSMRESULT CreateInstance(IN const OID &objectID, OUT IBase **ppObject);
+INTERFACE_DECLSPEC SSMRESULT CreateInstance(const OID &objectID, IBase **ppObject);
 
 /**
 * @fn createGlobalInstance
@@ -189,7 +189,7 @@ INTERFACE_DECLSPEC SSMRESULT CreateInstance(IN const OID &objectID, OUT IBase **
 * @exception
 * @see
 */
-INTERFACE_DECLSPEC SSMRESULT CreateGlobalInstance(IN const OID &objectID, OUT IBase **ppObject);
+INTERFACE_DECLSPEC SSMRESULT CreateGlobalInstance(const OID &objectID, IBase **ppObject);
 
 INTERFACE_DECLSPEC SSMRESULT CreateGlobalInstanceRepo();
 
index 4a8e050..85ef306 100644 (file)
@@ -346,7 +346,7 @@ void CThreadPool::finalRelease()
     }
 }
 
-SSMRESULT CThreadPool::createWorkerThread(OUT IWorkerThread **ppWorkerThread)
+SSMRESULT CThreadPool::createWorkerThread(IWorkerThread **ppWorkerThread)
 {
     SSMRESULT res = SSM_E_FAIL;
 
index ca6b9b5..9eeed97 100644 (file)
@@ -431,7 +431,7 @@ static const OID OID_IThreadPool = { 0x53855605, 0xb2a0, 0x4a31, { 0xa2, 0x60, 0
 class IThreadPool : public IBase
 {
     public:
-        virtual SSMRESULT createWorkerThread(OUT IWorkerThread **ppWorkerThread) = 0;
+        virtual SSMRESULT createWorkerThread(IWorkerThread **ppWorkerThread) = 0;
         virtual SSMRESULT destroyThreadPool() = 0;
 };
 
@@ -469,7 +469,7 @@ class CThreadPool :
             return SSM_E_NOINTERFACE;
         }
 
-        SSMRESULT createWorkerThread(OUT IWorkerThread **ppWorkerThread);
+        SSMRESULT createWorkerThread(IWorkerThread **ppWorkerThread);
 
         SSMRESULT destroyThreadPool();
 };
index ae2896f..58d1ece 100644 (file)
@@ -27,7 +27,7 @@ Token::Token()
     condition = ModelCondition::PREDICATE_EQ;
 }
 
-std::vector<std::string> CCQLParser::tokenize(IN const std::string &input)
+std::vector<std::string> CCQLParser::tokenize(const std::string &input)
 {
     std::vector<std::string> temp;
     temp.push_back(",");
@@ -51,7 +51,7 @@ std::vector<std::string> CCQLParser::tokenize(IN const std::string &input)
     return tokens_temp;
 }
 
-bool CCQLParser::parse(IN std::string input, OUT Token *root)
+bool CCQLParser::parse(std::string input, Token *root)
 {
     std::vector<std::string> tokens = tokenize(input);
     bool flag;//get,sub,if
@@ -223,7 +223,7 @@ bool CCQLParser::parse(IN std::string input, OUT Token *root)
     return true;
 }
 
-std::string CCQLParser::tolower(IN std::string str)
+std::string CCQLParser::tolower(std::string str)
 {
     for (unsigned int i = 0 ; i < str.size() ; i++)
     {
@@ -236,8 +236,8 @@ std::string CCQLParser::tolower(IN std::string str)
     return str;
 }
 
-std::vector<std::string> CCQLParser::getTokens(IN const std::string &str,
-        IN const std::string &delimiters)
+std::vector<std::string> CCQLParser::getTokens(const std::string &str,
+        const std::string &delimiters)
 {
     std::string::size_type lastPos = str.find_first_not_of(delimiters, 0);
     std::string::size_type pos     = str.find_first_of(delimiters, lastPos);
@@ -256,7 +256,7 @@ std::vector<std::string> CCQLParser::getTokens(IN const std::string &str,
     return tokens;
 }
 
-void CCQLParser::check_index(IN std::string input, OUT Token *token)
+void CCQLParser::check_index(std::string input, Token *token)
 {
     std::vector<std::string> tokens = getTokens(input, "[");
 
@@ -283,8 +283,8 @@ void CCQLParser::check_index(IN std::string input, OUT Token *token)
     }
 }
 
-bool CCQLParser::split(IN std::string input, IN Token *root, bool flag, IN std::string arg1,
-                       IN std::string arg2)
+bool CCQLParser::split(std::string input, Token *root, bool flag, std::string arg1,
+                       std::string arg2)
 {
     std::vector<std::string> tokens = getTokens(input, ".");
     Token *temp_token = root;
@@ -353,7 +353,7 @@ bool CCQLParser::split(IN std::string input, IN Token *root, bool flag, IN std::
     return true;
 }
 
-int CCQLParser::check_number(IN std::string &str)
+int CCQLParser::check_number(std::string &str)
 {
     int flag = 0; // 0 text /1 integer /2 real
     int dotCount = 0;
@@ -387,7 +387,7 @@ int CCQLParser::check_number(IN std::string &str)
     return flag;
 }
 
-std::string CCQLParser::check_Predicate(IN std::string input)
+std::string CCQLParser::check_Predicate(std::string input)
 {
     std::string temp = "";
     for (unsigned int i = 0 ; i < input.size() ; i++)
@@ -433,7 +433,7 @@ std::string CCQLParser::check_Predicate(IN std::string input)
     return temp;
 }
 
-bool CCQLParser::check_grammer(IN Token *token)
+bool CCQLParser::check_grammer(Token *token)
 {
     if (token->child_token.size() == 1 && tolower(token->child_token.at(0).name) == "get")
     {
index aa55257..1b658ae 100644 (file)
@@ -78,7 +78,7 @@ class CCQLParser
         * @exception
         * @see
         */
-        bool parse(IN std::string input, OUT Token *root);
+        bool parse(std::string input, Token *root);
 
         /**
         * @fn tolower
@@ -90,7 +90,7 @@ class CCQLParser
         * @exception
         * @see
         */
-        static std::string tolower(IN std::string str);
+        static std::string tolower(std::string str);
 
         /**
         * @fn check_Query_grammer
@@ -102,7 +102,7 @@ class CCQLParser
         * @exception
         * @see
         */
-        bool check_grammer(IN Token *token);
+        bool check_grammer(Token *token);
 
     private:
         /**
@@ -115,7 +115,7 @@ class CCQLParser
         * @exception
         * @see
         */
-        std::vector<std::string> tokenize(IN const std::string &input);
+        std::vector<std::string> tokenize(const std::string &input);
 
         /**
         * @fn getTokens
@@ -128,8 +128,8 @@ class CCQLParser
         * @exception
         * @see
         */
-        static std::vector<std::string> getTokens(IN const std::string &str,
-                IN const std::string &delimiters = " ");
+        static std::vector<std::string> getTokens(const std::string &str,
+                const std::string &delimiters = " ");
 
         /**
         * @fn check_index
@@ -142,7 +142,7 @@ class CCQLParser
         * @exception
         * @see
         */
-        void check_index(IN std::string input, OUT Token *token);
+        void check_index(std::string input, Token *token);
 
         /**
         * @fn split
@@ -158,8 +158,8 @@ class CCQLParser
         * @exception
         * @see
         */
-        bool split(IN std::string input, IN Token *root, IN bool flag, IN std::string arg1 = "",
-                   IN std::string arg2 = "");
+        bool split(std::string input, Token *root, bool flag, std::string arg1 = "",
+                   std::string arg2 = "");
 
         /**
         * @fn check_number
@@ -171,7 +171,7 @@ class CCQLParser
         * @exception
         * @see
         */
-        int check_number(IN std::string &str);
+        int check_number(std::string &str);
 
         /**
         * @fn check_Predicate
@@ -183,7 +183,7 @@ class CCQLParser
         * @exception
         * @see
         */
-        std::string check_Predicate(IN std::string input);
+        std::string check_Predicate(std::string input);
 };
 
 #endif /*_CQLParser_H_*/
index 33e8ebc..f13e6e6 100644 (file)
@@ -45,14 +45,14 @@ void CConditionedModel::finalRelease()
     m_triggerId = -1;
 }
 
-SSMRESULT CConditionedModel::create(IN IContextModel *pBaseModel,
-                                    IN ModelConditionVec *pModelConditions)
+SSMRESULT CConditionedModel::create(IContextModel *pBaseModel,
+                                    ModelConditionVec *pModelConditions)
 {
     m_watchCondition = *pModelConditions;
     return pBaseModel->queryInterface(OID_IContextModel, (IBase **)&m_pBaseModel);
 }
 
-SSMRESULT CConditionedModel::getBaseContextModel(OUT IContextModel **ppBaseContextModel)
+SSMRESULT CConditionedModel::getBaseContextModel(IContextModel **ppBaseContextModel)
 {
     SSMRESULT res = SSM_E_FAIL;
 
@@ -62,14 +62,14 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CConditionedModel::registerConditionedModelEvent(IN IConditionedModelEvent
+SSMRESULT CConditionedModel::registerConditionedModelEvent(IConditionedModelEvent
         *pConditionedModelEvent)
 {
     m_pConditionedModelEvent = pConditionedModelEvent;
     return SSM_S_OK;
 }
 
-SSMRESULT CConditionedModel::onWatchModelData(IN int triggerId, IN int dataId)
+SSMRESULT CConditionedModel::onWatchModelData(int triggerId, int dataId)
 {
     SSMRESULT res = SSM_E_FAIL;
 
@@ -85,7 +85,7 @@ SSMRESULT CConditionedModel::onWatchModelData(IN int triggerId, IN int dataId)
     return res;
 }
 
-SSMRESULT CConditionedModel::activateTrigger(OUT int *pTriggerId)
+SSMRESULT CConditionedModel::activateTrigger(int *pTriggerId)
 {
     SSMRESULT res = SSM_E_FAIL;
 
@@ -143,7 +143,7 @@ CLEANUP:
     return ret;
 }
 
-SSMRESULT CConditionedModel::getAffectedData(OUT IntVec *pDataIds)
+SSMRESULT CConditionedModel::getAffectedData(IntVec *pDataIds)
 {
     SSMRESULT res = SSM_E_FAIL;
 
@@ -168,7 +168,7 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CConditionedModel::getWatchCondition(OUT ModelConditionVec *pModelConditions)
+SSMRESULT CConditionedModel::getWatchCondition(ModelConditionVec *pModelConditions)
 {
     *pModelConditions = m_watchCondition;
     return SSM_S_OK;
index 1d63c00..eb21eff 100644 (file)
@@ -63,7 +63,7 @@ class CConditionedModel :
         * @exception
         * @see
         */
-        SSMRESULT create(IN IContextModel *pBaseModel, IN ModelConditionVec *pModelConditions);
+        SSMRESULT create(IContextModel *pBaseModel, ModelConditionVec *pModelConditions);
 
         /**
         * @fn     onWatchModelData
@@ -77,7 +77,7 @@ class CConditionedModel :
         * @exception
         * @see
         */
-        SSMRESULT onWatchModelData(IN int triggerId, IN int dataId);
+        SSMRESULT onWatchModelData(int triggerId, int dataId);
 
         SSMRESULT queryInterface(const OID &objectID, IBase **ppObject)
         {
@@ -106,7 +106,7 @@ class CConditionedModel :
         * @exception
         * @see
         */
-        SSMRESULT getBaseContextModel(OUT IContextModel **ppBaseContextModel);
+        SSMRESULT getBaseContextModel(IContextModel **ppBaseContextModel);
 
         /**
         * @fn     registerConditionedModelEvent
@@ -119,7 +119,7 @@ class CConditionedModel :
         * @exception
         * @see
         */
-        SSMRESULT registerConditionedModelEvent(IN IConditionedModelEvent *pConditionedModelEvent);
+        SSMRESULT registerConditionedModelEvent(IConditionedModelEvent *pConditionedModelEvent);
 
         /**
         * @fn     activateTrigger
@@ -132,7 +132,7 @@ class CConditionedModel :
         * @exception
         * @see
         */
-        SSMRESULT activateTrigger(OUT int *pTriggerId);
+        SSMRESULT activateTrigger(int *pTriggerId);
 
         /**
         * @fn     deactivateTrigger
@@ -171,7 +171,7 @@ class CConditionedModel :
         * @exception
         * @see
         */
-        SSMRESULT getAffectedData(OUT IntVec *pDataIds);
+        SSMRESULT getAffectedData(IntVec *pDataIds);
 
         /**
         * @fn     getWatchCondition
@@ -184,7 +184,7 @@ class CConditionedModel :
         * @exception
         * @see
         */
-        SSMRESULT getWatchCondition(OUT ModelConditionVec *pModelConditions);
+        SSMRESULT getWatchCondition(ModelConditionVec *pModelConditions);
 };
 
 #endif
index 85bbd6a..df3d026 100644 (file)
@@ -55,22 +55,22 @@ void CConditionedQuery::finalRelease()
     }
 }
 
-SSMRESULT CConditionedQuery::create(IN IContextModel::ActivationType activationType,
-                                    IN int totalConditionsCount)
+SSMRESULT CConditionedQuery::create(IContextModel::ActivationType activationType,
+                                    int totalConditionsCount)
 {
     m_activationType = activationType;
     m_untrackedConditionsCount = totalConditionsCount;
     return SSM_S_OK;
 }
 
-SSMRESULT CConditionedQuery::registerQueryConditionEvent(IN IConditionedQueryEvent
+SSMRESULT CConditionedQuery::registerQueryConditionEvent(IConditionedQueryEvent
         *pConditionedQueryEvent)
 {
     m_conditionedQueryEvent = pConditionedQueryEvent;
     return SSM_S_OK;
 }
 
-SSMRESULT CConditionedQuery::onConditionedModelTriggered(IN int triggerId)
+SSMRESULT CConditionedQuery::onConditionedModelTriggered(int triggerId)
 {
     SSMRESULT res = SSM_E_FAIL;
     int         evaluatedConditions = m_conditionedModels.size();
@@ -95,7 +95,7 @@ CLEANUP:
     return res;
 }
 
-void CConditionedQuery::onExecute(IN void *pArg)
+void CConditionedQuery::onExecute(void *pArg)
 {
     if (m_conditionedQueryEvent)
     {
@@ -103,13 +103,13 @@ void CConditionedQuery::onExecute(IN void *pArg)
     }
 }
 
-void CConditionedQuery::onTerminate(IN void *pArg)
+void CConditionedQuery::onTerminate(void *pArg)
 {
     IConditionedQueryResult *pResult = (IConditionedQueryResult *)pArg;
     SAFE_RELEASE(pResult);
 }
 
-SSMRESULT CConditionedQuery::registerConditionedModel(IN IConditionedModel *pConditionedModel)
+SSMRESULT CConditionedQuery::registerConditionedModel(IConditionedModel *pConditionedModel)
 {
     SSMRESULT           res = SSM_E_FAIL;
     IContextModel       *pContextModel = NULL;
@@ -151,7 +151,7 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CConditionedQuery::activateTriggers(IN int userTriggerId)
+SSMRESULT CConditionedQuery::activateTriggers(int userTriggerId)
 {
     SSMRESULT           res = SSM_E_FAIL;
     int                 triggerId = 0;
@@ -223,7 +223,7 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CConditionedQuery::getConditionedQueryResult(OUT IConditionedQueryResult
+SSMRESULT CConditionedQuery::getConditionedQueryResult(IConditionedQueryResult
         **ppConditionedQueryResult)
 {
     SSMRESULT res = SSM_E_FAIL;
index ef53d0c..714b28a 100644 (file)
@@ -67,7 +67,7 @@ class CConditionedQuery :
         * @exception
         * @see
         */
-        SSMRESULT create(IN IContextModel::ActivationType activationType, IN int totalConditionsCount);
+        SSMRESULT create(IContextModel::ActivationType activationType, int totalConditionsCount);
 
         /**
         * @fn     registerQueryConditionEvent
@@ -80,7 +80,7 @@ class CConditionedQuery :
         * @exception
         * @see
         */
-        SSMRESULT registerQueryConditionEvent(IN IConditionedQueryEvent *pConditionedQueryEvent);
+        SSMRESULT registerQueryConditionEvent(IConditionedQueryEvent *pConditionedQueryEvent);
 
         /**
         * @fn     onConditionedModelTriggered
@@ -93,11 +93,11 @@ class CConditionedQuery :
         * @exception
         * @see
         */
-        SSMRESULT onConditionedModelTriggered(IN int triggerId);
+        SSMRESULT onConditionedModelTriggered(int triggerId);
 
-        void onExecute(IN void *pArg);
+        void onExecute(void *pArg);
 
-        void onTerminate(IN void *pArg);
+        void onTerminate(void *pArg);
 
         SSMRESULT queryInterface(const OID &objectID, IBase **ppObject)
         {
@@ -126,7 +126,7 @@ class CConditionedQuery :
         * @exception
         * @see
         */
-        SSMRESULT registerConditionedModel(IN IConditionedModel *pConditionedModel);
+        SSMRESULT registerConditionedModel(IConditionedModel *pConditionedModel);
 
         /**
         * @fn     activateTriggers
@@ -139,7 +139,7 @@ class CConditionedQuery :
         * @exception
         * @see
         */
-        SSMRESULT activateTriggers(IN int userTriggerId);
+        SSMRESULT activateTriggers(int userTriggerId);
 
         /**
         * @fn     deactivateTriggers
@@ -165,7 +165,7 @@ class CConditionedQuery :
         * @exception
         * @see
         */
-        SSMRESULT getConditionedQueryResult(OUT IConditionedQueryResult **ppConditionedQueryResult);
+        SSMRESULT getConditionedQueryResult(IConditionedQueryResult **ppConditionedQueryResult);
 
         /**
         * @fn     hasAllConditionedModels
index 1396dec..67ab72d 100644 (file)
@@ -37,7 +37,7 @@ void CConditionedQueryResult::finalRelease()
     }
 }
 
-SSMRESULT CConditionedQueryResult::addConditionedModel(IN IConditionedModel *pConditionedModel)
+SSMRESULT CConditionedQueryResult::addConditionedModel(IConditionedModel *pConditionedModel)
 {
     pConditionedModel->addRef();
     m_conditionedModels.push_back(pConditionedModel);
@@ -50,8 +50,8 @@ unsigned int CConditionedQueryResult::getConditionedModelCount()
     return m_conditionedModels.size();
 }
 
-SSMRESULT CConditionedQueryResult::getConditionedContextModel(IN unsigned int conditionedModelIndex,
-        OUT IConditionedModel **ppConditionedModel)
+SSMRESULT CConditionedQueryResult::getConditionedContextModel(unsigned int conditionedModelIndex,
+        IConditionedModel **ppConditionedModel)
 {
     if (conditionedModelIndex > m_conditionedModels.size() - 1)
     {
index 92b649d..ff4c990 100644 (file)
@@ -54,7 +54,7 @@ class CConditionedQueryResult :
         * @exception
         * @see
         */
-        SSMRESULT addConditionedModel(IN IConditionedModel *pConditionedModel);
+        SSMRESULT addConditionedModel(IConditionedModel *pConditionedModel);
 
         SSMRESULT queryInterface(const OID &objectID, IBase **ppObject)
         {
@@ -97,8 +97,8 @@ class CConditionedQueryResult :
         * @exception
         * @see
         */
-        SSMRESULT getConditionedContextModel(IN unsigned int conditionedModelIndex,
-                                             OUT IConditionedModel **ppConditionedModel);
+        SSMRESULT getConditionedContextModel(unsigned int conditionedModelIndex,
+                                             IConditionedModel **ppConditionedModel);
 };
 
 #endif
index 20029b1..72a5b07 100644 (file)
@@ -89,8 +89,8 @@ CLEANUP:
     return;
 }
 
-void CContextModel::registerSSMResource(IN ActivationType activationType, IN int targetDeviceDataId,
-                                        IN ISSMResource *pSSMResource)
+void CContextModel::registerSSMResource(ActivationType activationType, int targetDeviceDataId,
+                                        ISSMResource *pSSMResource)
 {
     intptr_t     *pData = NULL;
 
@@ -136,8 +136,8 @@ void CContextModel::registerSSMResource(IN ActivationType activationType, IN int
     m_mtxActivationCount.unlock();
 }
 
-void CContextModel::unregisterSSMResource(IN ActivationType activationType,
-        IN int targetDeviceDataId, IN ISSMResource *pSSMResource)
+void CContextModel::unregisterSSMResource(ActivationType activationType,
+        int targetDeviceDataId, ISSMResource *pSSMResource)
 {
     intptr_t     *pData = NULL;
 
@@ -177,8 +177,8 @@ void CContextModel::unregisterSSMResource(IN ActivationType activationType,
     m_mtxActivationCount.unlock();
 }
 
-SSMRESULT CContextModel::create(IN ConstructionType constructionType,
-                                IN IContextModel *pParentModel, IN std::string modelName, IN ModelPropertyVec *pModelProperties)
+SSMRESULT CContextModel::create(ConstructionType constructionType,
+                                IContextModel *pParentModel, std::string modelName, ModelPropertyVec *pModelProperties)
 {
     SSMRESULT res = SSM_E_FAIL;
     int         modelId = 1;
@@ -205,13 +205,13 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CContextModel::registerContextModelEvent(IN IContextModelEvent *pContextModelEvent)
+SSMRESULT CContextModel::registerContextModelEvent(IContextModelEvent *pContextModelEvent)
 {
     m_pContextModelEvent = pContextModelEvent;
     return SSM_S_OK;
 }
 
-void CContextModel::onExecute(IN void *pArg)
+void CContextModel::onExecute(void *pArg)
 {
     intptr_t *pData = (intptr_t *)pArg;
 
@@ -221,15 +221,15 @@ void CContextModel::onExecute(IN void *pArg)
     }
 }
 
-void CContextModel::onTerminate(IN void *pArg)
+void CContextModel::onTerminate(void *pArg)
 {
     intptr_t *pData = (intptr_t *)pArg;
     SAFE_ARRAY_DELETE(pData);
 }
 
 //TODO: called when new data arrived
-int CContextModel::onEvent(IN std::string deviceID, IN TypeofEvent callType,
-                           IN std::vector<ContextData> ctxData)
+int CContextModel::onEvent(std::string deviceID, TypeofEvent callType,
+                           std::vector<ContextData> ctxData)
 {
     SSMRESULT           res = SSM_E_FAIL;
     int                 dataId = 0;
@@ -337,21 +337,21 @@ IContextModel::ConstructionType CContextModel::getConstructionType()
     return m_constructionType;
 }
 
-SSMRESULT CContextModel::getParentDataId(IN int dataId, IN IContextModel *pParentModel,
-        OUT int *pParentDataId)
+SSMRESULT CContextModel::getParentDataId(int dataId, IContextModel *pParentModel,
+        int *pParentDataId)
 {
     return m_pEvaluationEngine->getParentDataId(m_modelId, dataId, pParentModel->getModelId(),
             pParentDataId);
 }
 
-SSMRESULT CContextModel::getChildDataId(IN int dataId, IN IContextModel *pChildModel,
-                                        OUT IntVec *pChildDataIds)
+SSMRESULT CContextModel::getChildDataId(int dataId, IContextModel *pChildModel,
+                                        IntVec *pChildDataIds)
 {
     return m_pEvaluationEngine->getChildDataId(m_modelId, dataId, pChildModel->getModelId(),
             pChildDataIds);
 }
 
-SSMRESULT CContextModel::activate(IN ActivationType activationType, IN int targetDeviceDataId)
+SSMRESULT CContextModel::activate(ActivationType activationType, int targetDeviceDataId)
 {
     if (targetDeviceDataId < 0 && activationType == ACTIVATION_TYPE_SUBSCRIBE)
     {
@@ -377,7 +377,7 @@ SSMRESULT CContextModel::activate(IN ActivationType activationType, IN int targe
     return SSM_S_OK;
 }
 
-SSMRESULT CContextModel::deactivate(IN ActivationType activationType, IN int targetDeviceDataId)
+SSMRESULT CContextModel::deactivate(ActivationType activationType, int targetDeviceDataId)
 {
     if (targetDeviceDataId < 0 && activationType == ACTIVATION_TYPE_SUBSCRIBE)
     {
@@ -403,29 +403,29 @@ SSMRESULT CContextModel::deactivate(IN ActivationType activationType, IN int tar
     return SSM_S_OK;
 }
 /*
-SSMRESULT CContextModel::GetModelSchema(OUT ModelPropertyVec *pModelProperties)
+SSMRESULT CContextModel::GetModelSchema(ModelPropertyVec *pModelProperties)
 {
     return m_pEvaluationEngine->GetModelSchema(m_ModelId, pModelProperties);
 }
 */
-SSMRESULT CContextModel::addModelData(IN int parentDataId, IN ModelPropertyVec *pData,
-                                      OUT int *pDataId)
+SSMRESULT CContextModel::addModelData(int parentDataId, ModelPropertyVec *pData,
+                                      int *pDataId)
 {
     return m_pEvaluationEngine->addModelData(m_modelId, m_pParentModel->getModelId(), parentDataId,
             pData, pDataId);
 }
 
-SSMRESULT CContextModel::updateModelData(IN int dataId, IN ModelPropertyVec *pData)
+SSMRESULT CContextModel::updateModelData(int dataId, ModelPropertyVec *pData)
 {
     return m_pEvaluationEngine->updateModelData(m_modelId, dataId, pData);
 }
 
-SSMRESULT CContextModel::deleteModelData(IN int dataId)
+SSMRESULT CContextModel::deleteModelData(int dataId)
 {
     return m_pEvaluationEngine->deleteModelData(m_modelId, dataId);
 }
 
-SSMRESULT CContextModel::getModelData(IN int dataId, OUT ModelPropertyVec *pData)
+SSMRESULT CContextModel::getModelData(int dataId, ModelPropertyVec *pData)
 {
     SSMRESULT res = SSM_E_FAIL;
     int     i = 0;
@@ -440,8 +440,8 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CContextModel::getModelDataSet(IN int startIndex, IN int count,
-        OUT std::vector<ModelPropertyVec> *pDataSet, OUT int *pLastIndex)
+SSMRESULT CContextModel::getModelDataSet(int startIndex, int count,
+        std::vector<ModelPropertyVec> *pDataSet, int *pLastIndex)
 {
     SSMRESULT res = SSM_E_FAIL;
     int     i;
@@ -464,8 +464,8 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CContextModel::createConditionedModel(IN ModelConditionVec *pModelConditionVec,
-        OUT IConditionedModel **ppConditionedModel)
+SSMRESULT CContextModel::createConditionedModel(ModelConditionVec *pModelConditionVec,
+        IConditionedModel **ppConditionedModel)
 {
     SSMRESULT res = SSM_E_FAIL;
     CObject<CConditionedModel>                  *pConditionedModel;
@@ -501,8 +501,8 @@ CLEANUP:
 */
 
 //Called new install or re install
-void CContextModel::addSSMResourceAndDeviceDataId(IN std::string deviceId, IN int deviceDataId,
-        IN ISSMResource *pSSMResource)
+void CContextModel::addSSMResourceAndDeviceDataId(std::string deviceId, int deviceDataId,
+        ISSMResource *pSSMResource)
 {
     if (deviceDataId == 1)
     {
index 0fa0b8d..9cb018d 100644 (file)
@@ -60,11 +60,11 @@ class CContextModel :
 
         std::string                             m_secLifeTime;
 
-        void registerSSMResource(IN ActivationType activationType, IN int targetDeviceDataId,
-                                 IN ISSMResource *pSSMResource);
+        void registerSSMResource(ActivationType activationType, int targetDeviceDataId,
+                                 ISSMResource *pSSMResource);
 
-        void unregisterSSMResource(IN ActivationType activationType, IN int targetDeviceDataId,
-                                   IN ISSMResource *pSSMResource);
+        void unregisterSSMResource(ActivationType activationType, int targetDeviceDataId,
+                                   ISSMResource *pSSMResource);
 
     public:
         SSMRESULT finalConstruct();
@@ -85,8 +85,8 @@ class CContextModel :
         * @exception
         * @see
         */
-        SSMRESULT create(IN ConstructionType constructionType, IN IContextModel *pParentModel,
-                         IN std::string modelName, IN ModelPropertyVec *pModelProperties);
+        SSMRESULT create(ConstructionType constructionType, IContextModel *pParentModel,
+                         std::string modelName, ModelPropertyVec *pModelProperties);
 
         /**
         * @fn     registerContextModelEvent
@@ -99,11 +99,11 @@ class CContextModel :
         * @exception
         * @see
         */
-        SSMRESULT registerContextModelEvent(IN IContextModelEvent *pContextModelEvent);
+        SSMRESULT registerContextModelEvent(IContextModelEvent *pContextModelEvent);
 
-        void onExecute(IN void *pArg);
+        void onExecute(void *pArg);
 
-        void onTerminate(IN void *pArg);
+        void onTerminate(void *pArg);
 
         /**
         * @fn     onEvent
@@ -118,7 +118,7 @@ class CContextModel :
         * @exception
         * @see
         */
-        int onEvent(IN std::string deviceID, IN TypeofEvent callType, IN std::vector<ContextData> ctxData);
+        int onEvent(std::string deviceID, TypeofEvent callType, std::vector<ContextData> ctxData);
 
         SSMRESULT queryInterface(const OID &objectID, IBase **ppObject)
         {
@@ -188,7 +188,7 @@ class CContextModel :
         * @exception
         * @see
         */
-        SSMRESULT getParentDataId(IN int dataId, IN IContextModel *pParentModel, OUT int *pParentDataId);
+        SSMRESULT getParentDataId(int dataId, IContextModel *pParentModel, int *pParentDataId);
 
         /**
         * @fn     getChildDataId
@@ -203,7 +203,7 @@ class CContextModel :
         * @exception
         * @see
         */
-        SSMRESULT getChildDataId(IN int dataId, IN IContextModel *pChildModel, OUT IntVec *pChildDataIds);
+        SSMRESULT getChildDataId(int dataId, IContextModel *pChildModel, IntVec *pChildDataIds);
 
         /**
         * @fn     activate
@@ -217,7 +217,7 @@ class CContextModel :
         * @exception
         * @see
         */
-        SSMRESULT activate(IN ActivationType activationType, IN int targetDeviceDataId);
+        SSMRESULT activate(ActivationType activationType, int targetDeviceDataId);
 
         /**
         * @fn     deactivate
@@ -232,9 +232,9 @@ class CContextModel :
         * @exception
         * @see
         */
-        SSMRESULT deactivate(IN ActivationType activationType, IN int targetDeviceDataId);
+        SSMRESULT deactivate(ActivationType activationType, int targetDeviceDataId);
 
-        //SSMRESULT GetModelSchema(OUT ModelPropertyVec *pModelProperties);
+        //SSMRESULT GetModelSchema(ModelPropertyVec *pModelProperties);
 
         /**
         * @fn     addModelData
@@ -249,7 +249,7 @@ class CContextModel :
         * @exception
         * @see
         */
-        SSMRESULT addModelData(IN int parentDataId, IN ModelPropertyVec *pData, OUT int *pDataId);
+        SSMRESULT addModelData(int parentDataId, ModelPropertyVec *pData, int *pDataId);
 
         /**
         * @fn     updateModelData
@@ -263,7 +263,7 @@ class CContextModel :
         * @exception
         * @see
         */
-        SSMRESULT updateModelData(IN int dataId, IN ModelPropertyVec *pData);
+        SSMRESULT updateModelData(int dataId, ModelPropertyVec *pData);
 
         /**
         * @fn     deleteModelData
@@ -276,7 +276,7 @@ class CContextModel :
         * @exception
         * @see
         */
-        SSMRESULT deleteModelData(IN int dataId);
+        SSMRESULT deleteModelData(int dataId);
 
         /**
         * @fn     getModelData
@@ -290,7 +290,7 @@ class CContextModel :
         * @exception
         * @see
         */
-        SSMRESULT getModelData(IN int dataId, OUT ModelPropertyVec *pData);
+        SSMRESULT getModelData(int dataId, ModelPropertyVec *pData);
 
         /**
         * @fn     getModelDataSet
@@ -306,8 +306,8 @@ class CContextModel :
         * @exception
         * @see
         */
-        SSMRESULT getModelDataSet(IN int startIndex, IN int count,
-                                  OUT std::vector<ModelPropertyVec> *pDataSet, OUT int *pLastIndex);
+        SSMRESULT getModelDataSet(int startIndex, int count,
+                                  std::vector<ModelPropertyVec> *pDataSet, int *pLastIndex);
 
         /**
         * @fn     createConditionedModel
@@ -321,8 +321,8 @@ class CContextModel :
         * @exception
         * @see
         */
-        SSMRESULT createConditionedModel(IN ModelConditionVec *pModelConditionVec,
-                                         OUT IConditionedModel **ppConditionedModel);
+        SSMRESULT createConditionedModel(ModelConditionVec *pModelConditionVec,
+                                         IConditionedModel **ppConditionedModel);
 
         //SSMRESULT CleanUpModelData();
 
@@ -339,8 +339,8 @@ class CContextModel :
         * @exception
         * @see
         */
-        void addSSMResourceAndDeviceDataId(IN std::string deviceId, IN int deviceDataId,
-                                           IN ISSMResource *pSSMResource);
+        void addSSMResourceAndDeviceDataId(std::string deviceId, int deviceDataId,
+                                           ISSMResource *pSSMResource);
 
         /**
         * @fn     SetLifeTime
index 1112318..92fa629 100644 (file)
@@ -28,13 +28,13 @@ CContextQuery::CContextQuery()
 {
 }
 
-SSMRESULT CContextQuery::initialize(IN Token &input_root)
+SSMRESULT CContextQuery::initialize(Token &input_root)
 {
     m_root = input_root;
     return CreateGlobalInstance(OID_IPropagationEngine, (IBase **)&m_pPropagationEngine);
 }
 
-std::string CContextQuery::search_last_modelName(IN Token *temp)
+std::string CContextQuery::search_last_modelName(Token *temp)
 {
     while (true)
     {
@@ -49,8 +49,8 @@ std::string CContextQuery::search_last_modelName(IN Token *temp)
     }
 }
 
-void CContextQuery::integrate_result(OUT std::vector<result_model> *result, IN int modelId,
-                                     IN std::vector<int> *dataid, IN std::string modelName)
+void CContextQuery::integrate_result(std::vector<result_model> *result, int modelId,
+                                     std::vector<int> *dataid, std::string modelName)
 {
     bool flag = false;
 
@@ -91,7 +91,7 @@ void CContextQuery::integrate_result(OUT std::vector<result_model> *result, IN i
 
 
 
-void CContextQuery::return_contextName(OUT std::vector<std::string> *contextName)
+void CContextQuery::return_contextName(std::vector<std::string> *contextName)
 {
     int k = m_root.child_token.at(0).child_token.size();
 
@@ -203,7 +203,7 @@ void CContextQuery::check_result_model()
     }
 }
 
-void CContextQuery::return_modelID(OUT std::vector<int> *vector_int)
+void CContextQuery::return_modelID(std::vector<int> *vector_int)
 {
     int k = m_root.child_token.at(0).child_token.size();
 
@@ -223,7 +223,7 @@ void CContextQuery::return_modelID(OUT std::vector<int> *vector_int)
     }
 }
 
-void CContextQuery::make_QueryCondition(OUT QueryCondition *result)
+void CContextQuery::make_QueryCondition(QueryCondition *result)
 {
 
     if (m_root.child_token.size() < 2)
index 8b42ce5..7fb5e33 100644 (file)
@@ -80,7 +80,7 @@ class CContextQuery
         * @exception
         * @see
         */
-        SSMRESULT initialize(IN Token &input_root);
+        SSMRESULT initialize(Token &input_root);
 
         /**
         * @fn integrate_result
@@ -95,8 +95,8 @@ class CContextQuery
         * @exception
         * @see
         */
-        void integrate_result(OUT std::vector<result_model> *result, IN int modelId,
-                              IN std::vector<int> *dataid, IN std::string modelName);
+        void integrate_result(std::vector<result_model> *result, int modelId,
+                              std::vector<int> *dataid, std::string modelName);
 
         /**
         * @fn return_contextName
@@ -108,7 +108,7 @@ class CContextQuery
         * @exception
         * @see
         */
-        void return_contextName(OUT std::vector<std::string> *contextName);
+        void return_contextName(std::vector<std::string> *contextName);
 
         /**
         * @fn check_result_model
@@ -132,7 +132,7 @@ class CContextQuery
         * @exception
         * @see
         */
-        void return_modelID(OUT std::vector<int> *vector_int);
+        void return_modelID(std::vector<int> *vector_int);
 
         /**
         * @fn make_QueryCondition
@@ -144,7 +144,7 @@ class CContextQuery
         * @exception
         * @see
         */
-        void make_QueryCondition(OUT QueryCondition *result);
+        void make_QueryCondition(QueryCondition *result);
 
     private:
         /**
@@ -157,7 +157,7 @@ class CContextQuery
         * @exception
         * @see
         */
-        std::string search_last_modelName(IN Token *temp);
+        std::string search_last_modelName(Token *temp);
 
         Token m_root;
         CObjectPtr<IPropagationEngine>      m_pPropagationEngine;
index 0779c14..f064dc4 100644 (file)
@@ -37,15 +37,15 @@ CDataReader::~CDataReader()
     }
 }
 
-SSMRESULT CDataReader::addModelData(IN std::string modelName,
-                                    IN std::vector<CModelData *> *pModelData)
+SSMRESULT CDataReader::addModelData(std::string modelName,
+                                    std::vector<CModelData *> *pModelData)
 {
     m_modelDataList[modelName] = *pModelData;
 
     return SSM_S_OK;
 }
 
-SSMRESULT CDataReader::getAffectedModels(OUT std::vector<std::string> *pAffectedModels)
+SSMRESULT CDataReader::getAffectedModels(std::vector<std::string> *pAffectedModels)
 {
     for (std::map<std::string, std::vector<CModelData *> >::iterator itorModel =
              m_modelDataList.begin();
@@ -57,7 +57,7 @@ SSMRESULT CDataReader::getAffectedModels(OUT std::vector<std::string> *pAffected
     return SSM_S_OK;
 }
 
-SSMRESULT CDataReader::getModelDataCount(IN std::string modelName, OUT int *pDataCount)
+SSMRESULT CDataReader::getModelDataCount(std::string modelName, int *pDataCount)
 {
     std::map<std::string, std::vector<CModelData *> >::iterator itor;
 
@@ -73,8 +73,8 @@ SSMRESULT CDataReader::getModelDataCount(IN std::string modelName, OUT int *pDat
     return SSM_S_OK;
 }
 
-SSMRESULT CDataReader::getModelData(IN std::string modelName, IN int dataIndex,
-                                    OUT IModelData **ppModelData)
+SSMRESULT CDataReader::getModelData(std::string modelName, int dataIndex,
+                                    IModelData **ppModelData)
 {
     std::map<std::string, std::vector<CModelData *> >::iterator itor;
 
index 79e7828..cafbede 100644 (file)
@@ -53,7 +53,7 @@ class CDataReader : public IDataReader
         * @exception
         * @see
         */
-        SSMRESULT addModelData(IN std::string modelName, IN std::vector<CModelData *> *pModelData);
+        SSMRESULT addModelData(std::string modelName, std::vector<CModelData *> *pModelData);
 
         /**
         * @fn     getAffectedModels
@@ -66,7 +66,7 @@ class CDataReader : public IDataReader
         * @exception
         * @see
         */
-        SSMRESULT getAffectedModels(OUT std::vector<std::string> *pAffectedModels);
+        SSMRESULT getAffectedModels(std::vector<std::string> *pAffectedModels);
 
         /**
         * @fn     getModelDataCount
@@ -81,7 +81,7 @@ class CDataReader : public IDataReader
         * @exception
         * @see
         */
-        SSMRESULT getModelDataCount(IN std::string modelName, OUT int *pDataCount);
+        SSMRESULT getModelDataCount(std::string modelName, int *pDataCount);
 
         /**
         * @fn     getModelData
@@ -100,7 +100,7 @@ class CDataReader : public IDataReader
         * @exception
         * @see
         */
-        SSMRESULT getModelData(IN std::string modelName, IN int dataIndex, OUT IModelData **ppModelData);
+        SSMRESULT getModelData(std::string modelName, int dataIndex, IModelData **ppModelData);
 };
 
 #endif
index 11f76e5..c635269 100644 (file)
@@ -43,7 +43,7 @@ void CEvaluationEngine::finalRelease()
     terminateEngine();
 }
 
-SSMRESULT CEvaluationEngine::executeSQL_NoReturn(IN std::string strSQL)
+SSMRESULT CEvaluationEngine::executeSQL_NoReturn(std::string strSQL)
 {
     SSMRESULT       res = SSM_E_FAIL;
     sqlite3_stmt    *stmt = NULL;
@@ -57,7 +57,7 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CEvaluationEngine::executeSQL_IntReturn(IN std::string strSQL, OUT int *pResult)
+SSMRESULT CEvaluationEngine::executeSQL_IntReturn(std::string strSQL, int *pResult)
 {
     SSMRESULT       res = SSM_E_FAIL;
     sqlite3_stmt    *stmt = NULL;
@@ -72,15 +72,15 @@ CLEANUP:
     return res;
 }
 
-void CEvaluationEngine::onSQLTrigger(IN sqlite3_context *context, IN int argc,
-                                     IN sqlite3_value **argv)
+void CEvaluationEngine::onSQLTrigger(sqlite3_context *context, int argc,
+                                     sqlite3_value **argv)
 {
     CEvaluationEngine *pEvaluationEngine = (CEvaluationEngine *)sqlite3_value_int64(argv[0]);
 
     pEvaluationEngine->onWatcherTriggered(sqlite3_value_int(argv[1]), sqlite3_value_int(argv[2]));
 }
 
-void CEvaluationEngine::onExecute(IN void *pArg)
+void CEvaluationEngine::onExecute(void *pArg)
 {
     std::map<int, IEvaluationEngineEvent *>::iterator itor;
     intptr_t *pData = (intptr_t *)pArg;
@@ -95,13 +95,13 @@ void CEvaluationEngine::onExecute(IN void *pArg)
     m_mtxTriggerId.unlock();
 }
 
-void CEvaluationEngine::onTerminate(IN void *pArg)
+void CEvaluationEngine::onTerminate(void *pArg)
 {
     intptr_t *pData = (intptr_t *)pArg;
     SAFE_ARRAY_DELETE(pData);
 }
 
-SSMRESULT CEvaluationEngine::onWatcherTriggered(IN int triggerId, IN int dataId)
+SSMRESULT CEvaluationEngine::onWatcherTriggered(int triggerId, int dataId)
 {
     intptr_t     *pData = new intptr_t[2];
     pData[0] = triggerId;
@@ -221,8 +221,8 @@ CLEANUP:
     return;
 }
 
-SSMRESULT CEvaluationEngine::createModel(IN int parentModelId, IN const char *newModelName,
-        IN ModelPropertyVec *pModelDescs, OUT int *pModelId)
+SSMRESULT CEvaluationEngine::createModel(int parentModelId, const char *newModelName,
+        ModelPropertyVec *pModelDescs, int *pModelId)
 {
     SSMRESULT res = SSM_E_FAIL;
     std::stringstream sstream;
@@ -304,8 +304,8 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CEvaluationEngine::addModelData(IN int modelId, IN int parentModelId, IN int parentDataId,
-        IN ModelPropertyVec *pModelValues, OUT int *pDataId)
+SSMRESULT CEvaluationEngine::addModelData(int modelId, int parentModelId, int parentDataId,
+        ModelPropertyVec *pModelValues, int *pDataId)
 {
     SSMRESULT           res = SSM_E_FAIL;
     std::stringstream   sstream;
@@ -403,8 +403,8 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CEvaluationEngine::updateModelData(IN int modelId, IN int dataId,
-        IN ModelPropertyVec *pModelValues)
+SSMRESULT CEvaluationEngine::updateModelData(int modelId, int dataId,
+        ModelPropertyVec *pModelValues)
 {
     SSMRESULT res = SSM_E_FAIL;
     std::stringstream sstream;
@@ -466,7 +466,7 @@ CLEANUP:
     return res;
 }
 /*
-SSMRESULT CEvaluationEngine::DeleteModel(IN int modelId)
+SSMRESULT CEvaluationEngine::DeleteModel(int modelId)
 {
     SSMRESULT       res = SSM_E_FAIL;
     std::stringstream sstream;
@@ -513,7 +513,7 @@ CLEANUP:
     return res;
 }
 */
-SSMRESULT CEvaluationEngine::deleteModelData(IN int modelId, IN int dataId)
+SSMRESULT CEvaluationEngine::deleteModelData(int modelId, int dataId)
 {
     SSMRESULT res = SSM_E_FAIL;
     std::stringstream sstream;
@@ -560,8 +560,8 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CEvaluationEngine::getModelDataSet(IN int modelId, IN int startIndex, IN int count,
-        OUT std::vector<ModelPropertyVec> *pDataSet, OUT int *pLastIndex)
+SSMRESULT CEvaluationEngine::getModelDataSet(int modelId, int startIndex, int count,
+        std::vector<ModelPropertyVec> *pDataSet, int *pLastIndex)
 {
     SSMRESULT res = SSM_E_FAIL;
     std::stringstream sstream;
@@ -635,8 +635,8 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CEvaluationEngine::getModelData(IN int modelId, IN int dataId,
-        OUT ModelPropertyVec *pModelProperties)
+SSMRESULT CEvaluationEngine::getModelData(int modelId, int dataId,
+        ModelPropertyVec *pModelProperties)
 {
     SSMRESULT       res = SSM_E_FAIL;
     std::stringstream sstream;
@@ -702,7 +702,7 @@ CLEANUP:
     return res;
 }
 /*
-SSMRESULT CEvaluationEngine::GetModelSchema(IN int modelId, OUT ModelPropertyVec *pModelProperties)
+SSMRESULT CEvaluationEngine::GetModelSchema(int modelId, ModelPropertyVec *pModelProperties)
 {
     SSMRESULT       res = SSM_E_FAIL;
     std::stringstream sstream;
@@ -751,8 +751,8 @@ CLEANUP:
     return res;
 }
 */
-SSMRESULT CEvaluationEngine::getConditionedModelData(IN int modelId,
-        IN ModelConditionVec *pModelConditions, OUT IntVec *pDataIds)
+SSMRESULT CEvaluationEngine::getConditionedModelData(int modelId,
+        ModelConditionVec *pModelConditions, IntVec *pDataIds)
 {
     SSMRESULT res = SSM_E_FAIL;
     std::stringstream sstream;
@@ -836,8 +836,8 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CEvaluationEngine::watchModelData(IN int modelId, IN ModelConditionVec *pModelConditions,
-        IN IEvaluationEngineEvent *pEvaluationEngineEvent, OUT int *pTriggerId)
+SSMRESULT CEvaluationEngine::watchModelData(int modelId, ModelConditionVec *pModelConditions,
+        IEvaluationEngineEvent *pEvaluationEngineEvent, int *pTriggerId)
 {
     SSMRESULT res = SSM_E_FAIL;
     std::stringstream sstream;
@@ -927,7 +927,7 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CEvaluationEngine::dropWatchModelData(IN int triggerId)
+SSMRESULT CEvaluationEngine::dropWatchModelData(int triggerId)
 {
     SSMRESULT res = SSM_E_FAIL;
     std::stringstream sstream;
@@ -951,8 +951,8 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CEvaluationEngine::getParentDataId(IN int modelId, IN int dataId, IN int parentModelId,
-        OUT int *pParentDataId)
+SSMRESULT CEvaluationEngine::getParentDataId(int modelId, int dataId, int parentModelId,
+        int *pParentDataId)
 {
     SSMRESULT res = SSM_E_FAIL;
     std::stringstream sstream;
@@ -971,8 +971,8 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CEvaluationEngine::getChildDataId(IN int modelId, IN int dataId, IN int ChildModelId,
-        OUT IntVec *pChildDataIds)
+SSMRESULT CEvaluationEngine::getChildDataId(int modelId, int dataId, int ChildModelId,
+        IntVec *pChildDataIds)
 {
     SSMRESULT res = SSM_E_FAIL;
     std::stringstream sstream;
@@ -1003,7 +1003,7 @@ CLEANUP:
     return res;
 }
 /*
-SSMRESULT CEvaluationEngine::GetPathToRoot(IN int currentModelId, OUT IntVec *pPath)
+SSMRESULT CEvaluationEngine::GetPathToRoot(int currentModelId, IntVec *pPath)
 {
     SSMRESULT res = SSM_E_FAIL;
     std::stringstream sstream;
@@ -1029,7 +1029,7 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CEvaluationEngine::GetModelId(IN const char *modelName, OUT int *pModelId)
+SSMRESULT CEvaluationEngine::GetModelId(const char *modelName, int *pModelId)
 {
     SSMRESULT res = SSM_E_FAIL;
     std::stringstream sstream;
@@ -1042,7 +1042,7 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CEvaluationEngine::GetModelHierarchy(IN int rootModelId, OUT StringVec *pPath)
+SSMRESULT CEvaluationEngine::GetModelHierarchy(int rootModelId, StringVec *pPath)
 {
     SSMRESULT res = SSM_E_FAIL;
     std::stringstream sstream;
@@ -1105,7 +1105,7 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CEvaluationEngine::GetDataHierarchy(IN int rootModelId, IN int dataId, OUT StringVec *pPath)
+SSMRESULT CEvaluationEngine::GetDataHierarchy(int rootModelId, int dataId, StringVec *pPath)
 {
     SSMRESULT res = SSM_E_FAIL;
     std::stringstream sstream;
index 03da0bf..759f44a 100644 (file)
@@ -45,11 +45,11 @@ class CEvaluationEngine :
         CSimpleMutex        m_mtxDataRelation;
         CObjectPtr<ITasker> m_pTasker;
 
-        SSMRESULT executeSQL_NoReturn(IN std::string strSQL);
+        SSMRESULT executeSQL_NoReturn(std::string strSQL);
 
-        SSMRESULT executeSQL_IntReturn(IN std::string strSQL, OUT int *pResult);
+        SSMRESULT executeSQL_IntReturn(std::string strSQL, int *pResult);
 
-        static void onSQLTrigger(IN sqlite3_context *context, IN int argc, IN sqlite3_value **argv);
+        static void onSQLTrigger(sqlite3_context *context, int argc, sqlite3_value **argv);
 
         SSMRESULT initializeEngine();
 
@@ -60,9 +60,9 @@ class CEvaluationEngine :
 
         void finalRelease();
 
-        void onExecute(IN void *pArg);
+        void onExecute(void *pArg);
 
-        void onTerminate(IN void *pArg);
+        void onTerminate(void *pArg);
 
         /**
         * @fn     onWatcherTriggered
@@ -76,7 +76,7 @@ class CEvaluationEngine :
         * @exception
         * @see
         */
-        SSMRESULT onWatcherTriggered(IN int triggerId, IN int dataId);
+        SSMRESULT onWatcherTriggered(int triggerId, int dataId);
 
         SSMRESULT queryInterface(const OID &objectID, IBase **ppObject)
         {
@@ -108,8 +108,8 @@ class CEvaluationEngine :
         * @exception
         * @see
         */
-        SSMRESULT createModel(IN int parentModelId, IN const char *newModelName,
-                              IN ModelPropertyVec *pModelDescs, OUT int *pModelId);
+        SSMRESULT createModel(int parentModelId, const char *newModelName,
+                              ModelPropertyVec *pModelDescs, int *pModelId);
 
         /**
         * @fn     addModelData
@@ -126,8 +126,8 @@ class CEvaluationEngine :
         * @exception
         * @see
         */
-        SSMRESULT addModelData(IN int modelId, IN int parentModelId, IN int parentDataId,
-                               IN ModelPropertyVec *pModelValues, OUT int *pDataId);
+        SSMRESULT addModelData(int modelId, int parentModelId, int parentDataId,
+                               ModelPropertyVec *pModelValues, int *pDataId);
 
         /**
         * @fn     updateModelData
@@ -142,9 +142,9 @@ class CEvaluationEngine :
         * @exception
         * @see
         */
-        SSMRESULT updateModelData(IN int modelId, IN int dataId, IN ModelPropertyVec *pModelValues);
+        SSMRESULT updateModelData(int modelId, int dataId, ModelPropertyVec *pModelValues);
 
-        //SSMRESULT DeleteModel(IN int modelId);
+        //SSMRESULT DeleteModel(int modelId);
 
         /**
         * @fn     deleteModelData
@@ -158,7 +158,7 @@ class CEvaluationEngine :
         * @exception
         * @see
         */
-        SSMRESULT deleteModelData(IN int modelId, IN int dataId);
+        SSMRESULT deleteModelData(int modelId, int dataId);
 
         /**
         * @fn     getModelData
@@ -173,7 +173,7 @@ class CEvaluationEngine :
         * @exception
         * @see
         */
-        SSMRESULT getModelData(IN int modelId, IN int dataId, OUT ModelPropertyVec *pModelProperties);
+        SSMRESULT getModelData(int modelId, int dataId, ModelPropertyVec *pModelProperties);
 
         /**
         * @fn     getModelDataSet
@@ -190,10 +190,10 @@ class CEvaluationEngine :
         * @exception
         * @see
         */
-        SSMRESULT getModelDataSet(IN int modelId, IN int startIndex, IN int count,
-                                  OUT std::vector<ModelPropertyVec> *pDataSet, OUT int *pLastIndex);
+        SSMRESULT getModelDataSet(int modelId, int startIndex, int count,
+                                  std::vector<ModelPropertyVec> *pDataSet, int *pLastIndex);
 
-        //SSMRESULT GetModelSchema(IN int modelId, OUT ModelPropertyVec *pModelProperties);
+        //SSMRESULT GetModelSchema(int modelId, ModelPropertyVec *pModelProperties);
 
         /**
         * @fn     getConditionedModelData
@@ -208,8 +208,8 @@ class CEvaluationEngine :
         * @exception
         * @see
         */
-        SSMRESULT getConditionedModelData(IN int modelId, IN ModelConditionVec *pModelConditions,
-                                          OUT IntVec *pDataIds);
+        SSMRESULT getConditionedModelData(int modelId, ModelConditionVec *pModelConditions,
+                                          IntVec *pDataIds);
 
         /**
         * @fn     watchModelData
@@ -225,8 +225,8 @@ class CEvaluationEngine :
         * @exception
         * @see
         */
-        SSMRESULT watchModelData(IN int modelId, IN ModelConditionVec *pModelConditions,
-                                 IN IEvaluationEngineEvent *pEvaluationEngineEvent, OUT int *pTriggerId);
+        SSMRESULT watchModelData(int modelId, ModelConditionVec *pModelConditions,
+                                 IEvaluationEngineEvent *pEvaluationEngineEvent, int *pTriggerId);
 
         /**
         * @fn     dropWatchModelData
@@ -239,7 +239,7 @@ class CEvaluationEngine :
         * @exception
         * @see
         */
-        SSMRESULT dropWatchModelData(IN int triggerId);
+        SSMRESULT dropWatchModelData(int triggerId);
 
         /**
         * @fn     getParentDataId
@@ -255,8 +255,8 @@ class CEvaluationEngine :
         * @exception
         * @see
         */
-        SSMRESULT getParentDataId(IN int modelId, IN int dataId, IN int parentModelId,
-                                  OUT int *pParentDataId);
+        SSMRESULT getParentDataId(int modelId, int dataId, int parentModelId,
+                                  int *pParentDataId);
 
         /**
         * @fn     getChildDataId
@@ -272,16 +272,16 @@ class CEvaluationEngine :
         * @exception
         * @see
         */
-        SSMRESULT getChildDataId(IN int modelId, IN int dataId, IN int childModelId,
-                                 OUT IntVec *pChildDataIds);
+        SSMRESULT getChildDataId(int modelId, int dataId, int childModelId,
+                                 IntVec *pChildDataIds);
 
-        //SSMRESULT GetPathToRoot(IN int currentModelId, OUT IntVec *pPath);
+        //SSMRESULT GetPathToRoot(int currentModelId, IntVec *pPath);
 
-        //SSMRESULT GetModelId(IN const char *modelName, OUT int *pModelId);
+        //SSMRESULT GetModelId(const char *modelName, int *pModelId);
 
-        //SSMRESULT GetModelHierarchy(IN int rootModelId, OUT StringVec *pPath);
+        //SSMRESULT GetModelHierarchy(int rootModelId, StringVec *pPath);
 
-        //SSMRESULT GetDataHierarchy(IN int rootModelId, IN int dataId, OUT StringVec *pPath);
+        //SSMRESULT GetDataHierarchy(int rootModelId, int dataId, StringVec *pPath);
 };
 
 #endif
index 450970c..0db6b9c 100644 (file)
@@ -29,12 +29,12 @@ CModelData::~CModelData()
 
 }
 
-void CModelData::setDataId(IN int dataId)
+void CModelData::setDataId(int dataId)
 {
     m_dataId = dataId;
 }
 
-void CModelData::addModelData(IN std::string propertyName, IN std::string propertyValue)
+void CModelData::addModelData(std::string propertyName, std::string propertyValue)
 {
     m_properties[propertyName] = propertyValue;
 }
@@ -49,7 +49,7 @@ int CModelData::getPropertyCount()
     return m_properties.size();
 }
 
-std::string CModelData::getPropertyName(IN int propertyIndex)
+std::string CModelData::getPropertyName(int propertyIndex)
 {
     std::map<std::string, std::string>::iterator idxProperty = m_properties.begin();
     for (int i = 0; i < propertyIndex; i++)
@@ -59,7 +59,7 @@ std::string CModelData::getPropertyName(IN int propertyIndex)
     return idxProperty->first;
 }
 
-std::string CModelData::getPropertyValue(IN int propertyIndex)
+std::string CModelData::getPropertyValue(int propertyIndex)
 {
     std::map<std::string, std::string>::iterator idxProperty = m_properties.begin();
     for (int i = 0; i < propertyIndex; i++)
@@ -69,7 +69,7 @@ std::string CModelData::getPropertyValue(IN int propertyIndex)
     return idxProperty->second;
 }
 
-std::string CModelData::getPropertyValueByName(IN std::string propertyName)
+std::string CModelData::getPropertyValueByName(std::string propertyName)
 {
     return m_properties[propertyName];
 }
index 643af67..850193e 100644 (file)
@@ -52,7 +52,7 @@ class CModelData : public IModelData
         * @exception
         * @see
         */
-        void setDataId(IN int dataId);
+        void setDataId(int dataId);
 
         /**
         * @fn     addModelData
@@ -66,7 +66,7 @@ class CModelData : public IModelData
         * @exception
         * @see
         */
-        void addModelData(IN std::string propertyName, IN std::string propertyValue);
+        void addModelData(std::string propertyName, std::string propertyValue);
 
         /**
         * @fn     getDataId
@@ -107,7 +107,7 @@ class CModelData : public IModelData
         * @exception
         * @see
         */
-        std::string getPropertyName(IN int propertyIndex);
+        std::string getPropertyName(int propertyIndex);
 
         /**
         * @fn     getPropertyValue
@@ -120,7 +120,7 @@ class CModelData : public IModelData
         * @exception
         * @see
         */
-        std::string getPropertyValue(IN int propertyIndex);
+        std::string getPropertyValue(int propertyIndex);
 
         /**
         * @fn     getPropertyValueByName
@@ -133,7 +133,7 @@ class CModelData : public IModelData
         * @exception
         * @see
         */
-        std::string getPropertyValueByName(IN std::string propertyName);
+        std::string getPropertyValueByName(std::string propertyName);
 };
 
 #endif
index 91423e6..7922df1 100644 (file)
@@ -66,8 +66,8 @@ void CPropagationEngine::finalRelease()
     }
 }
 
-SSMRESULT CPropagationEngine::findContextModel(IN std::string modelName,
-        OUT IContextModel  **ppContextModel)
+SSMRESULT CPropagationEngine::findContextModel(std::string modelName,
+        IContextModel  **ppContextModel)
 {
     SSMRESULT res = SSM_S_FALSE;
     std::map<std::string, IContextModel *>::iterator idxContextModel;
@@ -86,8 +86,8 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CPropagationEngine::registerCondition(IN IContextModel *pContextModel,
-        IN ModelConditionVec *pConditions, IN IConditionedQuery *pConditionedQuery)
+SSMRESULT CPropagationEngine::registerCondition(IContextModel *pContextModel,
+        ModelConditionVec *pConditions, IConditionedQuery *pConditionedQuery)
 {
     SSMRESULT res = SSM_E_FAIL;
     IConditionedModel           *pConditionedModel = NULL;
@@ -102,8 +102,8 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CPropagationEngine::registerVirtualCondition(IN std::string virtualContextModelName,
-        IN ModelConditionVec *pConditions, IN IConditionedQuery *pConditionedQuery)
+SSMRESULT CPropagationEngine::registerVirtualCondition(std::string virtualContextModelName,
+        ModelConditionVec *pConditions, IConditionedQuery *pConditionedQuery)
 {
     pConditionedQuery->addRef();
     m_mtxLookUpList.lock();
@@ -113,8 +113,8 @@ SSMRESULT CPropagationEngine::registerVirtualCondition(IN std::string virtualCon
     return SSM_S_OK;
 }
 
-SSMRESULT CPropagationEngine::propagateNewModel(IN std::string newModelName,
-        IN IContextModel *pContextModel)
+SSMRESULT CPropagationEngine::propagateNewModel(std::string newModelName,
+        IContextModel *pContextModel)
 {
     SSMRESULT res = SSM_E_FAIL;
     VirtualModelMap::iterator   itorVModels;
@@ -162,7 +162,7 @@ CLEANUP:
 }
 
 //Install new resource and update Device table
-SSMRESULT CPropagationEngine::installContextModelFromISSMResource(IN ISSMResource *pSSMResource)
+SSMRESULT CPropagationEngine::installContextModelFromISSMResource(ISSMResource *pSSMResource)
 {
     SSMRESULT res = SSM_E_FAIL;
 
@@ -243,7 +243,7 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CPropagationEngine::updateDeviceInfo(IN ISSMResource *pSSMResource, OUT int *deviceId)
+SSMRESULT CPropagationEngine::updateDeviceInfo(ISSMResource *pSSMResource, int *deviceId)
 {
     SSMRESULT res = SSM_E_FAIL;
 
@@ -307,9 +307,9 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CPropagationEngine::installContextModel(IN IContextModel *pParentModel,
-        IN IContextModel::ConstructionType constructionType, IN const char *modelName,
-        IN ModelPropertyVec *pModelDescs, OUT IContextModel **ppContextModel)
+SSMRESULT CPropagationEngine::installContextModel(IContextModel *pParentModel,
+        IContextModel::ConstructionType constructionType, const char *modelName,
+        ModelPropertyVec *pModelDescs, IContextModel **ppContextModel)
 {
     SSMRESULT                   res = SSM_E_FAIL;
     CObject<CContextModel>      *pNewModel;
@@ -360,7 +360,7 @@ CLEANUP:
     return res;
 }
 
-void CPropagationEngine::onExecute(IN void *pArg)
+void CPropagationEngine::onExecute(void *pArg)
 {
     SSMRESULT res = SSM_E_FAIL;
 
@@ -393,15 +393,15 @@ CLEANUP:
     ;
 }
 
-void CPropagationEngine::onTerminate(IN void *pArg)
+void CPropagationEngine::onTerminate(void *pArg)
 {
     intptr_t         *pMessage = (intptr_t *)pArg;
 
     delete[] pMessage;
 }
 
-int CPropagationEngine::onResourceEvent(IN RESOURCE_EVENT_TYPE eventType,
-                                        IN ISSMResource *pSSMResource, IN std::string info)
+int CPropagationEngine::onResourceEvent(RESOURCE_EVENT_TYPE eventType,
+                                        ISSMResource *pSSMResource, std::string info)
 {
     intptr_t          *pMessage = new intptr_t [2];
 
@@ -466,8 +466,8 @@ CLEANUP:
     return;
 }
 
-SSMRESULT CPropagationEngine::getContextModel(IN std:: string modelName,
-        OUT IContextModel **ppContextModel)
+SSMRESULT CPropagationEngine::getContextModel(std:: string modelName,
+        IContextModel **ppContextModel)
 {
     SSMRESULT res = SSM_E_FAIL;
 
@@ -476,9 +476,9 @@ SSMRESULT CPropagationEngine::getContextModel(IN std:: string modelName,
     return res == SSM_S_OK ? SSM_S_OK : SSM_E_FAIL;
 }
 
-SSMRESULT CPropagationEngine::createConditionedQuery(IN IContextModel::ActivationType
-        activationType, IN QueryCondition *pQueryCondition, IN IConditionedQueryEvent *pEvent,
-        OUT IConditionedQuery **ppConditionedQuery)
+SSMRESULT CPropagationEngine::createConditionedQuery(IContextModel::ActivationType
+        activationType, QueryCondition *pQueryCondition, IConditionedQueryEvent *pEvent,
+        IConditionedQuery **ppConditionedQuery)
 {
     SSMRESULT res = SSM_E_FAIL;
     CObject<CConditionedQuery>  *pConditionedQuery;
@@ -518,8 +518,8 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CPropagationEngine::onModelStatusChange(IN IContextModel::Status newStatus,
-        IN ISSMResource *pSSMResource, IN IContextModel *pModel)
+SSMRESULT CPropagationEngine::onModelStatusChange(IContextModel::Status newStatus,
+        ISSMResource *pSSMResource, IContextModel *pModel)
 {
     switch (newStatus)
     {
@@ -551,8 +551,8 @@ SSMRESULT CPropagationEngine::onModelStatusChange(IN IContextModel::Status newSt
     return SSM_S_OK;
 }
 
-SSMRESULT CPropagationEngine::onQueryContextModel(IN std::string modelName,
-        OUT IContextModel **ppContextModel)
+SSMRESULT CPropagationEngine::onQueryContextModel(std::string modelName,
+        IContextModel **ppContextModel)
 {
     std::map<std::string, IContextModel *>::iterator     itorContextModel;
 
index 0b59a69..6bc2b87 100644 (file)
@@ -62,26 +62,26 @@ class CPropagationEngine :
 
         std::map<std::string, int>                  m_searchedSensorDataId;
 
-        SSMRESULT findContextModel(IN std::string modelName, OUT IContextModel  **ppContextModel);
+        SSMRESULT findContextModel(std::string modelName, IContextModel  **ppContextModel);
 
-        SSMRESULT registerCondition(IN IContextModel *pContextModel, IN ModelConditionVec *pConditions,
-                                    IN IConditionedQuery *pConditionedQuery);
+        SSMRESULT registerCondition(IContextModel *pContextModel, ModelConditionVec *pConditions,
+                                    IConditionedQuery *pConditionedQuery);
 
-        SSMRESULT registerVirtualCondition(IN std::string virtualContextModelName,
-                                           IN ModelConditionVec *pConditions, IN IConditionedQuery *pConditionedQuery);
+        SSMRESULT registerVirtualCondition(std::string virtualContextModelName,
+                                           ModelConditionVec *pConditions, IConditionedQuery *pConditionedQuery);
 
-        SSMRESULT propagateNewModel(IN std::string newModelName, IN IContextModel *pContextModel);
+        SSMRESULT propagateNewModel(std::string newModelName, IContextModel *pContextModel);
 
         SSMRESULT addResourceFromGetList();
 
         //TODO: Install Context model from SSMResource
         SSMRESULT installCurrentSensors();
 
-        SSMRESULT installContextModelFromISSMResource(IN ISSMResource *pSSMResource);
+        SSMRESULT installContextModelFromISSMResource(ISSMResource *pSSMResource);
 
-        SSMRESULT installContextModel(IN IContextModel *pParentModel,
-                                      IN IContextModel::ConstructionType constructionType,
-                                      IN const char *modelName, IN ModelPropertyVec *pModelDescs, OUT IContextModel **ppContextModel);
+        SSMRESULT installContextModel(IContextModel *pParentModel,
+                                      IContextModel::ConstructionType constructionType,
+                                      const char *modelName, ModelPropertyVec *pModelDescs, IContextModel **ppContextModel);
 
         SSMRESULT recoverEngineFromDatabase();
 
@@ -91,16 +91,16 @@ class CPropagationEngine :
 
         void terminateEngine();
 
-        SSMRESULT updateDeviceInfo(IN ISSMResource *pSSMResource, OUT int *deviceId);
+        SSMRESULT updateDeviceInfo(ISSMResource *pSSMResource, int *deviceId);
 
     public:
         SSMRESULT finalConstruct();
 
         void finalRelease();
 
-        void onExecute(IN void *pArg);
+        void onExecute(void *pArg);
 
-        void onTerminate(IN void *pArg);
+        void onTerminate(void *pArg);
 
         /**
         * @fn     onResourceEvent
@@ -115,8 +115,8 @@ class CPropagationEngine :
         * @exception
         * @see
         */
-        int onResourceEvent(IN RESOURCE_EVENT_TYPE eventType, IN ISSMResource *pSSMResource,
-                            IN std::string info);
+        int onResourceEvent(RESOURCE_EVENT_TYPE eventType, ISSMResource *pSSMResource,
+                            std::string info);
 
         SSMRESULT queryInterface(const OID &objectID, IBase **ppObject)
         {
@@ -146,7 +146,7 @@ class CPropagationEngine :
         * @exception
         * @see
         */
-        SSMRESULT getContextModel(IN std::string modelName, OUT IContextModel **ppContextModel);
+        SSMRESULT getContextModel(std::string modelName, IContextModel **ppContextModel);
 
         /**
         * @fn     createConditionedQuery
@@ -162,9 +162,9 @@ class CPropagationEngine :
         * @exception
         * @see
         */
-        SSMRESULT createConditionedQuery(IN IContextModel::ActivationType activationType,
-                                         IN QueryCondition *pQueryCondition,
-                                         IN IConditionedQueryEvent *pEvent, OUT IConditionedQuery **ppConditionedQuery);
+        SSMRESULT createConditionedQuery(IContextModel::ActivationType activationType,
+                                         QueryCondition *pQueryCondition,
+                                         IConditionedQueryEvent *pEvent, IConditionedQuery **ppConditionedQuery);
 
         /**
         * @fn     onModelStatusChange
@@ -179,8 +179,8 @@ class CPropagationEngine :
         * @exception
         * @see
         */
-        SSMRESULT onModelStatusChange(IN IContextModel::Status newStatus, IN ISSMResource *pSSMResource,
-                                      IN IContextModel *pModel);
+        SSMRESULT onModelStatusChange(IContextModel::Status newStatus, ISSMResource *pSSMResource,
+                                      IContextModel *pModel);
 
         /**
         * @fn     onQueryContextModel
@@ -194,6 +194,6 @@ class CPropagationEngine :
         * @exception
         * @see
         */
-        SSMRESULT onQueryContextModel(IN std::string modelName, OUT IContextModel **ppContextModel);
+        SSMRESULT onQueryContextModel(std::string modelName, IContextModel **ppContextModel);
 };
 #endif
index 3630e05..7399891 100644 (file)
@@ -60,8 +60,8 @@ void CQueryEngine::finalRelease()
     m_mtxQueries.unlock();
 }
 
-SSMRESULT CQueryEngine::processQueryResult(IN int userTriggerId,
-        IN std::vector<result_model> *result)
+SSMRESULT CQueryEngine::processQueryResult(int userTriggerId,
+        std::vector<result_model> *result)
 {
     SSMRESULT           res = SSM_E_FAIL;
     ModelPropertyVec    modelData;
@@ -174,8 +174,8 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CQueryEngine::validateQueryResult(IN IConditionedQueryResult *pConditionedQueryResult,
-        OUT std::vector<result_model> *resultData)
+SSMRESULT CQueryEngine::validateQueryResult(IConditionedQueryResult *pConditionedQueryResult,
+        std::vector<result_model> *resultData)
 {
     SSMRESULT               res = SSM_E_FAIL;
     IContextModel           *pContextModel = NULL;
@@ -217,8 +217,8 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CQueryEngine::onConditionedQueryEvent(IN int userTriggerId,
-        IN IConditionedQueryResult *pConditionedQueryResult)
+SSMRESULT CQueryEngine::onConditionedQueryEvent(int userTriggerId,
+        IConditionedQueryResult *pConditionedQueryResult)
 {
     SSMRESULT                   res = SSM_E_FAIL;
     std::vector<result_model>   result;
@@ -276,7 +276,7 @@ void CQueryEngine::onTerminate(void *pArg)
     SAFE_ARRAY_DELETE(pData);
 }
 
-SSMRESULT CQueryEngine::executeContextQuery(IN std::string contextQuery, OUT int *cqid)
+SSMRESULT CQueryEngine::executeContextQuery(std::string contextQuery, int *cqid)
 {
     SSMRESULT               res = SSM_E_FAIL;
     IConditionedQuery       *pConditionedQuery = NULL;
@@ -370,13 +370,13 @@ CLEANUP:
 }
 
 //TODO: Registration with multiple instance support
-SSMRESULT CQueryEngine::registerQueryEvent(IN IQueryEngineEvent *pQueryEngineEvent)
+SSMRESULT CQueryEngine::registerQueryEvent(IQueryEngineEvent *pQueryEngineEvent)
 {
     m_pQueryEngineEvent = pQueryEngineEvent;
     return SSM_S_OK;
 }
 
-SSMRESULT CQueryEngine::unregisterQueryEvent(IN IQueryEngineEvent *pQueryEngineEvent)
+SSMRESULT CQueryEngine::unregisterQueryEvent(IQueryEngineEvent *pQueryEngineEvent)
 {
     if (m_pQueryEngineEvent == pQueryEngineEvent)
     {
@@ -387,7 +387,7 @@ SSMRESULT CQueryEngine::unregisterQueryEvent(IN IQueryEngineEvent *pQueryEngineE
     return SSM_E_FAIL;
 }
 
-SSMRESULT CQueryEngine::killContextQuery(IN int cqid)
+SSMRESULT CQueryEngine::killContextQuery(int cqid)
 {
     SSMRESULT res = SSM_E_FAIL;
 
index a1d96c3..f9f533b 100644 (file)
@@ -52,9 +52,9 @@ class CQueryEngine :
         CObjectPtr<ITasker>                 m_pTasker;
 
     private:
-        SSMRESULT processQueryResult(IN int userTriggerId, IN std::vector<result_model> *result);
-        SSMRESULT validateQueryResult(IN IConditionedQueryResult *pConditionedQueryResult,
-                                      OUT std::vector<result_model> *resultData);
+        SSMRESULT processQueryResult(int userTriggerId, std::vector<result_model> *result);
+        SSMRESULT validateQueryResult(IConditionedQueryResult *pConditionedQueryResult,
+                                      std::vector<result_model> *resultData);
 
     public:
         enum EventType {EVENT_TYPE_INNER, EVENT_TYPE_OUTER};
@@ -74,8 +74,8 @@ class CQueryEngine :
         * @exception
         * @see
         */
-        SSMRESULT onConditionedQueryEvent(IN int userTriggerId,
-                                          IN IConditionedQueryResult *pConditionedQueryResult);
+        SSMRESULT onConditionedQueryEvent(int userTriggerId,
+                                          IConditionedQueryResult *pConditionedQueryResult);
 
         SSMRESULT queryInterface(const OID &objectID, IBase **ppObject)
         {
@@ -104,7 +104,7 @@ class CQueryEngine :
         * @exception
         * @see
         */
-        SSMRESULT executeContextQuery(IN std::string contextQuery, OUT int *cqid);
+        SSMRESULT executeContextQuery(std::string contextQuery, int *cqid);
 
         //TODO: Registration with multiple instance support
         /**
@@ -117,7 +117,7 @@ class CQueryEngine :
         * @exception
         * @see
         */
-        SSMRESULT registerQueryEvent(IN IQueryEngineEvent *pQueryEngineEvent);
+        SSMRESULT registerQueryEvent(IQueryEngineEvent *pQueryEngineEvent);
 
 
         /**
@@ -130,7 +130,7 @@ class CQueryEngine :
         * @exception
         * @see
         */
-        SSMRESULT unregisterQueryEvent(IN IQueryEngineEvent *pQueryEngineEvent);
+        SSMRESULT unregisterQueryEvent(IQueryEngineEvent *pQueryEngineEvent);
 
         /**
         * @fn killContextQuery
@@ -143,7 +143,7 @@ class CQueryEngine :
         * @exception
         * @see
         */
-        SSMRESULT killContextQuery(IN int cqid);
+        SSMRESULT killContextQuery(int cqid);
 };
 
 #endif /*_QueryEngine_H_*/
index 4008239..b088d7e 100644 (file)
@@ -23,7 +23,7 @@
 
 static ISoftSensorManager       *g_pSoftSensorManager = NULL;
 
-SSMRESULT CreateQueryEngine(OUT IQueryEngine **ppQueryEngine)
+SSMRESULT CreateQueryEngine(IQueryEngine **ppQueryEngine)
 {
     SSMRESULT res = SSM_E_FAIL;
 
@@ -34,7 +34,7 @@ CLEANUP:
     return res;
 }
 
-unsigned long ReleaseQueryEngine(IN IQueryEngine *pQueryEngine)
+unsigned long ReleaseQueryEngine(IQueryEngine *pQueryEngine)
 {
     if (pQueryEngine == NULL)
     {
@@ -49,7 +49,7 @@ unsigned long ReleaseQueryEngine(IN IQueryEngine *pQueryEngine)
     return g_pSoftSensorManager->releaseQueryEngine(pQueryEngine);
 }
 
-SSMRESULT InitializeSSMCore(IN std::string xmlDescription)
+SSMRESULT InitializeSSMCore(std::string xmlDescription)
 {
     SSMRESULT res = SSM_E_FAIL;
 
@@ -154,7 +154,7 @@ const char *GetSSMError(SSMRESULT res)
     return msg;
 }
 
-SSMRESULT GetInstalledModelList(OUT std::vector<ISSMResource *> *pList)
+SSMRESULT GetInstalledModelList(std::vector<ISSMResource *> *pList)
 {
     SSMRESULT res = SSM_E_FAIL;
 
index 91b229b..6ef73b9 100644 (file)
@@ -52,7 +52,7 @@ class IQueryEngine
         * @exception
         * @see
         */
-        virtual SSMRESULT executeContextQuery(IN std::string contextQuery, OUT int *cqid) = 0;
+        virtual SSMRESULT executeContextQuery(std::string contextQuery, int *cqid) = 0;
 
         /**
         * @fn     registerQueryEvent
@@ -65,7 +65,7 @@ class IQueryEngine
         * @exception
         * @see
         */
-        virtual SSMRESULT registerQueryEvent(IN IQueryEngineEvent *pQueryEngineEvent) = 0;
+        virtual SSMRESULT registerQueryEvent(IQueryEngineEvent *pQueryEngineEvent) = 0;
 
         /**
         * @fn     unregisterQueryEvent
@@ -78,7 +78,7 @@ class IQueryEngine
         * @exception
         * @see
         */
-        virtual SSMRESULT unregisterQueryEvent(IN IQueryEngineEvent *pQueryEngineEvent) = 0;
+        virtual SSMRESULT unregisterQueryEvent(IQueryEngineEvent *pQueryEngineEvent) = 0;
 
         /**
         * @fn    killContextQuery
@@ -91,7 +91,7 @@ class IQueryEngine
         * @exception
         * @see
         */
-        virtual SSMRESULT killContextQuery(IN int cqid) = 0;
+        virtual SSMRESULT killContextQuery(int cqid) = 0;
     protected:
         virtual ~IQueryEngine() {};
 };
@@ -112,7 +112,7 @@ extern "C"
 * @exception
 * @see
 */
-INTERFACE_DECLSPEC SSMRESULT CreateQueryEngine(OUT IQueryEngine **ppQueryEngine);
+INTERFACE_DECLSPEC SSMRESULT CreateQueryEngine(IQueryEngine **ppQueryEngine);
 
 /**
 * @fn    ReleaseQueryEngine
@@ -125,7 +125,7 @@ INTERFACE_DECLSPEC SSMRESULT CreateQueryEngine(OUT IQueryEngine **ppQueryEngine)
 * @exception
 * @see
 */
-INTERFACE_DECLSPEC unsigned long ReleaseQueryEngine(IN IQueryEngine *pQueryEngine);
+INTERFACE_DECLSPEC unsigned long ReleaseQueryEngine(IQueryEngine *pQueryEngine);
 
 
 /**
@@ -140,7 +140,7 @@ INTERFACE_DECLSPEC unsigned long ReleaseQueryEngine(IN IQueryEngine *pQueryEngin
 * @exception
 * @see
 */
-INTERFACE_DECLSPEC SSMRESULT InitializeSSMCore(IN std::string xmlDescription);
+INTERFACE_DECLSPEC SSMRESULT InitializeSSMCore(std::string xmlDescription);
 
 /**
 * @fn    StartSSMCore
@@ -179,7 +179,7 @@ INTERFACE_DECLSPEC SSMRESULT StopSSMCore();
 * @exception
 * @see
 */
-INTERFACE_DECLSPEC SSMRESULT TerminateSSMCore(IN bool factoryResetFlag = false);
+INTERFACE_DECLSPEC SSMRESULT TerminateSSMCore(bool factoryResetFlag = false);
 
 /**
 * @fn    GetErrorMessage
@@ -192,7 +192,7 @@ INTERFACE_DECLSPEC SSMRESULT TerminateSSMCore(IN bool factoryResetFlag = false);
 * @exception
 * @see
 */
-INTERFACE_DECLSPEC const char *GetSSMError(IN SSMRESULT res);
+INTERFACE_DECLSPEC const char *GetSSMError(SSMRESULT res);
 
 /**
 * @fn    GetInstalledModelList
@@ -205,7 +205,7 @@ INTERFACE_DECLSPEC const char *GetSSMError(IN SSMRESULT res);
 * @exception
 * @see
 */
-INTERFACE_DECLSPEC SSMRESULT GetInstalledModelList(OUT std::vector<ISSMResource *> *pList);
+INTERFACE_DECLSPEC SSMRESULT GetInstalledModelList(std::vector<ISSMResource *> *pList);
 
 #ifdef __cplusplus
 }
index 05e73b4..b5d33f4 100644 (file)
@@ -98,7 +98,7 @@ class QueryEngineEventReceiver
             m_objQueryEngineEvent = objQueryEngineEvent;
         }
 
-        SSMRESULT onQueryEngineEvent(IN int cqid, IN IDataReader *pResult)
+        SSMRESULT onQueryEngineEvent(int cqid, IDataReader *pResult)
         {
             JNIEnv *env;
             g_JVM->GetEnv((void **) &env, JNI_VERSION_1_6);
index c35da90..588e9dc 100644 (file)
@@ -39,7 +39,7 @@ class CQueryEngineEvent: public IQueryEngineEvent
             m_hSSMResource = resourceHandle;
         }
 
-        SSMRESULT onQueryEngineEvent(IN int cqid, IN IDataReader *pResult)
+        SSMRESULT onQueryEngineEvent(int cqid, IDataReader *pResult)
         {
             int dataCount = 0;
             IModelData *pModelData = NULL;
index c9a8ce7..8220059 100644 (file)
@@ -43,7 +43,7 @@ void CSoftSensorManager::finalRelease()
 {
 }
 
-SSMRESULT CSoftSensorManager::initializeCore(IN std::string xmlDescription)
+SSMRESULT CSoftSensorManager::initializeCore(std::string xmlDescription)
 {
     SSMRESULT                   res = SSM_E_FAIL;
     rapidxml::xml_document<>    xmlDoc;
@@ -175,7 +175,7 @@ SSMRESULT CSoftSensorManager::terminateCore(bool factoryResetFlag)
     return SSM_S_OK;
 }
 
-SSMRESULT CSoftSensorManager::createQueryEngine(OUT IQueryEngine **ppQueryEngine)
+SSMRESULT CSoftSensorManager::createQueryEngine(IQueryEngine **ppQueryEngine)
 {
     SSMRESULT res = SSM_E_FAIL;
     IQueryEngineInternal    *pQueryEngineInternal = NULL;
@@ -186,7 +186,7 @@ CLEANUP:
     return res;
 }
 
-unsigned long CSoftSensorManager::releaseQueryEngine(IN IQueryEngine *pQueryEngine)
+unsigned long CSoftSensorManager::releaseQueryEngine(IQueryEngine *pQueryEngine)
 {
     IQueryEngineInternal    *pQueryEngineInternal = NULL;
     pQueryEngineInternal = (IQueryEngineInternal *)(CQueryEngine *)pQueryEngine;
@@ -194,7 +194,7 @@ unsigned long CSoftSensorManager::releaseQueryEngine(IN IQueryEngine *pQueryEngi
     return pQueryEngineInternal->release();
 }
 
-SSMRESULT CSoftSensorManager::getInstalledModelList(OUT std::vector<ISSMResource *> *pList)
+SSMRESULT CSoftSensorManager::getInstalledModelList(std::vector<ISSMResource *> *pList)
 {
     m_pSensingEngine->getList(pList);
 
@@ -205,7 +205,7 @@ CSimpleMutex                *g_mtxGlobalInstance = NULL;
 std::map<OID, IBase *>       *g_globalInstance = NULL;
 IThreadPool                 *g_pThreadPool = NULL;
 
-SSMRESULT CreateGlobalInstance(IN const OID &objectID, OUT IBase **ppvObject)
+SSMRESULT CreateGlobalInstance(const OID &objectID, IBase **ppvObject)
 {
     SSMRESULT res = SSM_E_NOINTERFACE;
 
@@ -294,7 +294,7 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CreateInstance(IN const OID &objectID, OUT IBase **ppObject)
+SSMRESULT CreateInstance(const OID &objectID, IBase **ppObject)
 {
     SSMRESULT res = SSM_E_NOINTERFACE;
 
index 8baa123..67fd340 100644 (file)
@@ -85,7 +85,7 @@ class CSoftSensorManager :
         * @exception
         * @see
         */
-        SSMRESULT initializeCore(IN std::string xmlDescription);
+        SSMRESULT initializeCore(std::string xmlDescription);
 
         /**
         * @fn startCore
@@ -124,7 +124,7 @@ class CSoftSensorManager :
         * @exception
         * @see
         */
-        SSMRESULT terminateCore(IN bool factoryResetFlag);
+        SSMRESULT terminateCore(bool factoryResetFlag);
 
         /**
         * @fn createQueryEngine
@@ -138,7 +138,7 @@ class CSoftSensorManager :
         * @exception
         * @see
         */
-        SSMRESULT createQueryEngine(OUT IQueryEngine **ppQueryEngine);
+        SSMRESULT createQueryEngine(IQueryEngine **ppQueryEngine);
 
         /**
         * @fn releaseQueryEngine
@@ -150,7 +150,7 @@ class CSoftSensorManager :
         * @exception
         * @see
         */
-        unsigned long releaseQueryEngine(IN IQueryEngine *pQueryEngine);
+        unsigned long releaseQueryEngine(IQueryEngine *pQueryEngine);
 
         /**
         * @fn getInstalledModelList
@@ -163,7 +163,7 @@ class CSoftSensorManager :
         * @exception
         * @see
         */
-        SSMRESULT getInstalledModelList(OUT std::vector<ISSMResource *> *pList);
+        SSMRESULT getInstalledModelList(std::vector<ISSMResource *> *pList);
 };
 
 #endif
index d043a43..b579987 100644 (file)
@@ -30,7 +30,7 @@ void CContextDataReader::finalRelease()
     m_pContextModelAccessor = NULL;
 }
 
-SSMRESULT CContextDataReader::registerContextModelAccessor(IN IContextModelAccessor
+SSMRESULT CContextDataReader::registerContextModelAccessor(IContextModelAccessor
         *pContextModelAccessor)
 {
     m_pContextModelAccessor = pContextModelAccessor;
@@ -38,8 +38,8 @@ SSMRESULT CContextDataReader::registerContextModelAccessor(IN IContextModelAcces
     return SSM_S_OK;
 }
 
-SSMRESULT CContextDataReader::getContextData(IN std::string modelName, IN int startIndex,
-        IN int count, OUT std::vector<ContextData> *data, OUT int *pLastIndex)
+SSMRESULT CContextDataReader::getContextData(std::string modelName, int startIndex,
+        int count, std::vector<ContextData> *data, int *pLastIndex)
 {
     SSMRESULT res = SSM_E_FAIL;
     std::vector<ModelPropertyVec>   modelDataSet;
index 97026d8..6e9d88a 100644 (file)
@@ -70,7 +70,7 @@ class CContextDataReader :
         * @exception
         * @see
         */
-        SSMRESULT registerContextModelAccessor(IN IContextModelAccessor *pContextModelAccessor);
+        SSMRESULT registerContextModelAccessor(IContextModelAccessor *pContextModelAccessor);
 
         /**
         * @fn     getContextData
@@ -87,7 +87,7 @@ class CContextDataReader :
         * @exception
         * @see
         */
-        SSMRESULT getContextData(IN std::string modelName, IN int startIndex, IN int count,
-                                 OUT std::vector<ContextData> *data, OUT int *pLastIndex);
+        SSMRESULT getContextData(std::string modelName, int startIndex, int count,
+                                 std::vector<ContextData> *data, int *pLastIndex);
 };
 #endif
index 368ab84..e5f8078 100644 (file)
@@ -146,7 +146,7 @@ void CContextExecutor::registerContext(TypeofEvent callType, ISSMResource *pSSMR
     }
 }
 
-void CContextExecutor::onExecute(IN void *pArg)
+void CContextExecutor::onExecute(void *pArg)
 {
     intptr_t         *pMessage = (intptr_t *)pArg;
 
@@ -187,7 +187,7 @@ void CContextExecutor::onExecute(IN void *pArg)
     }
 }
 
-void CContextExecutor::onTerminate(IN void *pArg)
+void CContextExecutor::onTerminate(void *pArg)
 {
     intptr_t         *pMessage = (intptr_t *)pArg;
 
index 6b3a6c9..43ed198 100644 (file)
@@ -119,7 +119,7 @@ class CContextExecutor :
         * @exception
         * @see
         */
-        void registerCallback(IN ICtxEvent *pEvent);
+        void registerCallback(ICtxEvent *pEvent);
 
         /**
         * @fn           addOutput
@@ -133,7 +133,7 @@ class CContextExecutor :
         * @exception
         * @see
         */
-        void addOutput(IN std::vector<ContextData> contextData);
+        void addOutput(std::vector<ContextData> contextData);
 
         /**
         * @fn           getDataFromDatabase
@@ -151,8 +151,8 @@ class CContextExecutor :
         * @exception
         * @see
         */
-        void getDataFromDatabase(IN std::string modelName, IN int startIndex, IN int count,
-                                 OUT std::vector<ContextData> *data, OUT int *pLastIndex);
+        void getDataFromDatabase(std::string modelName, int startIndex, int count,
+                                 std::vector<ContextData> *data, int *pLastIndex);
 
         /**
         * @fn           onEvent
@@ -169,7 +169,7 @@ class CContextExecutor :
         * @exception
         * @see
         */
-        int onEvent(IN std::string deviceID, IN TypeofEvent callType, IN std::vector<ContextData> ctxData);
+        int onEvent(std::string deviceID, TypeofEvent callType, std::vector<ContextData> ctxData);
 
         /**
         * @fn           registerContext
@@ -185,7 +185,7 @@ class CContextExecutor :
         * @exception
         * @see
         */
-        void registerContext(IN TypeofEvent callType, IN ISSMResource *pSSMResouce, IN IEvent *pEvent);
+        void registerContext(TypeofEvent callType, ISSMResource *pSSMResouce, IEvent *pEvent);
 
         /**
         * @fn           unregisterContext
@@ -201,19 +201,19 @@ class CContextExecutor :
         * @exception
         * @see
         */
-        void  unregisterContext(IN TypeofEvent callType, IN ISSMResource *pSSMResource, IN IEvent *pEvent);
+        void  unregisterContext(TypeofEvent callType, ISSMResource *pSSMResource, IEvent *pEvent);
 
         void onExecute(void *pArg);
         void onTerminate(void *pArg);
-        int onResourceEvent(IN RESOURCE_EVENT_TYPE eventType, IN ISSMResource *pSSMResource,
-                            IN std::string info);
+        int onResourceEvent(RESOURCE_EVENT_TYPE eventType, ISSMResource *pSSMResource,
+                            std::string info);
 
     private:
-        SSMRESULT findString(IN std::vector<ISSMResource *> *sList, IN const std::string str,
-                             OUT ISSMResource **ppResource);
+        SSMRESULT findString(std::vector<ISSMResource *> *sList, const std::string str,
+                             ISSMResource **ppResource);
         std::map<std::string, std::vector<ContextData> >  getPreparedContextList(
-            IN std::string primitiveSensor);
-        void runLogic(IN std::vector<ContextData> inputData, IN std::string softSensor);
+            std::string primitiveSensor);
+        void runLogic(std::vector<ContextData> inputData, std::string softSensor);
 };
 
 #endif
index 06bd3f7..6f76583 100644 (file)
@@ -65,7 +65,7 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CContextRepository::registerResourceFinderEvent(IN IResourceEvent *pResourceEvent)
+SSMRESULT CContextRepository::registerResourceFinderEvent(IResourceEvent *pResourceEvent)
 {
     m_resourceEvents.push_back(pResourceEvent);
     return SSM_S_OK;
@@ -75,8 +75,8 @@ void CContextRepository::finalRelease()
 {
 }
 
-SSMRESULT CContextRepository::initRepository(IN std::string name, IN std::string type,
-        IN std::string pathSoftSensors, IN std::string pathDescription)
+SSMRESULT CContextRepository::initRepository(std::string name, std::string type,
+        std::string pathSoftSensors, std::string pathDescription)
 {
     SSMRESULT res = SSM_E_FAIL;
 
@@ -243,7 +243,7 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CContextRepository::getSoftSensorList(OUT std::vector<ISSMResource *> *pSoftSensorList)
+SSMRESULT CContextRepository::getSoftSensorList(std::vector<ISSMResource *> *pSoftSensorList)
 {
     for (size_t i = 0; i < m_lstSoftSensor.size(); i++)
     {
@@ -253,7 +253,7 @@ SSMRESULT CContextRepository::getSoftSensorList(OUT std::vector<ISSMResource *>
     return SSM_S_OK;
 }
 
-SSMRESULT CContextRepository::getPrimitiveSensorList(OUT std::vector<ISSMResource *>
+SSMRESULT CContextRepository::getPrimitiveSensorList(std::vector<ISSMResource *>
         *pPrimitiveSensorList)
 {
     for (size_t i = 0; i < m_lstPrimitiveSensor.size(); i++)
@@ -264,7 +264,7 @@ SSMRESULT CContextRepository::getPrimitiveSensorList(OUT std::vector<ISSMResourc
     return SSM_S_OK;
 }
 
-SSMRESULT CContextRepository::onResourceFound(IN ISSMResource *pSensor)
+SSMRESULT CContextRepository::onResourceFound(ISSMResource *pSensor)
 {
     m_lstPrimitiveSensor.push_back(pSensor);
 
@@ -276,7 +276,7 @@ SSMRESULT CContextRepository::onResourceFound(IN ISSMResource *pSensor)
     return SSM_S_OK;
 }
 
-SSMRESULT CContextRepository::onResourceLost(IN ISSMResource *pSensor)
+SSMRESULT CContextRepository::onResourceLost(ISSMResource *pSensor)
 {
     std::vector<ISSMResource *>::iterator    itor;
     itor = std::find(m_lstPrimitiveSensor.begin(), m_lstPrimitiveSensor.end(), pSensor);
@@ -290,12 +290,12 @@ SSMRESULT CContextRepository::onResourceLost(IN ISSMResource *pSensor)
     return SSM_E_FAIL;
 }
 
-SSMRESULT CContextRepository::startObserveResource(IN ISSMResource *pSensor, IN IEvent *pEvent)
+SSMRESULT CContextRepository::startObserveResource(ISSMResource *pSensor, IEvent *pEvent)
 {
     return m_resourceFinder->startObserveResource(pSensor, pEvent);
 }
 
-SSMRESULT CContextRepository::stopObserveResource(IN ISSMResource *pSensor)
+SSMRESULT CContextRepository::stopObserveResource(ISSMResource *pSensor)
 {
     return m_resourceFinder->stopObserveResource(pSensor);
 }
@@ -338,7 +338,7 @@ SSMRESULT CContextRepository::loadSoftSensor(std::string softSensorName, ICtxDel
     std::stringstream   sstream;
     SSMRESULT           res = SSM_E_FAIL;
 
-    typedef void(*InitContext)(IN ICtxDelegate *);
+    typedef void(*InitContext)(ICtxDelegate *);
     InitContext InitializeContextFunction = NULL;
 
     // load dll(so)
index 1008701..a94a3e0 100644 (file)
@@ -86,8 +86,8 @@ class CContextRepository :
         * @exception
         * @see
         */
-        SSMRESULT initRepository(IN std::string name, IN std::string type, IN std::string pathSoftSensors,
-                                 IN std::string pathDescription);
+        SSMRESULT initRepository(std::string name, std::string type, std::string pathSoftSensors,
+                                 std::string pathDescription);
 
         /**
         * @fn           getSoftSensorList
@@ -107,7 +107,7 @@ class CContextRepository :
         * @exception
         * @see
         */
-        SSMRESULT getSoftSensorList(OUT std::vector<ISSMResource *> *pSoftSensorList);
+        SSMRESULT getSoftSensorList(std::vector<ISSMResource *> *pSoftSensorList);
 
         /**
         * @fn           getPrimitiveSensorList
@@ -127,27 +127,27 @@ class CContextRepository :
         * @exception
         * @see
         */
-        SSMRESULT getPrimitiveSensorList(OUT std::vector<ISSMResource *> *pPrimitiveSensorList);
+        SSMRESULT getPrimitiveSensorList(std::vector<ISSMResource *> *pPrimitiveSensorList);
 
-        SSMRESULT registerResourceFinderEvent(IN IResourceEvent *pResourceEvent);
+        SSMRESULT registerResourceFinderEvent(IResourceEvent *pResourceEvent);
         SSMRESULT startResourceFinder();
         SSMRESULT stopResourceFinder();
-        SSMRESULT onResourceFound(IN ISSMResource *pSensor);
-        SSMRESULT onResourceLost(IN ISSMResource *pSensor);
+        SSMRESULT onResourceFound(ISSMResource *pSensor);
+        SSMRESULT onResourceLost(ISSMResource *pSensor);
 
-        SSMRESULT startObserveResource(IN ISSMResource *pSensor, IN IEvent *pEvent);
-        SSMRESULT stopObserveResource(IN ISSMResource *pSensor);
+        SSMRESULT startObserveResource(ISSMResource *pSensor, IEvent *pEvent);
+        SSMRESULT stopObserveResource(ISSMResource *pSensor);
 
-        SSMRESULT loadSoftSensor(IN std::string softSensorName, IN ICtxDelegate *pDelegate,
-                                 OUT void **hSoftSensor);
-        SSMRESULT unloadSoftSensor(IN void *hSoftSensor);
+        SSMRESULT loadSoftSensor(std::string softSensorName, ICtxDelegate *pDelegate,
+                                 void **hSoftSensor);
+        SSMRESULT unloadSoftSensor(void *hSoftSensor);
 
     private:
-        SSMRESULT makeSSMResourceListForDictionaryData(IN std::vector<DictionaryData> dataList,
-                OUT std::vector<ISSMResource *> *pList) ;
-        SSMRESULT loadXMLFromFile(IN std::string descriptionFilePath,
-                                  IN std::vector<DictionaryData> *dataList);
-        SSMRESULT loadXMLFromString(IN char *xmlData, IN std::vector<DictionaryData> *dataList);
-        SSMRESULT getCurrentPath(OUT std::string *path);
+        SSMRESULT makeSSMResourceListForDictionaryData(std::vector<DictionaryData> dataList,
+                std::vector<ISSMResource *> *pList) ;
+        SSMRESULT loadXMLFromFile(std::string descriptionFilePath,
+                                  std::vector<DictionaryData> *dataList);
+        SSMRESULT loadXMLFromString(char *xmlData, std::vector<DictionaryData> *dataList);
+        SSMRESULT getCurrentPath(std::string *path);
 };
 #endif
index 1cb81f4..fc1fbff 100644 (file)
@@ -42,7 +42,7 @@ void CResourceFinder::finalRelease()
 {
 }
 
-SSMRESULT CResourceFinder::registerResourceFinderEvent(IN IResourceFinderEvent *pEvent)
+SSMRESULT CResourceFinder::registerResourceFinderEvent(IResourceFinderEvent *pEvent)
 {
     m_pResourceFinderEvent = pEvent;
     return SSM_S_OK;
@@ -179,17 +179,17 @@ CLEANUP:
     return res;
 }
 
-SSMRESULT CResourceFinder::startObserveResource(IN ISSMResource *pSensor, IN IEvent *pEvent)
+SSMRESULT CResourceFinder::startObserveResource(ISSMResource *pSensor, IEvent *pEvent)
 {
     return m_mapResourceHandler[pSensor->name]->startObserve(pEvent);
 }
 
-SSMRESULT CResourceFinder::stopObserveResource(IN ISSMResource *pSensor)
+SSMRESULT CResourceFinder::stopObserveResource(ISSMResource *pSensor)
 {
     return m_mapResourceHandler[pSensor->name]->stopObserve();
 }
 
-void CResourceFinder::onExecute(IN void *pArg)
+void CResourceFinder::onExecute(void *pArg)
 {
     SSMRESULT res = SSM_E_FAIL;
     OCStackResult ret = OC_STACK_ERROR;
@@ -278,7 +278,7 @@ CLEANUP:
     ;
 }
 
-void CResourceFinder::onTerminate(IN void *pArg)
+void CResourceFinder::onTerminate(void *pArg)
 {
     std::shared_ptr< OC::OCResource > *pResource = NULL;
     intptr_t *pMessage = (intptr_t *)pArg;
index 9564e38..d9ea15f 100644 (file)
@@ -50,18 +50,18 @@ class CResourceFinder: public CObjectRoot< CObjectMultiThreadModel >,
         SSMRESULT finalConstruct();
         void finalRelease();
 
-        SSMRESULT registerResourceFinderEvent(IN IResourceFinderEvent *pEvent);
+        SSMRESULT registerResourceFinderEvent(IResourceFinderEvent *pEvent);
         void onResourceFound(std::shared_ptr< OC::OCResource > resource);
         void presenceHandler(OCStackResult result, const unsigned int nonce,
                              const std::string &hostAddress);
         SSMRESULT startResourceFinder();
         SSMRESULT stopResourceFinder();
 
-        SSMRESULT startObserveResource(IN ISSMResource *pSensor, IN IEvent *pEvent);
-        SSMRESULT stopObserveResource(IN ISSMResource *pSensor);
+        SSMRESULT startObserveResource(ISSMResource *pSensor, IEvent *pEvent);
+        SSMRESULT stopObserveResource(ISSMResource *pSensor);
 
-        void onExecute(IN void *pArg);
-        void onTerminate(IN void *pArg);
+        void onExecute(void *pArg);
+        void onTerminate(void *pArg);
 
     private:
         class OICResourceHandler
@@ -76,7 +76,7 @@ class CResourceFinder: public CObjectRoot< CObjectMultiThreadModel >,
                 }
 
                 SSMRESULT initHandler(std::shared_ptr< OC::OCResource > resource,
-                                      IN IThreadClient *pThreadClient)
+                                      IThreadClient *pThreadClient)
                 {
                     SSMRESULT res = SSM_E_FAIL;
 
index f2c42a7..bfd6f3c 100644 (file)
@@ -93,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
@@ -110,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
@@ -125,7 +125,7 @@ class CSensingEngine :
         * @exception
         * @see
         */
-        SSMRESULT getList(OUT std::vector<ISSMResource *> *pList);
+        SSMRESULT getList(std::vector<ISSMResource *> *pList);
 
         /**
         * @fn           onEvent
@@ -142,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