C# Class Zetbox.Generator.AbstractBaseGenerator

Afficher le fichier Open project: daszat/zetbox Class Usage Examples

Méthodes publiques

Méthode Description
Generate ( Zetbox ctx, string basePath, Compiler compiler ) : void

Méthodes protégées

Méthode Description
AbstractBaseGenerator ( IEnumerable schemaProviders ) : System
DeleteOldFiles ( ) : void
Generate_AssemblyInfo ( IZetboxContext ctx ) : string
Generate_CollectionEntries ( IZetboxContext ctx ) : string
Generate_CompoundObject ( IZetboxContext ctx, CompoundObject s ) : string
Generate_Enumeration ( IZetboxContext ctx, Enumeration e ) : string
Generate_Interface ( IZetboxContext ctx, Interface i ) : string
Generate_ObjectClass ( IZetboxContext ctx, ObjectClass objClass ) : string
Generate_Objects ( Zetbox ctx ) : List
Generate_Other ( IZetboxContext ctx ) : IEnumerable
Generate_ProjectFile ( IZetboxContext ctx, string projectGuid, List generatedFileNames, IEnumerable schemaProviders ) : string
InitCodeBasePath ( string basePath ) : void
RunTemplate ( IZetboxContext ctx, string templateName, string filename ) : string
RunTemplateWithExtension ( IZetboxContext ctx, string templateName, string targetFolder, string baseFilename, string extension ) : string
SaveKeyFile ( ) : void
Unidecode ( string filename ) : string

converts the string to ascii using transliteration. uses the _transliterationTable and a nice hack to reduce utf-8 to ASCII. probably works only with western characters.

See http://stackoverflow.com/questions/2173825/slugify-and-character-transliteration-in-c/2173922#2173922

Method Details

AbstractBaseGenerator() protected méthode

protected AbstractBaseGenerator ( IEnumerable schemaProviders ) : System
schemaProviders IEnumerable
Résultat System

DeleteOldFiles() protected méthode

protected DeleteOldFiles ( ) : void
Résultat void

Generate() public méthode

public Generate ( Zetbox ctx, string basePath, Compiler compiler ) : void
ctx Zetbox
basePath string
compiler Compiler
Résultat void

Generate_AssemblyInfo() protected méthode

protected Generate_AssemblyInfo ( IZetboxContext ctx ) : string
ctx IZetboxContext
Résultat string

Generate_CollectionEntries() protected méthode

protected Generate_CollectionEntries ( IZetboxContext ctx ) : string
ctx IZetboxContext
Résultat string

Generate_CompoundObject() protected méthode

protected Generate_CompoundObject ( IZetboxContext ctx, CompoundObject s ) : string
ctx IZetboxContext
s CompoundObject
Résultat string

Generate_Enumeration() protected méthode

protected Generate_Enumeration ( IZetboxContext ctx, Enumeration e ) : string
ctx IZetboxContext
e Enumeration
Résultat string

Generate_Interface() protected méthode

protected Generate_Interface ( IZetboxContext ctx, Interface i ) : string
ctx IZetboxContext
i Interface
Résultat string

Generate_ObjectClass() protected méthode

protected Generate_ObjectClass ( IZetboxContext ctx, ObjectClass objClass ) : string
ctx IZetboxContext
objClass ObjectClass
Résultat string

Generate_Objects() protected méthode

protected Generate_Objects ( Zetbox ctx ) : List
ctx Zetbox
Résultat List

Generate_Other() protected méthode

protected Generate_Other ( IZetboxContext ctx ) : IEnumerable
ctx IZetboxContext
Résultat IEnumerable

Generate_ProjectFile() protected méthode

protected Generate_ProjectFile ( IZetboxContext ctx, string projectGuid, List generatedFileNames, IEnumerable schemaProviders ) : string
ctx IZetboxContext
projectGuid string
generatedFileNames List
schemaProviders IEnumerable
Résultat string

InitCodeBasePath() protected méthode

protected InitCodeBasePath ( string basePath ) : void
basePath string
Résultat void

RunTemplate() protected méthode

protected RunTemplate ( IZetboxContext ctx, string templateName, string filename ) : string
ctx IZetboxContext
templateName string
filename string
Résultat string

RunTemplateWithExtension() protected méthode

protected RunTemplateWithExtension ( IZetboxContext ctx, string templateName, string targetFolder, string baseFilename, string extension ) : string
ctx IZetboxContext
templateName string
targetFolder string
baseFilename string
extension string
Résultat string

SaveKeyFile() protected méthode

protected SaveKeyFile ( ) : void
Résultat void

Unidecode() protected static méthode

converts the string to ascii using transliteration. uses the _transliterationTable and a nice hack to reduce utf-8 to ASCII. probably works only with western characters.
See http://stackoverflow.com/questions/2173825/slugify-and-character-transliteration-in-c/2173922#2173922
protected static Unidecode ( string filename ) : string
filename string
Résultat string