1 /*
2  * Copyright (C) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef CONTROL_CALL_CMD_H
16 #define CONTROL_CALL_CMD_H
17 #include <iostream>
18 #include <fstream>
19 #include <string>
20 #include <vector>
21 namespace OHOS {
22 namespace SmartPerf {
23 class ControlCallCmd {
24 public:
25     double CompleteTime();
26     double ResponseTime();
27     std::string GetResult(std::vector<std::string> v);
28     std::string GetFrame();
29     std::string GetAppStartTime() const;
30     std::string SlideList();
31     std::string TimeDelay();
32     void IsohTest(std::vector<std::string> v);
33 
34 private:
35     bool isOhTest = false;
36     std::string result = "";
37     int ohType = 4;
38     int typeName = 2;
39     double time = 0.0;
40     double noNameType = -1.0;
41     std::ostringstream stream;
42     int two = 2;
43 };
44 }
45 }
46 #endif // SMARTPERF_COMMAND_H