forked from open-dis/xmlpg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.html
55 lines (55 loc) · 2.3 KB
/
README.html
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
48
49
50
51
52
53
54
55
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>README.html</title>
</head>
<body>
README<br>
<br>
XML Multi-Language Protocol Generator (XMLPG) is described <a
href="XMLPG.html">here</a><a href="XMLPG.html">.</a><br>
<br>
XMLPG generates Java and C++ language protocol implementations from an
abstract description of the protocol in XML. This release includes an
example partial implementation of the Distributed Interactive
Simulation (DIS) protocol.<br>
<br>
Making use of XMLPG is typically a multi-step process. First of all,
you need to write an XML file that describes the protocol. An example
of this XML file is in the DIS directory, in the file DIS.xml. This
file is used as input to the XMLPG program, which uses it to generate
Java and C++ language implementations of the protocol. These language
files need to be compiled themselves to generate a usable protocol.<br>
<br>
<span style="font-weight: bold;">Compiling</span><br>
<br>
The XMLPG system uses the Ant make system, available from <a
href="http://ant.apache.org/">Apache.org</a>. The file build.xml
contains several targets for both compiling the basic XMLPG system and
compiling the source code that is generated by XMLPG. From the command
line, and assuming that the ant executable is on the path, you can
cause the targets to execute by typing <span
style="font-family: Courier New,Courier,monospace;">ant
<targetName></span>. A list of some of the targets is below:<br>
<br>
<ul>
<li>compile: Compiles the XMLPG program itself</li>
<li>run: Runs the XMLPG program with an input XML file and the path
to two directories where the Java and C++ source code will be placed.
Generates Java and C++ source code that implements the protocol defined
in the XML file. The input file used in the build.xml file is the
DIS.xml file, which describes the DIS protocol.<br>
</li>
<li>dist: default task, does most operations.<br>
</li>
</ul>
Once the code is generated you should cd to the DIS directory, where a
separate build file is responsible for compiling the generated code.<br>
<span style="font-weight: bold;">License</span><br>
<br>
XMLPG is released under the BSD license. See <a href="License.html">License.html
</a>for details. <br>
</body>
</html>