pianod2
multisource multiuser scriptable networked music player
Functions
Sources Namespace Reference

Interface between the general pianod code and the individual sources, which may or may not be present in any particular build. More...

Functions

const std::vector< std::string > & sourceKindNames ()
 Get a list of source type names. More...
 
bool isSource (const std::string &name)
 Check if a name is a source type name. More...
 
void registerCommands (PianodParser *parser)
 Register source parser definitions with the master parser. More...
 
void registerInterpreters (PianodDispatcher &dispatcher)
 
void addRequestNames (PianodSchema &schema)
 
void restore (UserData::DataStore *source_data, User *owner)
 Restore a source. More...
 
void report (int)
 Report sources, libraries they use and their versions. More...
 

Detailed Description

Interface between the general pianod code and the individual sources, which may or may not be present in any particular build.

Function Documentation

◆ addRequestNames()

void Sources::addRequestNames ( PianodSchema schema)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isSource()

bool Sources::isSource ( const std::string &  name)

Check if a name is a source type name.

Parameters
nameThe name to check.
Returns
True if name is a source type name other than the manager.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ registerCommands()

void Sources::registerCommands ( PianodParser parser)

Register source parser definitions with the master parser.

Parameters
parserThe master parser.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ registerInterpreters()

void Sources::registerInterpreters ( PianodDispatcher dispatcher)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ report()

void Sources::report ( int  )

Report sources, libraries they use and their versions.

The currently unused parameter represents a verbosity level.

Here is the caller graph for this function:

◆ restore()

void Sources::restore ( UserData::DataStore source_data,
User owner 
)

Restore a source.

Parameters
source_dataThe parameters for the source.
ownerThe user to whom the source belongs.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sourceKindNames()

const std::vector< std::string > & Sources::sourceKindNames ( )

Get a list of source type names.

Returns
Vector with source names (except manager).
Here is the caller graph for this function: