aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual Studio/Tango.Protobuf/Compilers/PythonCompiler.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2017-11-01 14:51:06 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2017-11-01 14:51:06 +0200
commite2c57e31379cad583f5a7b4f8815d2bc972c62a5 (patch)
tree8ea1e637efcb09ad9104efb53dd9c29f128f33aa /Software/Visual Studio/Tango.Protobuf/Compilers/PythonCompiler.cs
parentec0c395263dafed2cd17bf756c9891525efcc13c (diff)
downloadTango-e2c57e31379cad583f5a7b4f8815d2bc972c62a5.tar.gz
Tango-e2c57e31379cad583f5a7b4f8815d2bc972c62a5.zip
Implemented .NET logging library
Completed protobuf compilation library. Implemented GUI app for protobuf compilation. Implemented CLI app for protobuf compilation.
Diffstat (limited to 'Software/Visual Studio/Tango.Protobuf/Compilers/PythonCompiler.cs')
-rw-r--r--Software/Visual Studio/Tango.Protobuf/Compilers/PythonCompiler.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/Software/Visual Studio/Tango.Protobuf/Compilers/PythonCompiler.cs b/Software/Visual Studio/Tango.Protobuf/Compilers/PythonCompiler.cs
new file mode 100644
index 000000000..e3c3ebbd7
--- /dev/null
+++ b/Software/Visual Studio/Tango.Protobuf/Compilers/PythonCompiler.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Tango.Protobuf.Compilers
+{
+ /// <summary>
+ /// Represents a protobuf Python Compiler.
+ /// </summary>
+ /// <seealso cref="Tango.Protobuf.ProtoCompiler" />
+ public class PythonCompiler : ProtoCompiler
+ {
+ /// <summary>
+ /// Gets the compiler language.
+ /// </summary>
+ public override CompilerLanguage Language => CompilerLanguage.Python;
+
+ /// <summary>
+ /// Gets the protobuf compiler CLI arguments (without input/output files!).
+ /// </summary>
+ /// <returns></returns>
+ protected override string GetProtoArguments()
+ {
+ return "--python_out";
+ }
+ }
+}