1 /******************************************************************
3 * Copyright 2014 Samsung Electronics All Rights Reserved.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
19 ******************************************************************/
20 #ifndef _ConditionedQueryResult_H_
21 #define _ConditionedQueryResult_H_
23 #include "SSMInterface/SSMCore.h"
24 #include "Common/PlatformLayer.h"
25 #include "Common/InternalInterface.h"
28 * @class CConditionedQueryResult
29 * @brief CConditionedQueryResult Interface
30 * This class represents executed CQL's result data
34 class CConditionedQueryResult :
35 public CObjectRoot<CObjectMultiThreadModel>
36 , public IConditionedQueryResult
39 std::vector<IConditionedModel *> m_conditionedModels;
42 SSMRESULT finalConstruct();
47 * @fn addConditionedModel
48 * @brief Add conditioned model interface for tracking trigger
50 * @param [in] IConditionedModel *pConditionedModel - Conditioned Model interface that contains results
57 SSMRESULT addConditionedModel(IConditionedModel *pConditionedModel);
59 SSMRESULT queryInterface(const OID &objectID, IBase **ppObject)
64 if (IsEqualOID(objectID, OID_IConditionedQueryResult))
72 return SSM_E_NOINTERFACE;
76 * @fn getConditionedModelCount
77 * @brief Get conditioned model count
81 * @return unsigned int
86 unsigned int getConditionedModelCount();
89 * @fn getConditionedContextModel
90 * @brief Get conditioned model by index
92 * @param [in] unsigned int conditionedModelIndex - Index of Conditioned Model interface for retrieving
93 * @param [out] IConditionedModel *pConditionedModel - Conditioned Model interface that contains results
100 SSMRESULT getConditionedContextModel(unsigned int conditionedModelIndex,
101 IConditionedModel **ppConditionedModel);