Imported Upstream version 0.9.1
[platform/upstream/iotivity.git] / service / soft-sensor-manager / SampleApp / linux / SSMTesterApp / include / SSMTestApp.h
1 /******************************************************************
2  *
3  * Copyright 2014 Samsung Electronics All Rights Reserved.
4  *
5  *
6  *
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  ******************************************************************/
20
21 /*
22  * SSMTestApp.h
23  */
24
25 #ifndef SSMTESTAPP_H_
26 #define SSMTESTAPP_H_
27
28 #include <string>
29
30 #include "SSMInterface.h"
31
32 using namespace OIC;
33
34 namespace APPMenu
35 {
36     typedef enum
37     {
38         NONE = 0, REGISTER, UNREGISTER, DISCOMFORT_SAMPLE, ITS_SAMPLE, BMI_SAMPLE, EXIT = 9
39     } APPMenu;
40 }
41 ;
42
43 typedef enum
44 {
45     UNKOWNBMI = 0, UNDERWEIGHT, NORMALRANGE, OVERWEIGHT, OBESE
46 } BMIResult;
47
48
49 typedef enum
50 {
51     ALL_DISCOMPORT = 2, HALF_DISCOMPORT, LITTLE_DISCOMPORT, ALL_COMPORT
52 } DIResult;
53
54 class SSMTestApp: public IQueryEngineEvent
55 {
56     public:
57
58         SSMTestApp();
59
60         void displayMenu();
61         void registerQuery(std::string queryString);
62         void unregisterQuery();
63
64         void TrajectoryDataOutput(IModelData *pModelData);
65
66         /* operations from listener interface */
67         SSMRESULT onQueryEngineEvent(int cqid, IDataReader *pResult);
68 };
69
70 #endif /* SSMTESTAPP_H_ */