-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathREADME-DEV
47 lines (37 loc) · 1.06 KB
/
README-DEV
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
= Objects =
* classRepresentation/
Python objects matching the Java declarations are stored.
* datatypes/
Python objects matching the datatype (provides the different method, type declaration ...)
* configGiws.py
Specifies default values
* giws
Manages arguments, help and version info
* licenseWrapper.py
Provides the license information for the generated code
* parseXMLEngine.py
Parse the XML
* CXXFile.py
Contains the intelligence about the C++ generation
* JNIFrameWork.py
Contains the intelligence about the JNI code
* outputWriter.py
The file writer
= Steps =
GIWS is working in a few step.
1. Load/Parse the XML file
2. Build in the memory the "tree" of
* Package
* Objects
* Methods
* Parameters
* Return types
* Datatypes
3. Generate the C++ header file
4. Generate the call of Java methods from C++ using JNI
= Design patterns =
The design pattern Factory is used to instantiate the different kind of data
that we are managing.
This object is called : dataFactoryGiws and can be called as :
myFactory=dataFactoryGiws()
myData=myFactory.create("int")