Skip to content

Commit

Permalink
Added methods to get file object lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
grodansparadis committed Nov 1, 2023
1 parent d75c560 commit 7e50a2a
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion src/vscp/common/mdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -3223,7 +3223,11 @@ class CMDF : public CMDF_Object {
return ((m_list_picture.size() <= index) ? nullptr : m_list_picture[index]);
};

std::deque<CMDF_Picture *> getPictureObj(void) { return m_list_picture; };
/*!
Get pointer to picture object
@return Picture object
*/
std::deque<CMDF_Picture *> *getPictureObj(void) { return &m_list_picture; };

/*!
Get number of module videos
Expand All @@ -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<CMDF_Video *> *getVideoObj(void) { return &m_list_video; };

/*!
Get number of module firmware files
@return Number of firmware files available.
Expand All @@ -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<CMDF_Firmware *> *getFirmwareObj(void) { return &m_list_firmware; };

/*!
Get number of driver files
@return Number of driver available.
Expand All @@ -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<CMDF_Driver *> *getDriverObj(void) { return &m_list_driver; };

/*!
Get number of setup files
@return Number of setup available.
Expand All @@ -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<CMDF_Setup *> *getSetupObj(void) { return &m_list_setup; };

/*!
Get number of module manual files
@return Number of manual files available.
Expand All @@ -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<CMDF_Manual *> *getManualObj(void) { return &m_list_manual; };

// ---------------------------------------------------------------------------------------------

/*!
Get bootloader object
@return Pointer to bootloader object.
Expand Down

0 comments on commit 7e50a2a

Please sign in to comment.