MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / LogEvent

Method LogEvent

Source/ModularSynth.cpp:2740–2755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2738}
2739
2740void ModularSynth::LogEvent(std::string event, LogEventType type)
2741{
2742 if (type == kLogEventType_Warning)
2743 {
2744 !ofLog() << "warning: " << event;
2745 }
2746 else if (type == kLogEventType_Error)
2747 {
2748 !ofLog() << "error: " << event;
2749 mErrors.push_back(event);
2750 }
2751
2752 mEvents.push_back(LogEventItem(gTime, event, type));
2753 if (mEvents.size() > 30)
2754 mEvents.pop_front();
2755}
2756
2757IDrawableModule* ModularSynth::DuplicateModule(IDrawableModule* module)
2758{

Callers 15

SetStyleFromJSONMethod · 0.80
oscMessageReceivedMethod · 0.80
ReadMethod · 0.80
AddControlConnectionMethod · 0.80
LoadControllerLayoutMethod · 0.80
CreateUIControlsMethod · 0.80
LoadBasicsMethod · 0.80
LoadLayoutMethod · 0.80
LoadPrefabMethod · 0.80
LoadFromSaveDataMethod · 0.80
ConnectOutputMethod · 0.80
SetLayoutDataMethod · 0.80

Calls 3

ofLogClass · 0.85
LogEventItemClass · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected