C# Class Bind.GL2.Generator

Inheritance: IBind
Show file Open project: tpb3d/TPB3D Class Usage Examples

Protected Properties

Property Type Description
csTypemap string
delegatesFile string
enumSpec string
enumSpecExt string
enumToDotNet System.Text.RegularExpressions.Regex
enumsFile string
functionOverridesFile string
glSpec string
glSpecExt string
glTypemap string
importsFile string
loadAllFuncName string
numbers char[]
wrappersFile string

Public Methods

Method Description
Generator ( ) : System
Process ( ) : void
ReadCSTypeMap ( StreamReader specFile ) : string>.Dictionary
ReadDelegates ( StreamReader specFile ) : DelegateCollection
ReadEnums ( StreamReader specFile ) : EnumCollection
ReadTypeMap ( StreamReader specFile ) : string>.Dictionary
WriteBindings ( DelegateCollection delegates, FunctionCollection functions, EnumCollection enums ) : void
WriteDelegates ( BindStreamWriter sw, DelegateCollection delegates ) : void
WriteEnums ( BindStreamWriter sw, EnumCollection enums ) : void
WriteImports ( BindStreamWriter sw, DelegateCollection delegates ) : void
WriteLicense ( BindStreamWriter sw ) : void
WriteTypes ( BindStreamWriter sw, string>.Dictionary CSTypes ) : void
WriteWrappers ( BindStreamWriter sw, FunctionCollection wrappers, string>.Dictionary CSTypes ) : void

Protected Methods

Method Description
Translate ( ) : void

Private Methods

Method Description
NextValidLine ( StreamReader sr ) : string
WriteDocumentation ( BindStreamWriter sw, Function f ) : void
WriteMethod ( BindStreamWriter sw, Function f ) : void
WriteWrapper ( BindStreamWriter sw, int current, Function f ) : int

Method Details

Generator() public method

public Generator ( ) : System
return System

Process() public method

public Process ( ) : void
return void

ReadCSTypeMap() public method

public ReadCSTypeMap ( StreamReader specFile ) : string>.Dictionary
specFile System.IO.StreamReader
return string>.Dictionary

ReadDelegates() public method

public ReadDelegates ( StreamReader specFile ) : DelegateCollection
specFile System.IO.StreamReader
return DelegateCollection

ReadEnums() public method

public ReadEnums ( StreamReader specFile ) : EnumCollection
specFile System.IO.StreamReader
return EnumCollection

ReadTypeMap() public method

public ReadTypeMap ( StreamReader specFile ) : string>.Dictionary
specFile System.IO.StreamReader
return string>.Dictionary

Translate() protected method

protected Translate ( ) : void
return void

WriteBindings() public method

public WriteBindings ( DelegateCollection delegates, FunctionCollection functions, EnumCollection enums ) : void
delegates DelegateCollection
functions FunctionCollection
enums EnumCollection
return void

WriteDelegates() public method

public WriteDelegates ( BindStreamWriter sw, DelegateCollection delegates ) : void
sw BindStreamWriter
delegates DelegateCollection
return void

WriteEnums() public method

public WriteEnums ( BindStreamWriter sw, EnumCollection enums ) : void
sw BindStreamWriter
enums EnumCollection
return void

WriteImports() public method

public WriteImports ( BindStreamWriter sw, DelegateCollection delegates ) : void
sw BindStreamWriter
delegates DelegateCollection
return void

WriteLicense() public method

public WriteLicense ( BindStreamWriter sw ) : void
sw BindStreamWriter
return void

WriteTypes() public method

public WriteTypes ( BindStreamWriter sw, string>.Dictionary CSTypes ) : void
sw BindStreamWriter
CSTypes string>.Dictionary
return void

WriteWrappers() public method

public WriteWrappers ( BindStreamWriter sw, FunctionCollection wrappers, string>.Dictionary CSTypes ) : void
sw BindStreamWriter
wrappers FunctionCollection
CSTypes string>.Dictionary
return void

Property Details

csTypemap protected static property

protected static string csTypemap
return string

delegatesFile protected static property

protected static string delegatesFile
return string

enumSpec protected static property

protected static string enumSpec
return string

enumSpecExt protected static property

protected static string enumSpecExt
return string

enumToDotNet protected static property

protected static Regex,System.Text.RegularExpressions enumToDotNet
return System.Text.RegularExpressions.Regex

enumsFile protected static property

protected static string enumsFile
return string

functionOverridesFile protected static property

protected static string functionOverridesFile
return string

glSpec protected static property

protected static string glSpec
return string

glSpecExt protected static property

protected static string glSpecExt
return string

glTypemap protected static property

protected static string glTypemap
return string

importsFile protected static property

protected static string importsFile
return string

loadAllFuncName protected static property

protected static string loadAllFuncName
return string

numbers protected static property

protected static char[] numbers
return char[]

wrappersFile protected static property

protected static string wrappersFile
return string