MuseScore  3.4
Music composition and notation
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
Ms::Script Class Referencefinal

#include <script.h>

Public Member Functions

const ScriptEntryentry (size_t n) const
 
const ScriptEntrylastEntry () const
 
size_t nentries () const
 
bool empty () const
 
bool execute (ScriptContext &ctx) const
 
void clear ()
 
void addEntry (std::unique_ptr< ScriptEntry > &&e)
 
void addEntry (ScriptEntry *e)
 
void addCommand (const QByteArray &cmd)
 
void addCommand (const QString &cmd)
 
void addFromLine (const QString &line)
 
void writeToFile (QString fileName) const
 

Static Public Member Functions

static std::unique_ptr< ScriptfromFile (QString fileName)
 

Private Attributes

std::vector< std::unique_ptr< ScriptEntry > > _entries
 

Member Function Documentation

◆ addCommand() [1/2]

void Ms::Script::addCommand ( const QByteArray &  cmd)
inline

◆ addCommand() [2/2]

void Ms::Script::addCommand ( const QString &  cmd)
inline

◆ addEntry() [1/2]

void Ms::Script::addEntry ( std::unique_ptr< ScriptEntry > &&  e)
inline

◆ addEntry() [2/2]

void Ms::Script::addEntry ( ScriptEntry e)
inline

◆ addFromLine()

void Ms::Script::addFromLine ( const QString &  line)

◆ clear()

void Ms::Script::clear ( void  )
inline

◆ empty()

bool Ms::Script::empty ( ) const
inline

◆ entry()

const ScriptEntry& Ms::Script::entry ( size_t  n) const
inline

◆ execute()

bool Ms::Script::execute ( ScriptContext ctx) const

◆ fromFile()

std::unique_ptr< Script > Ms::Script::fromFile ( QString  fileName)
static

◆ lastEntry()

const ScriptEntry& Ms::Script::lastEntry ( ) const
inline

◆ nentries()

size_t Ms::Script::nentries ( ) const
inline

◆ writeToFile()

void Ms::Script::writeToFile ( QString  fileName) const

Member Data Documentation

◆ _entries

std::vector<std::unique_ptr<ScriptEntry> > Ms::Script::_entries
private

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