add example dir structure
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Tue, 27 Jul 2010 06:50:04 +0000 (06:50 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Tue, 27 Jul 2010 06:50:04 +0000 (06:50 +0000)
git-svn-id: https://silmor.de/svn/softmagic/pack/trunk@574 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

examples/clock/README [new file with mode: 0644]
examples/clock/clock.wolf [new file with mode: 0644]
examples/jack/README [new file with mode: 0644]
examples/soapy/README [new file with mode: 0644]

diff --git a/examples/clock/README b/examples/clock/README
new file mode 100644 (file)
index 0000000..beaf80d
--- /dev/null
@@ -0,0 +1,14 @@
+README for clock example
+=========================
+
+This example shows a very simple service using all native interfaces.
+It can only report the date and time of the server.
+
+qtc - Qt based client
+qts - Qt based server
+phpc - PHP based client
+phps - PHP based server
+
+You need Apache or another CGI or SCGI capable web server for the server
+examples.
+Please read the documentation on how to install servers.
\ No newline at end of file
diff --git a/examples/clock/clock.wolf b/examples/clock/clock.wolf
new file mode 100644 (file)
index 0000000..56d4cdb
--- /dev/null
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Wolf>
+       <Doc>This is the WOLF for the clock example</Doc>
+       <!-- generic settings -->
+       <Project baseDir="." wobDir="." name="Clock"/>
+       <Version comm="00" needcomm="00" humanReadable="0.1"/>
+
+       <!-- configure output -->
+       <QtClientOutput sourceDir="qtc" subDir="wob" priInclude="wob.pri" classPrefix="C" clean="yes" transactionBase="WTransaction"/>
+       <PHPServerOutput sourceDir="phps" subDir="wob" extension=".php" clean="yes" transactionBase="WobTransaction"/>
+       <HtmlOutput sourceDir="." subDir="html" clean="yes"/>
+       
+       <!-- class -->
+       <Class name="Time">
+               <Doc>Transport class for clock.</Doc>
+               <Property name="year" type="int"/>
+               <Property name="month" type="int"/>
+               <Property name="day" type="int"/>
+               <Property name="hour" type="int"/>
+               <Property name="minute" type="int"/>
+               <Property name="second" type="int"/>
+               <Property name="dayOfWeek" type="astring"/>
+               <Property name="monthName" type="string"/>
+       </Class>
+       
+       <!-- transaction -->
+       <Transaction name="GetTime" mode="open">
+               <Input>
+               </Input>
+               <Call lang="php" method="Session::login($this);"/>
+               <Output>
+                       <Var name="time" type="Time"/>
+               </Output>
+       </Transaction>
+</Wolf>
\ No newline at end of file
diff --git a/examples/jack/README b/examples/jack/README
new file mode 100644 (file)
index 0000000..9e84f5d
--- /dev/null
@@ -0,0 +1,5 @@
+README for jack
+-----------------
+
+This is a very simple Black-Jack implementation that demonstrates how more
+complex applications work with PACK. It needs a (SQLite) database.
\ No newline at end of file
diff --git a/examples/soapy/README b/examples/soapy/README
new file mode 100644 (file)
index 0000000..a524465
--- /dev/null
@@ -0,0 +1,4 @@
+README for soapy
+------------------
+
+This example demonstrates the SOAP compatibility mode of PACK.
\ No newline at end of file