From c5bb832c1880d0a0d55c3ba11cf97cc6dff6a78d Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 30 Oct 2017 17:57:06 +0200 Subject: Protobuf Compiler API first draft. Added compiled protobuf & protobuf-c repositories. --- Software/Tango.NET/Tango.Protobuf/ProtoCompiler.cs | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Software/Tango.NET/Tango.Protobuf/ProtoCompiler.cs (limited to 'Software/Tango.NET/Tango.Protobuf/ProtoCompiler.cs') diff --git a/Software/Tango.NET/Tango.Protobuf/ProtoCompiler.cs b/Software/Tango.NET/Tango.Protobuf/ProtoCompiler.cs new file mode 100644 index 000000000..0095046ce --- /dev/null +++ b/Software/Tango.NET/Tango.Protobuf/ProtoCompiler.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Protobuf +{ + public abstract class ProtoCompiler : IProtoCompiler + { + public List Compile(string inputFile, string outputFolder) + { + throw new NotImplementedException(); + } + + #region IDisposable Support + private bool disposedValue = false; // To detect redundant calls + + protected virtual void Dispose(bool disposing) + { + if (!disposedValue) + { + if (disposing) + { + // TODO: dispose managed state (managed objects). + } + + // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below. + // TODO: set large fields to null. + + disposedValue = true; + } + } + + // TODO: override a finalizer only if Dispose(bool disposing) above has code to free unmanaged resources. + // ~ProtoCompiler() { + // // Do not change this code. Put cleanup code in Dispose(bool disposing) above. + // Dispose(false); + // } + + // This code added to correctly implement the disposable pattern. + public void Dispose() + { + // Do not change this code. Put cleanup code in Dispose(bool disposing) above. + Dispose(true); + // TODO: uncomment the following line if the finalizer is overridden above. + // GC.SuppressFinalize(this); + } + #endregion + } +} -- cgit v1.3.1