Lines Matching refs:callback
23 uint32_t CmdList::Init(const string &filePath, HandleBack callback) in Init() argument
30 if (!callback) { in Init()
34 InitFileListCommand(root, callback); in Init()
42 callback(Option::FORCEWRITE, ""); in Init()
47 void CmdList::InitFileListCommand(Json::Value &root, HandleBack callback) in InitFileListCommand() argument
50 …istHandles_.push_back(bind(&CmdList::GetString, this, root["configPath"], Option::JSON, callback)); in InitFileListCommand()
51 …es_.push_back(bind(&CmdList::GetString, this, root["packageName"], Option::PACKAGENAME, callback)); in InitFileListCommand()
52 …tHandles_.push_back(bind(&CmdList::GetString, this, root["output"], Option::OUTPUTPATH, callback)); in InitFileListCommand()
53 …istHandles_.push_back(bind(&CmdList::GetString, this, root["startId"], Option::STARTID, callback)); in InitFileListCommand()
55 Option::DEPENDENTRY, callback)); in InitFileListCommand()
56 fileListHandles_.push_back(bind(&CmdList::GetString, this, root["ids"], Option::IDS, callback)); in InitFileListCommand()
57 …les_.push_back(bind(&CmdList::GetString, this, root["definedIds"], Option::DEFINED_IDS, callback)); in InitFileListCommand()
59 Option::INPUTPATH, callback)); in InitFileListCommand()
60 …les_.push_back(bind(&CmdList::GetArray, this, root["ResourceTable"], Option::RESHEADER, callback)); in InitFileListCommand()
61 …s_.push_back(bind(&CmdList::GetArray, this, root["moduleResources"], Option::INPUTPATH, callback)); in InitFileListCommand()
62 …dles_.push_back(bind(&CmdList::GetArray, this, root["dependencies"], Option::INPUTPATH, callback)); in InitFileListCommand()
63 …s_.push_back(bind(&CmdList::GetModuleNames, this, root["moduleNames"], Option::MODULES, callback)); in InitFileListCommand()
64 …Handles_.push_back(bind(&CmdList::GetBool, this, root["iconCheck"], Option::ICON_CHECK, callback)); in InitFileListCommand()
67 uint32_t CmdList::GetString(const Json::Value &node, int c, HandleBack callback) in GetString() argument
73 if (callback(c, node.asString()) != RESTOOL_SUCCESS) { in GetString()
79 uint32_t CmdList::GetArray(const Json::Value &node, int c, HandleBack callback) in GetArray() argument
89 if (callback(c, node[i].asString()) != RESTOOL_SUCCESS) { in GetArray()
96 uint32_t CmdList::GetModuleNames(const Json::Value &node, int c, HandleBack callback) in GetModuleNames() argument
100 return GetString(node, c, callback); in GetModuleNames()
112 if (!moduleNames.empty() && callback(c, moduleNames) != RESTOOL_SUCCESS) { in GetModuleNames()
118 uint32_t CmdList::GetBool(const Json::Value &node, int c, HandleBack callback) in GetBool() argument
124 if (node.asBool() && callback(c, "") != RESTOOL_SUCCESS) { in GetBool()