summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/Jamfile.jam6
-rw-r--r--service/api.ice1
-rw-r--r--service/ex.cpp10
3 files changed, 16 insertions, 1 deletions
diff --git a/service/Jamfile.jam b/service/Jamfile.jam
index 7c0026c..6ed5c7d 100644
--- a/service/Jamfile.jam
+++ b/service/Jamfile.jam
@@ -22,6 +22,7 @@ lib mirrorsearch-domain :
lib mirrorsearch-api :
api.ice
+ ex.cpp
:
<slicer>yes
<library>..//Ice
@@ -36,7 +37,10 @@ lib mirrorsearch-api :
;
lib mirrorsearch-service :
- [ glob *.cpp sql/*.sql : test.cpp ]
+ [ glob sql/*.sql ]
+ apiImpl.cpp
+ main.cpp
+ uptr.cpp
:
<library>mirrorsearch-domain
<library>mirrorsearch-api
diff --git a/service/api.ice b/service/api.ice
index 64edfe7..994fa28 100644
--- a/service/api.ice
+++ b/service/api.ice
@@ -4,6 +4,7 @@
#include <models.ice>
module MirrorSearch {
+ ["cpp:ice_print"]
exception XmlError {
string msg;
};
diff --git a/service/ex.cpp b/service/ex.cpp
new file mode 100644
index 0000000..ec32416
--- /dev/null
+++ b/service/ex.cpp
@@ -0,0 +1,10 @@
+#include "api.h"
+
+namespace MirrorSearch {
+ void
+ XmlError::ice_print(std::ostream&s) const
+ {
+ s << msg;
+ }
+}
+