XJ music engine
1.9.6
In-game runtime engine for XJ music.
|
#include <ContentEntityStore.h>
|
explicitdefault |
Default constructor
|
explicit |
Deserialize a ContentEntityStore object from a JSON file
input | The JSON file to deserialize |
|
explicit |
Deserialize a ContentEntityStore object from a JSON string
input | The JSON string to deserialize |
|
default |
Virtual destructor
void ContentEntityStore::clear | ( | ) |
Clear the content store
ContentEntityStore ContentEntityStore::forTemplate | ( | const Template * | tmpl | ) |
Get a new ContentEntityStore object for a specific template
std::set< const InstrumentAudio * > ContentEntityStore::getAudiosOfInstrument | ( | const Instrument * | instrument | ) | const |
Get all InstrumentAudios for a given Instrument
instrument | for which to get audios |
std::set< const InstrumentAudio * > ContentEntityStore::getAudiosOfInstrument | ( | const UUID & | id | ) | const |
Get all Audios for a given instrument id
id | of instrument for which to get audios |
std::set< const InstrumentAudio * > ContentEntityStore::getAudiosOfInstrumentTypes | ( | const std::set< Instrument::Type > & | types | ) | const |
Get all instrument audios for the given instrument types
types | of instrument |
std::set< const InstrumentAudio * > ContentEntityStore::getAudiosOfInstrumentTypesAndModes | ( | const std::set< Instrument::Type > & | types, |
const std::set< Instrument::Mode > & | modes | ||
) | const |
Get all instrument audios for the given instrument types and modes
types | of instrument |
modes | of instrument |
std::vector< int > ContentEntityStore::getAvailableOffsets | ( | const ProgramSequenceBinding * | sequenceBinding | ) | const |
Get all available sequence pattern offsets of a given sequence, sorted of offset
sequenceBinding | for which to get available sequence pattern offsets |
std::vector< const ProgramSequenceBinding * > ContentEntityStore::getBindingsAtOffsetOfProgram | ( | const Program * | program, |
int | offset, | ||
bool | includeNearest | ||
) | const |
Get sequence bindings at a specified offset. If the target offset is not found in the chosen Main Program, we'll find the nearest matching offset, and return all bindings at that offset.
Chain should always be able to determine main sequence binding offset https://www.pivotaltracker.com/story/show/177052278
program | for which to get sequence bindings |
offset | to get sequence bindings at |
includeNearest | whether to include the nearest offset if the target offset is not found |
std::vector< const ProgramSequenceBinding * > ContentEntityStore::getBindingsAtOffsetOfProgram | ( | const UUID & | programId, |
int | offset, | ||
bool | includeNearest | ||
) | const |
Get sequence bindings at a specified offset. If the target offset is not found in the chosen Main Program, we'll find the nearest matching offset, and return all bindings at that offset.
Chain should always be able to determine main sequence binding offset https://www.pivotaltracker.com/story/show/177052278
programId | for which to get sequence bindings |
offset | to get sequence bindings at |
includeNearest | whether to include the nearest offset if the target offset is not found |
std::vector< const ProgramSequenceBinding * > ContentEntityStore::getBindingsOfSequence | ( | const ProgramSequence * | sequence | ) | const |
Get the sequence bindings for a given sequence
sequence | for which to get bindings |
std::vector< const ProgramSequenceBinding * > ContentEntityStore::getBindingsOfSequence | ( | const UUID & | sequenceId | ) | const |
Get the sequence bindings for a given sequence id
sequenceId | for which to get bindings |
std::set< const TemplateBinding * > ContentEntityStore::getBindingsOfTemplate | ( | const UUID & | templateId | ) | const |
Get all bindings for the given template id
std::vector< const ProgramSequenceChord * > ContentEntityStore::getChordsOfSequence | ( | const ProgramSequence * | sequence | ) | const |
Get all ProgramSequenceChords for a given Sequence
sequence | for which to get chords |
std::vector< const ProgramSequenceChord * > ContentEntityStore::getChordsOfSequence | ( | const UUID & | programSequenceId | ) | const |
Get all ProgramSequenceChords for a given Sequence
programSequenceId | for which to get chords |
std::vector< const ProgramSequencePatternEvent * > ContentEntityStore::getEventsOfPattern | ( | const ProgramSequencePattern * | pattern | ) | const |
Get events for a given program pattern, sorted of position
pattern | for which to get events |
std::vector< const ProgramSequencePatternEvent * > ContentEntityStore::getEventsOfPattern | ( | const UUID & | patternId | ) | const |
Get events for a given program sequence pattern id, sorted of position
patternId | for which to get events |
std::vector< const ProgramSequencePatternEvent * > ContentEntityStore::getEventsOfPatternAndTrack | ( | const ProgramSequencePattern * | pattern, |
const ProgramVoiceTrack * | track | ||
) | const |
Get events for a given program pattern and track, sorted of position
pattern | for which to get events |
track | for which to get events |
std::vector< const ProgramSequencePatternEvent * > ContentEntityStore::getEventsOfPatternAndTrack | ( | const UUID & | patternId, |
const UUID & | trackId | ||
) | const |
Get events for a given program sequence pattern id and track id, sorted of position
patternId | for which to get events |
trackId | for which to get events |
std::vector< const ProgramSequencePatternEvent * > ContentEntityStore::getEventsOfTrack | ( | const ProgramVoiceTrack * | track | ) | const |
Get events for a given program track, sorted of position
track | for which to get events |
std::vector< const ProgramSequencePatternEvent * > ContentEntityStore::getEventsOfTrack | ( | const UUID & | trackId | ) | const |
Get events for a given program voice track id, sorted of position
trackId | for which to get events |
std::optional< const Template * > ContentEntityStore::getFirstTemplate | ( | ) |
Get the first template from the content
std::set< const Instrument * > ContentEntityStore::getInstrumentsOfLibrary | ( | const Library * | library | ) | const |
Get a collection of all instruments of the given library
library | for which to get instruments |
std::set< const Instrument * > ContentEntityStore::getInstrumentsOfLibrary | ( | const UUID & | libraryId | ) | const |
Get a collection of all instruments of the given library id
libraryId | for which to get instruments |
std::set< const Instrument * > ContentEntityStore::getInstrumentsOfType | ( | const Instrument::Type & | type | ) | const |
Get a collection of all instruments of a particular type for ingest
std::set< const Instrument * > ContentEntityStore::getInstrumentsOfTypes | ( | const std::set< Instrument::Type > & | types | ) | const |
Get a collection of all instruments of particular types
types | of instrument; empty list is a wildcard |
std::set< const Instrument * > ContentEntityStore::getInstrumentsOfTypesAndModes | ( | const std::set< Instrument::Type > & | types, |
const std::set< Instrument::Mode > & | modes | ||
) | const |
Get a collection of all instruments of particular types and modes
types | of instrument; empty list is a wildcard |
modes | of instrument; empty list is a wildcard |
Instrument::Type ContentEntityStore::getInstrumentTypeOfAudio | ( | const UUID & | instrumentAudioId | ) | const |
Get the instrument type for the given audio id
instrumentAudioId | for which to get instrument type |
RuntimeException | on failure |
Instrument::Type ContentEntityStore::getInstrumentTypeOfEvent | ( | const ProgramSequencePatternEvent * | event | ) |
Get the instrument type for the given event
event | for which to get instrument type |
std::set< std::string > ContentEntityStore::getMemesAtBeginning | ( | const Program * | program | ) | const |
Get all memes for a given program at sequence binding offset 0
std::set< const InstrumentMeme * > ContentEntityStore::getMemesOfInstrument | ( | const UUID & | instrumentId | ) | const |
Get memes of instrument
instrumentId | for which to get memes |
std::set< const ProgramMeme * > ContentEntityStore::getMemesOfProgram | ( | const UUID & | programId | ) | const |
Get memes of program
programId | for which to get memes |
std::set< const ProgramSequenceBindingMeme * > ContentEntityStore::getMemesOfSequenceBinding | ( | const ProgramSequenceBinding * | programSequenceBinding | ) | const |
Get all program sequence binding memes for program sequence binding
programSequenceBinding | for which to get memes |
std::set< const ProgramSequenceBindingMeme * > ContentEntityStore::getMemesOfSequenceBinding | ( | const UUID & | programSequenceBindingId | ) | const |
Get all program sequence binding memes for program sequence binding
programSequenceBindingId | for which to get memes |
MemeTaxonomy ContentEntityStore::getMemeTaxonomy | ( | ) |
Get meme taxonomy for the current template, if present, else empty meme taxonomy
Get the pattern id for an event id
eventId | for which to get pattern |
std::set< const ProgramSequencePattern * > ContentEntityStore::getPatternsOfSequence | ( | const ProgramSequence * | sequence | ) |
Get all patterns for a sequence
sequence | for which to get patterns |
std::set< const ProgramSequencePattern * > ContentEntityStore::getPatternsOfSequence | ( | const UUID & | sequence | ) |
Get all patterns for a sequence ID
sequence | for which to get patterns |
std::set< const ProgramSequencePattern * > ContentEntityStore::getPatternsOfSequenceAndVoice | ( | const UUID & | programSequenceId, |
const UUID & | programVoiceId | ||
) | const |
Get all ProgramSequencePatterns for a given sequence and voice
std::set< const ProgramSequencePattern * > ContentEntityStore::getPatternsOfVoice | ( | const ProgramVoice * | voice | ) | const |
Get all patterns for a voice
voice | for which to get patterns |
std::set< const ProgramSequencePattern * > ContentEntityStore::getPatternsOfVoice | ( | const UUID & | voiceId | ) | const |
Get all patterns for a voice ID
voiceId | for which to get patterns |
std::set< const Program * > ContentEntityStore::getProgramsOfLibrary | ( | const Library * | library | ) | const |
Get a collection of all programs of the given library
library | for which to get programs |
std::set< const Program * > ContentEntityStore::getProgramsOfLibrary | ( | const UUID & | libraryId | ) | const |
Get a collection of all programs of the given library id
libraryId | for which to get programs |
std::set< const Program * > ContentEntityStore::getProgramsOfType | ( | Program::Type | type | ) | const |
Get a collection of all sequences of a particular type for ingest
std::optional< Project * > ContentEntityStore::getProject | ( | ) |
std::set< const ProgramSequenceBindingMeme * > ContentEntityStore::getSequenceBindingMemesOfProgram | ( | const Program * | program | ) | const |
Get the sequence binding memes for a given program
program | for which to get sequence binding memes |
std::set< const ProgramSequenceBindingMeme * > ContentEntityStore::getSequenceBindingMemesOfProgram | ( | const UUID & | programId | ) | const |
Get the sequence binding memes for a given program id
programId | for which to get sequence binding memes |
std::vector< const ProgramSequenceBinding * > ContentEntityStore::getSequenceBindingsOfProgram | ( | const UUID & | programId | ) | const |
Get all sequence bindings for the given program
programId | for which to get bindings |
std::vector< const ProgramSequenceChord * > ContentEntityStore::getSequenceChordsOfProgram | ( | const UUID & | programId | ) | const |
Get all ProgramSequenceChords
std::set< const ProgramSequenceChordVoicing * > ContentEntityStore::getSequenceChordVoicingsOfProgram | ( | const UUID & | programId | ) | const |
Get program sequence chord voicings
programId | to get sequence chord voicings of |
std::optional< const ProgramSequence * > ContentEntityStore::getSequenceOfBinding | ( | const ProgramSequenceBinding * | sequenceBinding | ) |
Get the program sequence for a given program sequence binding
sequenceBinding | for which to get program sequence |
std::vector< const ProgramSequencePatternEvent * > ContentEntityStore::getSequencePatternEventsOfProgram | ( | const UUID & | programId | ) | const |
Get events for a given program
programId | for which to get events |
std::set< const ProgramSequencePattern * > ContentEntityStore::getSequencePatternsOfProgram | ( | const Program * | program | ) | const |
Get patterns for a given program pattern, sorted of position
program | for which to get patterns |
std::set< const ProgramSequencePattern * > ContentEntityStore::getSequencePatternsOfProgram | ( | const UUID & | programId | ) | const |
Get patterns for a given program
programId | for which to get patterns |
std::set< const ProgramSequence * > ContentEntityStore::getSequencesOfProgram | ( | const UUID & | programId | ) | const |
Get all ProgramSequences
programId | to search for sequences |
std::optional< const Template * > ContentEntityStore::getTemplateByIdentifier | ( | const std::optional< std::string >::value_type & | identifier | ) |
Get a template by an "identifier" which is first the name, then the ship key, then the id
identifier | for which to get template |
std::set< std::string > ContentEntityStore::getTrackNamesOfVoice | ( | const ProgramVoice * | voice | ) | const |
Get all track names for a given program voice
voice | for which to get track names |
std::optional< const ProgramVoiceTrack * > ContentEntityStore::getTrackOfEvent | ( | const ProgramSequencePatternEvent * | event | ) |
std::set< const ProgramVoiceTrack * > ContentEntityStore::getTracksOfProgram | ( | const UUID & | programId | ) | const |
Get all program voice tracks for the given program id
programId | for which to get tracks |
std::set< const ProgramVoiceTrack * > ContentEntityStore::getTracksOfProgramType | ( | Program::Type | type | ) | const |
Get all program voice tracks for the given program type
type | of program |
std::set< const ProgramVoiceTrack * > ContentEntityStore::getTracksOfVoice | ( | const ProgramVoice * | voice | ) | const |
Get all Program Voice Tracks for the given Voice
voice | for which to get tracks |
std::set< const ProgramVoiceTrack * > ContentEntityStore::getTracksOfVoice | ( | const UUID & | voiceId | ) | const |
Get all Program Voice Tracks for the given Voice ID
voiceId | for which to get tracks |
std::optional< const ProgramVoice * > ContentEntityStore::getVoiceOfEvent | ( | const ProgramSequencePatternEvent * | event | ) |
std::set< const ProgramVoice * > ContentEntityStore::getVoicesOfProgram | ( | const Program * | program | ) | const |
Get all program voices for a given program
program | for which to get program voices |
std::set< const ProgramVoice * > ContentEntityStore::getVoicesOfProgram | ( | const UUID & | programId | ) | const |
Get all program voices for a given program
programId | for which to get program voices |
std::set< const ProgramSequenceChordVoicing * > ContentEntityStore::getVoicingsOfChord | ( | const ProgramSequenceChord * | chord | ) | const |
Get all ProgramSequenceChordVoicings for a given Sequence Chord
chord | for which to get voicings |
std::set< const ProgramSequenceChordVoicing * > ContentEntityStore::getVoicingsOfChord | ( | const UUID & | chordId | ) | const |
Get all ProgramSequenceChordVoicings for a given Sequence Chord ID
chordId | for which to get voicings |
std::set< const ProgramSequenceChordVoicing * > ContentEntityStore::getVoicingsOfChordAndVoice | ( | const ProgramSequenceChord * | chord, |
const ProgramVoice * | voice | ||
) | const |
Get all ProgramSequenceChordVoicings for a given Sequence Chord ID and Voice ID
chord | for which to get voicings |
voice | for which to get voicings |
std::set< const ProgramSequenceChordVoicing * > ContentEntityStore::getVoicingsOfChordAndVoice | ( | const UUID & | chordId, |
const UUID & | voiceId | ||
) | const |
Get all ProgramSequenceChordVoicings for a given Sequence Chord ID and Voice ID
chordId | for which to get voicings |
voiceId | for which to get voicings |
bool ContentEntityStore::hasInstrumentsOfMode | ( | Instrument::Mode | mode | ) |
Whether the content contains instruments of the given mode
mode | of instrument for which to search |
bool ContentEntityStore::hasInstrumentsOfType | ( | Instrument::Type | type | ) |
Whether the content contains instruments of the given type
type | of instrument for which to search |
bool ContentEntityStore::hasInstrumentsOfTypeAndMode | ( | Instrument::Type | type, |
Instrument::Mode | mode | ||
) |
Whether the content contains instruments of the given type
type | of instrument for which to search |
mode | of instrument for which to search |
void ContentEntityStore::put | ( | const ContentEntityStore * | other | ) |
Put all the content from another ContentEntityStore
std::string ContentEntityStore::toString | ( | ) |
Summarize the contents of the store as a string