AuLib  1.0beta
Classes | Public Member Functions | Static Public Attributes | List of all members
AuLib::Score Class Reference

#include <AuLib/Score.h>

Classes

struct  Cmd
 

Public Member Functions

 Score ()
 
void add_cmd (const Cmd &c)
 
void read (std::ifstream &input)
 
void read (std::string &input)
 
void read (std::istream &input)
 
void clear ()
 
const std::list< Event > & score () const
 

Static Public Attributes

static constexpr uint32_t end = 0
 

Detailed Description

Basic score model

Constructor & Destructor Documentation

◆ Score()

AuLib::Score::Score ( )
inline

create a score

Member Function Documentation

◆ add_cmd()

void AuLib::Score::add_cmd ( const Cmd c)
inline

Add command with the following format
{ name, // string
type, // Score::Cmd::omni or !Score::Cmd::omni
msg, // uint32_t message code
len // uint32_t number of data items (doubles) in cmd
}

Scores are required to define the termination command:

{name, Score::Cmd::omni, Score::end, 0},

where name is a user-defined name (std::string) for the command

◆ clear()

void AuLib::Score::clear ( )
inline

clear the stored score

◆ read() [1/3]

void AuLib::Score::read ( std::ifstream &  input)
inline

read file stream with commands

◆ read() [2/3]

void AuLib::Score::read ( std::string &  input)
inline

read string with commands

◆ read() [3/3]

void AuLib::Score::read ( std::istream &  input)
inline

read stream with commands

◆ score()

const std::list<Event>& AuLib::Score::score ( ) const
inline

get the score

Member Data Documentation

◆ end

constexpr uint32_t AuLib::Score::end = 0
static

end command message


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