FFMpegCore/FFMpegCore/FFMPEG/Argument/Atoms/OutputArgument.cs
Malte Rosenbjerg 7d77c33609 Remove ArgumentStringifier + cleanup
No reason to split the responsibility


Former-commit-id: 0e2c788796
2020-02-27 20:16:17 +01:00

32 lines
764 B
C#

using System;
using System.IO;
namespace FFMpegCore.FFMPEG.Argument
{
/// <summary>
/// Represents output parameter
/// </summary>
public class OutputArgument : Argument<string>
{
public OutputArgument() { }
public OutputArgument(string value) : base(value) { }
public OutputArgument(VideoInfo value) : base(value.FullName) { }
public OutputArgument(FileInfo value) : base(value.FullName) { }
public OutputArgument(Uri value) : base(value.AbsolutePath) { }
/// <inheritdoc/>
public override string GetStringValue()
{
return $"\"{Value}\"";
}
public FileInfo GetAsFileInfo()
{
return new FileInfo(Value);
}
}
}