summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-03-08 22:40:41 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-03-08 22:41:03 +0000
commita8699eadd99c7d540512b6a31894b6925d4a2218 (patch)
tree2453d1679373a59dcc43b52bdff10969d67724f8 /service
parentAdd endpoint for listing services (diff)
downloadmirrorsearch-a8699eadd99c7d540512b6a31894b6925d4a2218.tar.bz2
mirrorsearch-a8699eadd99c7d540512b6a31894b6925d4a2218.tar.xz
mirrorsearch-a8699eadd99c7d540512b6a31894b6925d4a2218.zip
Enable ice_print on XmlError
Diffstat (limited to 'service')
-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;
+ }
+}
+