• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 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 TEST_WUKONG_TABLE_H
16 #define TEST_WUKONG_TABLE_H
17 
18 #include <string>
19 #include <vector>
20 
21 namespace OHOS {
22 namespace WuKong {
23 class Table {
24 public:
25     Table() = default;
26     ~Table() = default;
27     void SetName(std::string name);
28     std::string GetName();
29     void SetDetail(std::string detail);
30     std::string GetDetail();
31     Table(std::vector<std::string> cc, std::vector<std::vector<std::string>> rc);
32     std::vector<std::string> GetHeader();
33     std::vector<std::vector<std::string>> GetRecord();
34     std::vector<int> GetColumnSize();
35 
36 private:
37     std::string name_;
38     std::string detail_;
39     std::vector<std::string> column_header_;
40     std::vector<int> column_size_;
41     std::vector<std::vector<std::string>> record_;
42 };
43 }  // namespace WuKong
44 }  // namespace OHOS
45 #endif
46