pianod2
multisource multiuser scriptable networked music player
Public Member Functions | Public Attributes | List of all members
Media::SplitId Class Reference

Mechanism to split MusicThingie IDs into source identifier, type and inner ID. More...

#include <mediaunit.h>

Collaboration diagram for Media::SplitId:
Collaboration graph
[legend]

Public Member Functions

 SplitId (const std::string &id)
 Split an ID to its component pieces (source, type, id). More...
 

Public Attributes

const std::string wholeId
 Complete ID. More...
 
Source::SerialNumber serialNumber
 The source's ID number assigned by the media manager. More...
 
Sourcesource
 The source associated with the serial number. More...
 
MusicThingie::Type type
 The type of music thingie that was decoded. More...
 
std::string innerId
 The item ID with the source serial number and type code removed. More...
 

Detailed Description

Mechanism to split MusicThingie IDs into source identifier, type and inner ID.

Constructor & Destructor Documentation

◆ SplitId()

Media::SplitId::SplitId ( const std::string &  id)
explicit

Split an ID to its component pieces (source, type, id).

Parameters
idThe ID to split up.
Exceptions
CommandErrorif the ID is invalid.
Here is the call graph for this function:

Member Data Documentation

◆ innerId

std::string Media::SplitId::innerId

The item ID with the source serial number and type code removed.

◆ serialNumber

Source::SerialNumber Media::SplitId::serialNumber

The source's ID number assigned by the media manager.

◆ source

Source* Media::SplitId::source

The source associated with the serial number.

◆ type

MusicThingie::Type Media::SplitId::type

The type of music thingie that was decoded.

◆ wholeId

const std::string Media::SplitId::wholeId

Complete ID.


The documentation for this class was generated from the following files: