IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Lib.RuntimeCompiler Class Reference
+ Collaboration diagram for IG.Lib.RuntimeCompiler:

Public Member Functions

string GetExecutableDirectory ()
 Returns the directory containing the executable that started the current application. More...
 
byte[] LoadFile (string filePath)
 Copies the specified file to byte array and returns it. More...
 
void Compile ()
 

Protected Member Functions

void GenerateNewLibraryName ()
 Generates a new library file name. More...
 

Protected Attributes

string _code = null
 
string _runnableNamespace = "IG.Lib"
 
string _runnableClass = "TestClass"
 
string _runnableInterface = "IG.Lib.IRunnableOld"
 
string _runnableFunction = "Run"
 
string _libraryOriginalName = "TestClass"
 
int _idLibraryName = 0
 
string _libraryFileName = "TestClass.dll"
 
bool _readyToRun = false
 

Properties

Logger Logger [get]
 
virtual string CodeBase [get]
 Gets code base (a template code for compiling) where names of classes, methods etc. are properly set. More...
 
string Code [get, set]
 Gets or sets code to be compiled. Get: If not assigned explicitly then CodeBase is taken. More...
 
string RunnableNamespace [get, protected set]
 
string RunnableInterface [get, protected set]
 
string RunnableClass [get, protected set]
 
string RunnableFullClass [get]
 
string RunnableFunction [get, protected set]
 
virtual string LibraryDirectory [get]
 Returns directory where library will be compiled, which will be the directory of the executable that started the application. More...
 
virtual string LibraryPath [get]
 Path to the dll where code is compiled. We take the directory where executable is located. More...
 
virtual bool ReadyToRun [get, set]
 Wheather the compiled class' method is ready to run. More...
 

Private Attributes

Logger _logger = new Logger()
 
string _executableDirectory = null
 

Member Function Documentation

void IG.Lib.RuntimeCompiler.GenerateNewLibraryName ( )
inlineprotected

Generates a new library file name.

string IG.Lib.RuntimeCompiler.GetExecutableDirectory ( )
inline

Returns the directory containing the executable that started the current application.

byte [] IG.Lib.RuntimeCompiler.LoadFile ( string  filePath)
inline

Copies the specified file to byte array and returns it.

TODO: move this to utils or something like that!

Referenced by IG.Forms.CompilerForm.btnExecute_Click().

void IG.Lib.RuntimeCompiler.Compile ( )
inline

Member Data Documentation

Logger IG.Lib.RuntimeCompiler._logger = new Logger()
private
string IG.Lib.RuntimeCompiler._code = null
protected
string IG.Lib.RuntimeCompiler._runnableNamespace = "IG.Lib"
protected
string IG.Lib.RuntimeCompiler._runnableClass = "TestClass"
protected
string IG.Lib.RuntimeCompiler._runnableInterface = "IG.Lib.IRunnableOld"
protected
string IG.Lib.RuntimeCompiler._runnableFunction = "Run"
protected
string IG.Lib.RuntimeCompiler._libraryOriginalName = "TestClass"
protected
int IG.Lib.RuntimeCompiler._idLibraryName = 0
protected
string IG.Lib.RuntimeCompiler._libraryFileName = "TestClass.dll"
protected
string IG.Lib.RuntimeCompiler._executableDirectory = null
private
bool IG.Lib.RuntimeCompiler._readyToRun = false
protected

Property Documentation

Logger IG.Lib.RuntimeCompiler.Logger
get
virtual string IG.Lib.RuntimeCompiler.CodeBase
get

Gets code base (a template code for compiling) where names of classes, methods etc. are properly set.

Referenced by IG.Forms.CompilerForm.btnLoad_Click().

string IG.Lib.RuntimeCompiler.Code
getset

Gets or sets code to be compiled. Get: If not assigned explicitly then CodeBase is taken.

Referenced by IG.Forms.CompilerForm.btnCompile_Click().

string IG.Lib.RuntimeCompiler.RunnableNamespace
getprotected set
string IG.Lib.RuntimeCompiler.RunnableInterface
getprotected set
string IG.Lib.RuntimeCompiler.RunnableClass
getprotected set
string IG.Lib.RuntimeCompiler.RunnableFullClass
get
string IG.Lib.RuntimeCompiler.RunnableFunction
getprotected set
virtual string IG.Lib.RuntimeCompiler.LibraryDirectory
get

Returns directory where library will be compiled, which will be the directory of the executable that started the application.

virtual string IG.Lib.RuntimeCompiler.LibraryPath
get

Path to the dll where code is compiled. We take the directory where executable is located.

Referenced by IG.Forms.CompilerForm.btnExecute_Click().

virtual bool IG.Lib.RuntimeCompiler.ReadyToRun
getset

Wheather the compiled class' method is ready to run.

Referenced by IG.Forms.CompilerForm.btnCompile_Click(), and IG.Forms.CompilerForm.CheckReadyToRun().


The documentation for this class was generated from the following file: