xbmc
|
Auxiliar class to serialize/deserialize the dvd state (into/from XML) More...
#include <DVDStateSerializer.h>
Public Member Functions | |
CDVDStateSerializer ()=default | |
Default constructor. | |
~CDVDStateSerializer ()=default | |
Default destructor. | |
bool | XMLToDVDState (DVDState &state, const std::string &xmlstate) |
Provided the state in xml format, fills a DVDState struct representing the DVD state and returns the success status of the operation. More... | |
bool | DVDStateToXML (std::string &xmlstate, const DVDState &state) |
Provided the DVDState struct of the current playing dvd, serializes the struct to XML. More... | |
Auxiliar class to serialize/deserialize the dvd state (into/from XML)
bool CDVDStateSerializer::DVDStateToXML | ( | std::string & | xmlstate, |
const DVDState & | state | ||
) |
Provided the DVDState struct of the current playing dvd, serializes the struct to XML.
[in,out] | xmlstate | a string describing the dvd state (XML) |
state | the DVD state struct |
bool CDVDStateSerializer::XMLToDVDState | ( | DVDState & | state, |
const std::string & | xmlstate | ||
) |
Provided the state in xml format, fills a DVDState struct representing the DVD state and returns the success status of the operation.
[in,out] | state | the DVD state struct to be filled |
xmlstate | a string describing the dvd state (XML) |