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