};
/**
- * @brief an iterator to the begin element in the range that compares equal to option
- * @param[in] begin element
- * @param[in] end elment
- * return return true when elements match
- */
-bool cmdOptionExists(char** begin, char** end, const std::string& option);
-
-/**
- * @brief get current executable path
- * return std::string path
- */
-std::string readSelfPath();
-
-/**
* @brief concat path with PATH_SEPARATOR
* @param[in] destination path
* @param[in] source path
* @param[in] original string
* @param[in] pattern to match
* @param[in] replacement string
- * return the modified string
+ * return std::string the modified string
*/
std::string replaceAll(const std::string& str, const std::string& pattern, const std::string& replace);
/**
* @brief get root path
* @param[in] package id
- * @param[out] root path
+ * return std::string root path
*/
-int getRootPath(const std::string& pkgId, std::string& rootPath);
+std::string getRootPath(const std::string& pkgId);
/**
* @brief get exec name
* @param[in] package id
- * @param[out] exec name
+ * return std::string exec name
+ */
+std::string getExecName(const std::string& pkgId);
+
+/**
+ * @brief get app type
+ * @param[in] package id
+ * return std::string app type
*/
-int getExecName(const std::string& pkgId, std::string& execName);
+std::string getAppType(const std::string& pkgId);
/**
* @brief get metadata value
* @param[in] package id
* @param[in] metadata key
- * @param[out] metadata value
+ * return std::string metadata value
*/
-int getMetadataValue(const std::string& pkgId, const std::string& metadataKey, std::string& metadataValue);
+std::string getMetadataValue(const std::string& pkgId, const std::string& key);
/**
* @brief split path with ":" delimiter and put that in the vector
bool isDirectory(const std::string& path);
/**
- * @brief get file size
- * @param[in] source path
- * @return size of file
- */
-uintptr_t getFileSize(const std::string& path);
-
-/**
* @brief check the file is managed assembly or not.
* @param[in] file path
* @return return true when the file is managed assembly.