Exemple #1
0
std::auto_ptr<Preset> IdlePresets::allocate(const std::string & name, PresetOutputs & presetOutputs)
{

    if (name == IDLE_PRESET_NAME) {
        std::istringstream in(presetText());
        return std::auto_ptr<Preset>(new MilkdropPreset(in, IDLE_PRESET_NAME, presetOutputs));
    } else
        return std::auto_ptr<Preset>(0);
}
std::unique_ptr<Preset> IdlePresets::allocate(MilkdropPresetFactory *factory, const std::string & name, PresetOutputs & presetOutputs)
{

  if (name == IDLE_PRESET_NAME) {
  	std::istringstream in(presetText());
  	return std::unique_ptr<Preset>(new MilkdropPreset(factory, in, IDLE_PRESET_NAME, presetOutputs));
  }
  else
    return std::unique_ptr<Preset>();
}
Exemple #3
0
std::unique_ptr<Preset> IdlePreset::allocate( PresetInputs & presetInputs, PresetOutputs & presetOutputs)
{

  std::istringstream in(presetText());
  return std::unique_ptr<Preset>(new Preset(in, IDLE_PRESET_NAME, presetInputs, presetOutputs));
}