Auxiliar class to serialize/deserialize the Bluray state (into/from XML)
More...
#include <BlurayStateSerializer.h>
Auxiliar class to serialize/deserialize the Bluray state (into/from XML)
◆ CBlurayStateSerializer()
CBlurayStateSerializer::CBlurayStateSerializer |
( |
| ) |
|
|
default |
◆ ~CBlurayStateSerializer()
CBlurayStateSerializer::~CBlurayStateSerializer |
( |
| ) |
|
|
default |
◆ BlurayStateToXML()
bool CBlurayStateSerializer::BlurayStateToXML |
( |
std::string & | xmlstate, |
|
|
const BlurayState & | state ) |
Provided the BlurayState struct of the current playing dvd, serializes the struct to XML.
- Parameters
-
[in,out] | xmlstate | a string describing the Bluray state (XML) |
| state | the Bluray state struct |
- Returns
- true if it was possible to serialize the struct into XML, false otherwise
◆ XMLToBlurayState()
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.
- Parameters
-
[in,out] | state | the Bluray state struct to be filled |
| xmlstate | a string describing the Bluray state (XML) |
- Returns
- true if it was possible to fill the state struct based on the XML content, false otherwise
The documentation for this class was generated from the following files: