From 7e50a2a6dcf526fbf796b3af76dff4ea64aa08bb Mon Sep 17 00:00:00 2001 From: Ake Hedman Date: Wed, 1 Nov 2023 21:30:42 +0100 Subject: [PATCH] Added methods to get file object lists. --- src/vscp/common/mdf.h | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/src/vscp/common/mdf.h b/src/vscp/common/mdf.h index c9d5f3e4f..0501c4e21 100644 --- a/src/vscp/common/mdf.h +++ b/src/vscp/common/mdf.h @@ -3223,7 +3223,11 @@ class CMDF : public CMDF_Object { return ((m_list_picture.size() <= index) ? nullptr : m_list_picture[index]); }; - std::deque getPictureObj(void) { return m_list_picture; }; + /*! + Get pointer to picture object + @return Picture object + */ + std::deque *getPictureObj(void) { return &m_list_picture; }; /*! Get number of module videos @@ -3241,6 +3245,12 @@ class CMDF : public CMDF_Object { return ((m_list_video.size() <= index) ? nullptr : m_list_video[index]); }; + /*! + Get pointer to video object + @return Video object + */ + std::deque *getVideoObj(void) { return &m_list_video; }; + /*! Get number of module firmware files @return Number of firmware files available. @@ -3257,6 +3267,12 @@ class CMDF : public CMDF_Object { return ((m_list_firmware.size() <= index) ? nullptr : m_list_firmware[index]); }; + /*! + Get pointer to firmware object + @return Firmware object + */ + std::deque *getFirmwareObj(void) { return &m_list_firmware; }; + /*! Get number of driver files @return Number of driver available. @@ -3273,6 +3289,12 @@ class CMDF : public CMDF_Object { return ((m_list_driver.size() <= index) ? nullptr : m_list_driver[index]); }; + /*! + Get pointer to driver object + @return Driver object + */ + std::deque *getDriverObj(void) { return &m_list_driver; }; + /*! Get number of setup files @return Number of setup available. @@ -3289,6 +3311,12 @@ class CMDF : public CMDF_Object { return ((m_list_setup.size() <= index) ? nullptr : m_list_setup[index]); }; + /*! + Get pointer to setup object + @return Setup object + */ + std::deque *getSetupObj(void) { return &m_list_setup; }; + /*! Get number of module manual files @return Number of manual files available. @@ -3305,6 +3333,14 @@ class CMDF : public CMDF_Object { return ((m_list_manual.size() <= index) ? nullptr : m_list_manual[index]); }; + /*! + Get pointer to manual object + @return Manual object + */ + std::deque *getManualObj(void) { return &m_list_manual; }; + + // --------------------------------------------------------------------------------------------- + /*! Get bootloader object @return Pointer to bootloader object.