Click here to Skip to main content
15,880,469 members
Articles / Programming Languages / Visual Basic

Template Based Code Generator

Rate me:
Please Sign up or sign in to vote.
4.66/5 (32 votes)
20 Nov 2007CPOL13 min read 93.1K   4.1K   116  
A template based, command-line oriented .NET code generator
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.IO;
using Arebis.CodeGeneration;
using Arebis.Parsing.MultiContent;

namespace Arebis.CodeGenerator.Templated
{
	public interface ITemplateInfo
	{
		IGenerationHost Host { get; }
		NameValueCollection Settings { get; }
		FileInfo TemplateFileInfo { get; }
		MixedContentFile FileContent { get; }
		IList<NameValueCollection> GetDirectives(string directiveName);
		NameValueCollection GetCodeTemplateDirective();

		string FindFile(string relativeName);
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect AREBIS
Belgium Belgium
Senior Software Architect and independent consultant.

Comments and Discussions