• 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 
16 #ifndef OHOS_OBJECT_ASSET_VALUE_H
17 #define OHOS_OBJECT_ASSET_VALUE_H
18 
19 #include "common_types.h"
20 
21 namespace OHOS {
22 namespace ObjectStore {
23 struct AssetBindInfo {
24     std::string storeName;
25     std::string tableName;
26     CommonType::ValuesBucket primaryKey;
27     std::string field;
28     std::string assetName;
29 };
30 
31 using Asset = CommonType::AssetValue;
32 using ValuesBucket = CommonType::ValuesBucket;
33 using ValueObject = CommonType::Value;
34 using Assets = std::vector<Asset>;
35 
36 static constexpr const char* STATUS_SUFFIX = ".status";
37 static constexpr const char* NAME_SUFFIX = ".name";
38 static constexpr const char* URI_SUFFIX = ".uri";
39 static constexpr const char* PATH_SUFFIX = ".path";
40 static constexpr const char* CREATE_TIME_SUFFIX = ".createTime";
41 static constexpr const char* MODIFY_TIME_SUFFIX = ".modifyTime";
42 static constexpr const char* SIZE_SUFFIX = ".size";
43 static constexpr const char* ASSET_DOT = ".";
44 static const std::string DEVICEID_KEY = "__deviceId";
45 } // namespace ObjectStore
46 } // namespace OHOS
47 #endif // OHOS_OBJECT_ASSET_VALUE_H