@@ -1406,25 +1406,25 @@ class RteFileInstance : public RteItemInstance
14061406public:
14071407 /* *
14081408 * @brief initialize the file instance
1409- * @param f pointer to the original RteFile
1409+ * @param f pointer to the original RteItem, represents RteFile or an item associated with a file
14101410 * @param deviceName device name used in the target
14111411 * @param instanceIndex instance index, can be > 0 for multi-instance components
14121412 * @param rteFolder the "RTE" folder path used for placing files
14131413 */
1414- void Init (RteFile * f, const std::string& deviceName, int instanceIndex, const std::string& rteFolder);
1414+ void Init (RteItem * f, const std::string& deviceName, int instanceIndex, const std::string& rteFolder);
14151415
14161416 /* *
14171417 * @brief update file instance
1418- * @param f pointer to the original RteFile
1418+ * @param f pointer to the original RteFile or RteItem representing afile
14191419 * @param bUpdateComponent update information about component this file belongs to
14201420 */
1421- void Update (RteFile * f, bool bUpdateComponent);
1421+ void Update (RteItem * f, bool bUpdateComponent);
14221422
14231423 /* *
14241424 * @brief check if this file is a config one
14251425 * @return true if "attr" attribute value is "config"
14261426 */
1427- bool IsConfig () const ;
1427+ bool IsConfig () const override ;
14281428
14291429 /* *
14301430 * @brief check if a new version of a config file is available (for specified target)
@@ -1539,17 +1539,17 @@ class RteFileInstance : public RteItemInstance
15391539 * rteFolder is taken from target's parent project
15401540 * @param targetName target name to resolve file
15411541 * @param
1542- * @return pointer to RteFile if resolved, nullptr otherwise
1542+ * @return pointer to RteFile as RteItem if resolved, nullptr otherwise
15431543 */
1544- RteFile * GetFile (const std::string& targetName) const ;
1544+ RteItem * GetFile (const std::string& targetName) const ;
15451545
15461546 /* *
15471547 * @brief copy a config file from pack location to the designated project directory
1548- * @param f pointer to RteFile to copy
1548+ * @param f pointer to RteFile (or RteItem representing a file) to copy
15491549 * @param bMerge flag indicating to merge it to the existing one (if exists), otherwise overwrite
15501550 * @return true is successful
15511551 */
1552- bool Copy (RteFile * f, bool bMerge);
1552+ bool Copy (RteItem * f, bool bMerge);
15531553
15541554public:
15551555
0 commit comments