Home
last modified time | relevance | path

Searched refs:inPath (Results 1 - 13 of 13) sorted by relevance

/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/
H A Djson_object.h61 bool IsFieldPathExist(const FieldPath &inPath) const;
62 int GetFieldTypeByFieldPath(const FieldPath &inPath, FieldType &outType) const;
63 int GetFieldValueByFieldPath(const FieldPath &inPath, FieldValue &outValue) const;
65 int GetObjectArrayByFieldPath(const FieldPath &inPath, std::vector<JsonObject> &outArray) const;
66 int GetStringArrayByFieldPath(const FieldPath &inPath, std::vector<std::string> &outArray) const;
68 int GetObjectByFieldPath(const FieldPath &inPath, JsonObject &outObj) const;
71 // If inPath is of multiple path, then outSubPath is combination of result of each inPath.
72 int GetSubFieldPath(const FieldPath &inPath, std::set<FieldPath> &outSubPath) const;
73 int GetSubFieldPath(const std::set<FieldPath> &inPath, st
[all...]
H A Dvalue_object.h49 bool IsFieldPathExist(const FieldPath &inPath) const;
50 int GetFieldTypeByFieldPath(const FieldPath &inPath, FieldType &outType) const;
51 int GetFieldValueByFieldPath(const FieldPath &inPath, FieldValue &outValue) const;
54 // If inPath is of multiple path, then outSubPath is combination of result of each inPath.
55 int GetSubFieldPath(const FieldPath &inPath, std::set<FieldPath> &outSubPath) const;
56 int GetSubFieldPath(const std::set<FieldPath> &inPath, std::set<FieldPath> &outSubPath) const;
57 int GetSubFieldPathAndType(const FieldPath &inPath, std::map<FieldPath, FieldType> &outSubPathType) const;
58 int GetSubFieldPathAndType(const std::set<FieldPath> &inPath, std::map<FieldPath, FieldType> &outSubPathType) const;
60 // Can be called no matter ValueObject valid or not. Invalid turn into valid after successful call. An empty inPath
[all...]
H A Dschema_object.h77 int CheckQueryableAndGetFieldType(const FieldPath &inPath, FieldType &outType) const;
108 int ExtractValue(ValueSource sourceType, RawString inPath, const RawValue &inValue, TypeValue &outExtract,
122 int CheckSchemaDefineItemDecideAttribute(const JsonObject &inJsonObject, const FieldPath &inPath, FieldType inType,
171 int ExtractFlatBufferValue(RawString inPath, const RawValue &inValue, TypeValue &outExtract,
H A Dschema_utils.h52 static std::string FieldPathString(const FieldPath &inPath);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Djson_object.cpp250 bool JsonObject::IsFieldPathExist(const FieldPath &inPath) const in IsFieldPathExist()
257 (void)GetJsonValueByFieldPath(inPath, errCode); // Ignore return const reference in IsFieldPathExist()
261 int JsonObject::GetFieldTypeByFieldPath(const FieldPath &inPath, FieldType &outType) const in GetFieldTypeByFieldPath() argument
268 const Json::Value &valueNode = GetJsonValueByFieldPath(inPath, errCode); in GetFieldTypeByFieldPath()
275 int JsonObject::GetFieldValueByFieldPath(const FieldPath &inPath, FieldValue &outValue) const in GetFieldValueByFieldPath() argument
282 const Json::Value &valueNode = GetJsonValueByFieldPath(inPath, errCode); in GetFieldValueByFieldPath()
313 int JsonObject::GetSubFieldPath(const FieldPath &inPath, std::set<FieldPath> &outSubPath) const in GetSubFieldPath() argument
320 const Json::Value &valueNode = GetJsonValueByFieldPath(inPath, errCode); in GetSubFieldPath()
330 FieldPath eachSubPath = inPath; in GetSubFieldPath()
337 int JsonObject::GetSubFieldPath(const std::set<FieldPath> &inPath, st argument
348 GetSubFieldPathAndType(const FieldPath &inPath, std::map<FieldPath, FieldType> &outSubPathType) const GetSubFieldPathAndType() argument
377 GetSubFieldPathAndType(const std::set<FieldPath> &inPath, std::map<FieldPath, FieldType> &outSubPathType) const GetSubFieldPathAndType() argument
389 GetArraySize(const FieldPath &inPath, uint32_t &outSize) const GetArraySize() argument
407 GetArrayContentOfStringOrStringArray(const FieldPath &inPath, std::vector<std::vector<std::string>> &outContent) const GetArrayContentOfStringOrStringArray() argument
449 InsertFieldCheckParameter(const FieldPath &inPath, FieldType inType, const FieldValue &inValue, uint32_t maxNestDepth) InsertFieldCheckParameter() argument
500 MoveToPath(const FieldPath &inPath, Json::Value *&exact, Json::Value *&nearest) MoveToPath() argument
523 InsertField(const FieldPath &inPath, const JsonObject &inValue, bool isAppend) InsertField() argument
547 InsertField(const FieldPath &inPath, FieldType inType, const FieldValue &inValue, bool isAppend) InsertField() argument
572 DeleteField(const FieldPath &inPath) DeleteField() argument
673 GetJsonValueByFieldPath(const FieldPath &inPath, int &errCode) const GetJsonValueByFieldPath() argument
693 LocateJsonValueByFieldPath(const FieldPath &inPath, Json::Value *&exact, Json::Value *&nearest, uint32_t &nearDepth) LocateJsonValueByFieldPath() argument
724 GetObjectArrayByFieldPath(const FieldPath &inPath, std::vector<JsonObject> &outArray) const GetObjectArrayByFieldPath() argument
747 GetObjectByFieldPath(const FieldPath &inPath, JsonObject &outObj) const GetObjectByFieldPath() argument
768 GetStringArrayByFieldPath(const FieldPath &inPath, std::vector<std::string> &outArray) const GetStringArrayByFieldPath() argument
[all...]
H A Dvalue_object.cpp102 bool ValueObject::IsFieldPathExist(const FieldPath &inPath) const in IsFieldPathExist()
104 return value_.IsFieldPathExist(inPath); in IsFieldPathExist()
107 int ValueObject::GetFieldTypeByFieldPath(const FieldPath &inPath, FieldType &outType) const in GetFieldTypeByFieldPath() argument
112 return value_.GetFieldTypeByFieldPath(inPath, outType); in GetFieldTypeByFieldPath()
115 int ValueObject::GetFieldValueByFieldPath(const FieldPath &inPath, FieldValue &outValue) const in GetFieldValueByFieldPath() argument
120 return value_.GetFieldValueByFieldPath(inPath, outValue); in GetFieldValueByFieldPath()
123 int ValueObject::GetSubFieldPath(const FieldPath &inPath, std::set<FieldPath> &outSubPath) const in GetSubFieldPath() argument
128 return value_.GetSubFieldPath(inPath, outSubPath); in GetSubFieldPath()
131 int ValueObject::GetSubFieldPath(const std::set<FieldPath> &inPath, std::set<FieldPath> &outSubPath) const in GetSubFieldPath() argument
136 return value_.GetSubFieldPath(inPath, outSubPat in GetSubFieldPath()
139 GetSubFieldPathAndType(const FieldPath &inPath, std::map<FieldPath, FieldType> &outSubPathType) const GetSubFieldPathAndType() argument
147 GetSubFieldPathAndType(const std::set<FieldPath> &inPath, std::map<FieldPath, FieldType> &outSubPathType) const GetSubFieldPathAndType() argument
156 InsertField(const FieldPath &inPath, FieldType inType, const FieldValue &inValue) InsertField() argument
165 DeleteField(const FieldPath &inPath) DeleteField() argument
[all...]
H A Dschema_object.cpp213 int SchemaObject::CheckQueryableAndGetFieldType(const FieldPath &inPath, FieldType &outType) const in CheckQueryableAndGetFieldType() argument
215 if (inPath.empty()) { in CheckQueryableAndGetFieldType()
218 if (schemaDefine_.count(inPath.size() - 1) == 0) { in CheckQueryableAndGetFieldType()
221 if (schemaDefine_.at(inPath.size() - 1).count(inPath) == 0) { in CheckQueryableAndGetFieldType()
224 const SchemaAttribute &targetAttr = schemaDefine_.at(inPath.size() - 1).at(inPath); in CheckQueryableAndGetFieldType()
350 int SchemaObject::ExtractValue(ValueSource sourceType, RawString inPath, const RawValue &inValue, in ExtractValue() argument
357 if (inPath == nullptr || inValue.first == nullptr) { // LCOV_EXCL_BR_LINE in ExtractValue()
386 int errCode = flatbufferSchema_.ExtractFlatBufferValue(inPath, rawValu in ExtractValue()
581 CheckSchemaDefineItemDecideAttribute(const JsonObject& inJsonObject, const FieldPath &inPath, FieldType inType, SchemaAttribute &outAttr) const CheckSchemaDefineItemDecideAttribute() argument
1075 ValueFieldType(const std::map<FieldPath, FieldType> &subPathType, const FieldPath &inPath) ValueFieldType() argument
[all...]
H A Dflatbuffer_schema.cpp273 RawString CheckDollarDotAndSkipIt(RawString inPath) in CheckDollarDotAndSkipIt() argument
275 if (inPath == nullptr) { in CheckDollarDotAndSkipIt()
278 auto pathStr = inPath; in CheckDollarDotAndSkipIt()
426 int SchemaObject::FlatBufferSchema::ExtractFlatBufferValue(RawString inPath, const RawValue &inValue, in ExtractFlatBufferValue() argument
435 auto pathStr = CheckDollarDotAndSkipIt(inPath); in ExtractFlatBufferValue()
437 LOGE("[FBSchema][Extract] inPath not begin with $. or nothing after it."); in ExtractFlatBufferValue()
992 int SchemaObject::FlatBufferSchema::ExtractFlatBufferValue(RawString inPath, const RawValue &inValue, in ExtractFlatBufferValue() argument
995 (void)inPath; in ExtractFlatBufferValue()
H A Dschema_utils.cpp495 std::string SchemaUtils::FieldPathString(const FieldPath &inPath) in FieldPathString() argument
498 for (const auto &entry : inPath) { in FieldPathString()
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/dev/
H A Dfile_monitor.cpp79 void FileMonitor::CleanPath(const string_view inPath, string& path) in CleanPath() argument
82 if ((inPath.back() != '/') && (inPath.back() != '\\')) { in CleanPath()
83 path.reserve(inPath.size() + 1); in CleanPath()
84 path = inPath; in CleanPath()
87 path = inPath; in CleanPath()
96 bool FileMonitor::AddPath(const string_view inPath) in AddPath() argument
99 CleanPath(inPath, path); in AddPath()
118 bool FileMonitor::RemovePath(const string_view inPath) in RemovePath() argument
121 CleanPath(inPath, pat in RemovePath()
142 IsWatchingDirectory(const string_view inPath) IsWatchingDirectory() argument
155 IsWatchingSubDirectory(const string_view inPath) IsWatchingSubDirectory() argument
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_utils_extend.cpp165 void SQLiteUtils::JsonExtractInnerFunc(sqlite3_context *ctx, const ValueObject &inValue, const FieldPath &inPath) in JsonExtractInnerFunc() argument
168 int errCode = inValue.GetFieldTypeByFieldPath(inPath, outType); in JsonExtractInnerFunc()
176 errCode = inValue.GetFieldValueByFieldPath(inPath, outValue); in JsonExtractInnerFunc()
232 RawString inPath) in FlatBufferExtractInnerFunc()
237 int errCode = schema.ExtractValue(ValueSource::FROM_DBFILE, inPath, inValue, outExtract, nullptr); in FlatBufferExtractInnerFunc()
269 int errCode = schema.ExtractValue(ValueSource::FROM_DBFILE, inPath, inValue, outExtract, cached); in FlatBufferExtractInnerFunc()
231 FlatBufferExtractInnerFunc(sqlite3_context *ctx, const SchemaObject &schema, const RawValue &inValue, RawString inPath) FlatBufferExtractInnerFunc() argument
H A Dsqlite_utils.h213 static void JsonExtractInnerFunc(sqlite3_context *ctx, const ValueObject &inValue, const FieldPath &inPath);
218 RawString inPath);
/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/lumeassetcompiler/src/
H A Dmain.cpp526 std::string inPath = { "" }, roPath = { "" }; local
611 inPath = argv[baseArg + 1];
637 add_directory(inPath, roPath);

Completed in 10 milliseconds