From a8699eadd99c7d540512b6a31894b6925d4a2218 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 8 Mar 2018 22:40:41 +0000 Subject: Enable ice_print on XmlError --- service/Jamfile.jam | 6 +++++- service/api.ice | 1 + service/ex.cpp | 10 ++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 service/ex.cpp (limited to 'service') 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 : yes ..//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 : mirrorsearch-domain 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 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; + } +} + -- cgit v1.2.3