Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CBlurayStateSerializer Class Reference

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.
 
bool BlurayStateToXML (std::string &xmlstate, const BlurayState &state)
 Provided the BlurayState struct of the current playing dvd, serializes the struct to XML.
 

Detailed Description

Auxiliar class to serialize/deserialize the Bluray state (into/from XML)

Constructor & Destructor Documentation

◆ CBlurayStateSerializer()

CBlurayStateSerializer::CBlurayStateSerializer ( )
default

Default constructor.

◆ ~CBlurayStateSerializer()

CBlurayStateSerializer::~CBlurayStateSerializer ( )
default

Default destructor.

Member Function Documentation

◆ 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]xmlstatea string describing the Bluray state (XML)
statethe 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]statethe Bluray state struct to be filled
xmlstatea 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: