- Slink_bin_0700.zip
- CodeSmithParser.dll
- CR_Slink.dll
- CR_Slink.pdb
- Interop.CodeSmithParser.dll
- README.INSTALL.txt
- Slink.Core.dll
- Slink.Core.pdb
- Slink.exe
- Slink.Generator.dll
- Slink.Generator.pdb
- TaHoGen.Core.dll
- Slink_bin_0701.zip
- CodeSmithParser.dll
- CR_Slink.dll
- CSharpOptParse.dll
- Interop.CodeSmithParser.dll
- README.INSTALL.txt
- Slink.Core.dll
- Slink.exe
- Slink.Generator.dll
- TaHoGen.Core.dll
- Slink_src.zip
- Slink_src
- source
- BinaryRelease
- CleanSources.bat
- Licence.txt
- SharedLibraries
- CodeSmithParser.dll
- CSharpOptParse.dll
- NLog.dll
- Slink.build
- Slink.sln
- Slink.suo
- SourceCode
- CR_Slink
- ProjectInfo.cs
- Slink.Core
- Slink.Generator
- Slink
- TaHoGenv3_Src
- TestWebsite
- TestWebsite2
- TestWebsite.sln
- TestWebsite.suo
- ThirdPartySupportFiles
- CSharpOptParse.zip
- CSharpOptParse-src.zip
- TaHoGen_Sample.zip
- TaHoGen_v3_Bin.zip
- TaHoGenv3_Src.zip
- Tools
- CleanSourcesPlus
- scdl.exe
- scdl_src
|
/***************************************************************************
* -- Copyright Bit Armory Labs 2007
*
* FILE: NamespaceTemplateFactory.cs, 45 code lines, [1.58 KB]
* DATE: 8/26/2007 5:58 PM
* MODIFIED: 8/26/2007 5:59 PM
* PATH: C:\Programming\Projects\Slinks\Slinks.Resources
*
* NAMESPACE: Slinks.Generator
* CLASS: NamespaceTemplateFactory
*
* AUTHOR: Brian Chavez (Cowboy), bchavez@bitarmory.com
*
* Licence
*
* This library, code generator, and source code
* is licensed under the terms and conditions defined in the GNU Public
* License. You are free to use it for non-commercial purposes.
* If you are going to use any part of it in a commercial
* application, contact me and we can work something out.
* You may use the code generated output of Slink and Slink
* as a development tool in both commercial and
* non-commercial applications.
*
* THE SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS", WITHOUT WARRANTY
* OF ANY KIND, EXPRESS OR IMPLIED. IN NO EVENT SHALL THE AUTHOR BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF THIS
* SOFTWARE.
***************************************************************************/
using System;
using TaHoGen.Generators;
using TaHoGen;
namespace Slink.Generator
{
/// <summary>
/// Namespace template factory
/// </summary>
public class NamespaceTemplateFactory
{
/// <summary>
/// Class template type
/// </summary>
private static Type namespaceTemplateType = null;
/// <summary>
/// Create class template factory
/// </summary>
static NamespaceTemplateFactory()
{
NamespaceTemplateFactory.namespaceTemplateType = TemplateFactory.GetTemplateGeneratorType( System.Text.ASCIIEncoding.ASCII.GetString( Properties.Resources.NamespaceTemplate ) );
}
/// <summary>
/// Create class text generator
/// </summary>
public static TextGenerator CreateNamespaceTextGenerator( string folderNamespace, TextGenerator classTextGeneratorsInNamespace )
{
PropertyTable pt = new PropertyTable();
pt["FolderNamespace"] = folderNamespace;
pt["ClassTextGenerators"] = classTextGeneratorsInNamespace;
TextGenerator namespaceTextGenerator = TemplateFactory.CreateTextGenerator( NamespaceTemplateFactory.namespaceTemplateType, pt );
return namespaceTextGenerator;
}
}
}
|
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.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
I'm a .NET developer with a crazy drive to create neat computer stuff.
You can find me coding the night away in my small garage working on various fun projects for my small startup,
Bit Armory, with the hopes of making it big someday, just like the YouTube and MySpace guys did.
You can read my blog here
http://bchavez.bitarmory.com