aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Tango.NET/Tango.Protobuf/IProtoCompiler.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2017-10-30 17:57:06 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2017-10-30 17:57:06 +0200
commitc5bb832c1880d0a0d55c3ba11cf97cc6dff6a78d (patch)
treedced3401ffd5ee33acb7e54febec4f390ab2a4b8 /Software/Tango.NET/Tango.Protobuf/IProtoCompiler.cs
parentb0000c813d6dfac11cf041fca7de1928596f42ae (diff)
downloadTango-c5bb832c1880d0a0d55c3ba11cf97cc6dff6a78d.tar.gz
Tango-c5bb832c1880d0a0d55c3ba11cf97cc6dff6a78d.zip
Protobuf Compiler API first draft.
Added compiled protobuf & protobuf-c repositories.
Diffstat (limited to 'Software/Tango.NET/Tango.Protobuf/IProtoCompiler.cs')
-rw-r--r--Software/Tango.NET/Tango.Protobuf/IProtoCompiler.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/Software/Tango.NET/Tango.Protobuf/IProtoCompiler.cs b/Software/Tango.NET/Tango.Protobuf/IProtoCompiler.cs
new file mode 100644
index 000000000..bd2923ede
--- /dev/null
+++ b/Software/Tango.NET/Tango.Protobuf/IProtoCompiler.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Tango.Protobuf
+{
+ /// <summary>
+ /// Represents a protobuf messages compiler.
+ /// </summary>
+ public interface IProtoCompiler : IDisposable
+ {
+ /// <summary>
+ /// Compiles the specified .proto message file and saves the result at the specified output folder.
+ /// </summary>
+ /// <param name="inputFile">.proto file to compile</param>
+ /// <param name="outputFolder">Output folder to save the resulted source code.</param>
+ /// <returns>A list of output source code files.</returns>
+ List<String> Compile(String inputFile, String outputFolder);
+ }
+}