Home
last modified time | relevance | path

Searched refs:Serializable (Results 1 - 25 of 99) sorted by relevance

1234

/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/serializable/
H A Dserializable.cpp19 Serializable::json Serializable::Marshall() const in Marshall()
26 bool Serializable::Unmarshall(const std::string &jsonStr) in Unmarshall()
42 Serializable::json Serializable::ToJson(const std::string &jsonStr) in ToJson()
58 bool Serializable::IsJson(const std::string &jsonStr) in IsJson()
66 bool Serializable::GetValue(const json &node, const std::string &name, std::string &value) in GetValue()
76 bool Serializable::GetValue(const json &node, const std::string &name, uint32_t &value) in GetValue()
86 bool Serializable::GetValue(const json &node, const std::string &name, int32_t &value) in GetValue()
96 bool Serializable
[all...]
/foundation/distributeddatamgr/pasteboard/framework/framework/serializable/
H A Dserializable.cpp19 bool Serializable::Unmarshall(const std::string &jsonStr) in Unmarshall()
30 std::string Serializable::Marshall() const in Marshall()
43 bool Serializable::GetValue(const json node, const std::string &name, std::string &value) in GetValue()
53 bool Serializable::GetValue(const json node, const std::string &name, uint8_t &value) in GetValue()
58 bool Serializable::GetValue(const json node, const std::string &name, uint16_t &value) in GetValue()
63 bool Serializable::GetValue(const json node, const std::string &name, uint32_t &value) in GetValue()
68 bool Serializable::GetValue(const json node, const std::string &name, uint64_t &value) in GetValue()
73 bool Serializable::GetValue(const json node, const std::string &name, int32_t &value) in GetValue()
78 bool Serializable::GetValue(const json node, const std::string &name, int64_t &value) in GetValue()
83 bool Serializable
[all...]
/foundation/distributeddatamgr/relational_store/frameworks/native/appdatafwk/src/
H A Dserializable.cpp18 Serializable::json Serializable::Marshall() const in Marshall()
25 bool Serializable::Unmarshall(const std::string &jsonStr) in Unmarshall()
41 Serializable::json Serializable::ToJson(const std::string &jsonStr) in ToJson()
57 bool Serializable::IsJson(const std::string &jsonStr) in IsJson()
65 bool Serializable::GetValue(const json &node, const std::string &name, std::string &value) in GetValue()
75 bool Serializable::GetValue(const json &node, const std::string &name, uint32_t &value) in GetValue()
85 bool Serializable::GetValue(const json &node, const std::string &name, int32_t &value) in GetValue()
95 bool Serializable
[all...]
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/data/
H A Dinterface_info.cpp28 { InterfaceInfoKey::DYNAMIC_MAC, Serializable::ValueType::STRING },
29 { InterfaceInfoKey::INTERFACE_NAME, Serializable::ValueType::STRING },
30 { InterfaceInfoKey::CAPABILITY, Serializable::ValueType::INT },
31 { InterfaceInfoKey::WIFI_DIRECT_ROLE, Serializable::ValueType::INT },
32 { InterfaceInfoKey::BASE_MAC, Serializable::ValueType::STRING },
33 { InterfaceInfoKey::PHYSICAL_RATE, Serializable::ValueType::INT },
34 { InterfaceInfoKey::SUPPORT_BAND, Serializable::ValueType::BYTE },
35 { InterfaceInfoKey::CHANNEL_AND_BANDWIDTH, Serializable::ValueType::BYTE_ARRAY},
36 { InterfaceInfoKey::COEXIST_CHANNEL_LIST, Serializable::ValueType::INT_ARRAY },
37 { InterfaceInfoKey::HML_LINK_COUNT, Serializable
[all...]
H A Dnegotiate_message.cpp55 { NegotiateMessageKey::MSG_TYPE, Serializable::ValueType::INT },
56 { NegotiateMessageKey::SESSION_ID, Serializable::ValueType::UINT },
57 { NegotiateMessageKey::WIFI_CFG_TYPE, Serializable::ValueType::INT },
58 { NegotiateMessageKey::WIFI_CFG_INFO, Serializable::ValueType::BYTE_ARRAY },
59 { NegotiateMessageKey::IPV4_INFO_ARRAY, Serializable::ValueType::IPV4_INFO_ARRAY },
60 { NegotiateMessageKey::PREFER_LINK_MODE, Serializable::ValueType::INT },
61 { NegotiateMessageKey::IS_MODE_STRICT, Serializable::ValueType::BOOL },
62 { NegotiateMessageKey::PREFER_LINK_BANDWIDTH, Serializable::ValueType::INT },
63 { NegotiateMessageKey::IS_BRIDGE_SUPPORTED, Serializable::ValueType::BOOL },
64 { NegotiateMessageKey::LINK_INFO, Serializable
[all...]
H A Dlink_info.cpp24 { LinkInfoKey::LOCAL_INTERFACE, Serializable::ValueType::STRING },
25 { LinkInfoKey::REMOTE_INTERFACE, Serializable::ValueType::STRING },
26 { LinkInfoKey::LOCAL_LINK_MODE, Serializable::ValueType::INT },
27 { LinkInfoKey::REMOTE_LINK_MODE, Serializable::ValueType::INT },
28 { LinkInfoKey::CENTER_20M, Serializable::ValueType::INT },
29 { LinkInfoKey::CENTER_FREQUENCY1, Serializable::ValueType::INT },
30 { LinkInfoKey::CENTER_FREQUENCY2, Serializable::ValueType::INT },
31 { LinkInfoKey::BANDWIDTH, Serializable::ValueType::INT },
32 { LinkInfoKey::SSID, Serializable::ValueType::STRING },
33 { LinkInfoKey::BSSID, Serializable
[all...]
H A Dwifi_config_info.cpp23 {WifiConfigInfoKey::INTERFACE_INFO_ARRAY, Serializable::ValueType::INTERFACE_INFO_ARRAY},
24 { WifiConfigInfoKey::DEVICE_ID, Serializable::ValueType::STRING },
47 switch (Serializable::ValueType(type)) { in Unmarshalling()
48 case Serializable::ValueType::INTERFACE_INFO_ARRAY: in Unmarshalling()
68 Serializable::ValueType::INTERFACE_INFO_ARRAY, output.data(), output.size()); in MarshallingInterfaceArray()
78 case Serializable::ValueType::INTERFACE_INFO_ARRAY: in Marshalling()
/foundation/distributeddatamgr/pasteboard/framework/test/src/
H A Dserializable_test.cpp33 Serializable::json ToJson(const std::string &str);
61 Serializable::json SerializableTest::ToJson(const std::string &str) in ToJson()
162 auto ret = Serializable::GetValue(node, GET_NAME(param1), res1); in HWTEST_F()
165 ret = Serializable::GetValue(node, GET_NAME(param2), res2); in HWTEST_F()
168 ret = Serializable::GetValue(node, GET_NAME(param3), res3); in HWTEST_F()
171 ret = Serializable::GetValue(node, GET_NAME(param4), res4); in HWTEST_F()
174 ret = Serializable::GetValue(node, GET_NAME(param5), res5); in HWTEST_F()
198 auto ret = Serializable::GetValue(json, "key", value); in HWTEST_F()
204 ret = Serializable::GetValue(json, "key", value); in HWTEST_F()
223 auto ret = Serializable in HWTEST_F()
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/metadata/
H A Dstore_debug_info.h21 struct API_EXPORT StoreDebugInfo final : public Serializable {
22 struct FileInfo final : public Serializable {
29 bool Marshal(Serializable::json &node) const override;
30 bool Unmarshal(const Serializable::json &node) override;
35 bool Marshal(Serializable::json &node) const override;
36 bool Unmarshal(const Serializable::json &node) override;
/foundation/distributeddatamgr/relational_store/test/native/appdatafwk/unittest/
H A Dserializable_test.cpp27 struct Normal final : public Serializable {
66 struct NormalEx final : public Serializable {
137 * @tc.name: Delete Serializable
144 ASSERT_FALSE(std::is_destructible<Serializable>::value); in HWTEST_F()
174 ASSERT_FALSE(Serializable::IsJson(str)); in HWTEST_F()
175 ASSERT_TRUE(Serializable::IsJson(jsonStr)); in HWTEST_F()
186 Serializable::json result = Serializable::ToJson(jsonStr); in HWTEST_F()
198 Serializable::json result = Serializable in HWTEST_F()
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Dwater_version_manager_test.cpp160 ASSERT_EQ(waterVersion, Serializable::Marshall(staticMeta_)) << "meta: " << waterVersion; in HWTEST_F()
162 ASSERT_TRUE(Serializable::Unmarshall(waterVersion, meta)); in HWTEST_F()
167 Serializable::Marshall(meta))) in HWTEST_F()
168 << Serializable::Marshall(meta); in HWTEST_F()
171 ASSERT_EQ(Serializable::Marshall(meta), waterVersion); in HWTEST_F()
193 ASSERT_EQ(waterVersion, Serializable::Marshall(staticMeta_)) << "meta: " << waterVersion; in HWTEST_F()
195 ASSERT_TRUE(Serializable::Unmarshall(waterVersion, meta)); in HWTEST_F()
200 Serializable::Marshall(meta))); in HWTEST_F()
208 Serializable::Marshall(meta))); in HWTEST_F()
229 ASSERT_EQ(waterVersion, Serializable in HWTEST_F()
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/cloud/
H A Dschema_meta.cpp18 bool SchemaMeta::Marshal(Serializable::json &node) const in Marshal()
27 bool SchemaMeta::Unmarshal(const Serializable::json &node) in Unmarshal()
51 bool Database::Marshal(Serializable::json &node) const in Marshal()
59 bool Database::Unmarshal(const Serializable::json &node) in Unmarshal()
67 bool Table::Marshal(Serializable::json &node) const in Marshal()
76 bool Table::Unmarshal(const Serializable::json &node) in Unmarshal()
85 bool Field::Marshal(Serializable::json &node) const in Marshal()
95 bool Field::Unmarshal(const Serializable::json &node) in Unmarshal()
H A Dcloud_extra_data.cpp20 bool Context::Marshal(Serializable::json &node) const in Marshal()
27 bool Context::Unmarshal(const Serializable::json &node) in Unmarshal()
34 bool ExtensionInfo::Marshal(Serializable::json &node) const in Marshal()
44 bool ExtensionInfo::Unmarshal(const Serializable::json &node) in Unmarshal()
66 bool ExtraData::Marshal(Serializable::json &node) const in Marshal()
73 bool ExtraData::Unmarshal(const Serializable::json &node) in Unmarshal()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/serializable/
H A Dserializable.h31 struct Serializable { struct
64 API_EXPORT static bool GetValue(const json &node, const std::string &name, Serializable &value);
81 API_EXPORT static bool SetValue(json &node, const Serializable &value);
89 API_EXPORT ~Serializable() = default;
124 bool Serializable::GetValue(const json &node, const std::string &name, std::vector<T> &values) in GetValue()
139 bool Serializable::SetValue(json &node, const std::vector<T> &values) in SetValue()
152 bool Serializable::GetValue(const json &node, const std::string &name, std::map<std::string, T> &values) in GetValue()
166 bool Serializable::SetValue(json &node, const std::map<std::string, T> &values) in SetValue()
177 bool Serializable::GetValue(const json &node, const std::string &name, T *&value) in GetValue()
196 bool Serializable
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/metadata/
H A Dstore_debug_info.cpp18 bool StoreDebugInfo::FileInfo::Marshal(Serializable::json &node) const in Marshal()
29 bool StoreDebugInfo::FileInfo::Unmarshal(const Serializable::json &node) in Unmarshal()
40 bool StoreDebugInfo::Marshal(Serializable::json &node) const in Marshal()
46 bool StoreDebugInfo::Unmarshal(const Serializable::json &node) in Unmarshal()
/foundation/distributeddatamgr/pasteboard/services/load/src/
H A Dconfig.cpp18 bool Config::Component::Marshal(Serializable::json &node) const in Marshal()
28 bool Config::Component::Unmarshal(const Serializable::json &node) in Unmarshal()
38 bool Config::Marshal(Serializable::json &node) const in Marshal()
50 bool Config::Unmarshal(const Serializable::json &node) in Unmarshal()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/
H A Dcloud_test.cpp141 Serializable::json node1; in HWTEST_F()
174 Serializable::json node1; in HWTEST_F()
207 Serializable::json node1; in HWTEST_F()
245 Serializable::json node1; in HWTEST_F()
247 EXPECT_EQ(Serializable::Marshall(cloudInfo1), to_string(node1)); in HWTEST_F()
251 EXPECT_EQ(Serializable::Marshall(cloudInfo1), Serializable::Marshall(cloudInfo2)); in HWTEST_F()
270 Serializable::json node1; in HWTEST_F()
272 EXPECT_EQ(Serializable::Marshall(cloudInfoAppInfo1), to_string(node1)); in HWTEST_F()
276 EXPECT_EQ(Serializable in HWTEST_F()
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/config/include/model/
H A Dchecker_config.h22 class CheckerConfig final : public Serializable {
24 struct Trust final : public Serializable, public CheckerManager::Trust {
28 struct StaticStore final : public Serializable, public CheckerManager::StoreInfo {
H A Ddirectory_config.h22 class DirectoryConfig final : public Serializable {
24 struct DirectoryStrategy final : public Serializable, public DirectoryManager::Strategy {
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/rdb/
H A Drdb_cloud_data_translate.h36 using Serializable = DistributedData::Serializable;
40 struct InnerAsset : public Serializable {
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/cloud/
H A Dcloud_extra_data.h23 class API_EXPORT Context final : public Serializable {
31 class API_EXPORT ExtensionInfo final : public Serializable {
45 class API_EXPORT ExtraData final : public Serializable {
H A Dschema_meta.h20 struct API_EXPORT Field final : public Serializable {
30 struct API_EXPORT Table final : public Serializable {
39 struct API_EXPORT Database final : public Serializable {
48 class API_EXPORT SchemaMeta final : public Serializable {
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/config/src/model/
H A Dapp_id_mapping_config.cpp19 bool AppIdMappingConfig::Marshal(Serializable::json &node) const in Marshal()
25 bool AppIdMappingConfig::Unmarshal(const Serializable::json &node) in Unmarshal()
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/protocol/
H A Djson_protocol.cpp33 void JsonProtocol::Write(int key, Serializable::ValueType type, const uint8_t *value, size_t size) in Write()
37 case Serializable::ValueType::BOOL: in Write()
40 case Serializable::ValueType::INT: in Write()
43 case Serializable::ValueType::STRING: in Write()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/data/
H A Dtemplate_data.cpp19 bool TemplateNode::Marshal(DistributedData::Serializable::json &node) const in Marshal()
26 bool TemplateNode::Unmarshal(const DistributedData::Serializable::json &node) in Unmarshal()
48 bool TemplateRootNode::Marshal(DistributedData::Serializable::json &node) const in Marshal()
58 bool TemplateRootNode::Unmarshal(const DistributedData::Serializable::json &node) in Unmarshal()
88 return DistributedData::Serializable::Marshall(value); in GetValue()
121 if (!DistributedData::Serializable::Unmarshall(queryResult, data)) { in Query()
190 bool PredicatesNode::Marshal(DistributedData::Serializable::json &node) const in Marshal()
196 bool PredicatesNode::Unmarshal(const DistributedData::Serializable::json &node) in Unmarshal()

Completed in 19 milliseconds

1234