diff options
| author | manuel <manuel@nc8430.lan> | 2009-10-31 16:11:26 +0100 |
|---|---|---|
| committer | manuel <manuel@nc8430.lan> | 2009-10-31 16:11:26 +0100 |
| commit | 1d8445b8461f558987067d870f0f11cdc84b4f35 (patch) | |
| tree | 146d7d02dddf1a403392ac4b86c19bca4a3c6f75 /task1 | |
| download | selinux-1d8445b8461f558987067d870f0f11cdc84b4f35.tar.gz selinux-1d8445b8461f558987067d870f0f11cdc84b4f35.tar.bz2 selinux-1d8445b8461f558987067d870f0f11cdc84b4f35.zip | |
pushing task1 to repo
Diffstat (limited to 'task1')
| -rw-r--r-- | task1/Makefile.man | 55 | ||||
| -rw-r--r-- | task1/cairodocument.cpp | 124 | ||||
| -rw-r--r-- | task1/cairodocument.h | 459 | ||||
| -rw-r--r-- | task1/certs/rootca.pem | 28 | ||||
| -rw-r--r-- | task1/cli.cpp | 29 | ||||
| -rw-r--r-- | task1/ehr.cpp | 6836 | ||||
| -rw-r--r-- | task1/ehr.h | 4594 | ||||
| -rw-r--r-- | task1/ehr.ice | 302 | ||||
| -rw-r--r-- | task1/ehrclient.cpp | 496 | ||||
| -rw-r--r-- | task1/ehrclient.h | 164 | ||||
| -rw-r--r-- | task1/getoptwrapper.cpp | 191 | ||||
| -rw-r--r-- | task1/getoptwrapper.h | 231 | ||||
| -rw-r--r-- | task1/security.cpp | 330 | ||||
| -rw-r--r-- | task1/security.h | 119 | ||||
| -rw-r--r-- | task1/utils.h | 53 |
15 files changed, 14011 insertions, 0 deletions
diff --git a/task1/Makefile.man b/task1/Makefile.man new file mode 100644 index 0000000..1963667 --- /dev/null +++ b/task1/Makefile.man | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | # Makefile for ehr_cli | ||
| 2 | # Author: Manuel Mausz (0728348) | ||
| 3 | |||
| 4 | # get ICE home | ||
| 5 | ICE_HOME= /usr | ||
| 6 | ifneq "$(wildcard /opt/Ice-3.3)" "" | ||
| 7 | ICE_HOME= /opt/Ice-3.3 | ||
| 8 | endif | ||
| 9 | ifneq "$(wildcard /opt/Ice-3.2)" "" | ||
| 10 | ICE_HOME= /opt/Ice-3.2 | ||
| 11 | endif | ||
| 12 | ARCH= $(shell uname -m | grep "_64" >/dev/null && echo "64") | ||
| 13 | ICE_LIB= $(ICE_HOME)/lib$(ARCH) | ||
| 14 | ICE_INC= $(ICE_HOME)/include | ||
| 15 | ICE_BIN= $(ICE_HOME)/bin | ||
| 16 | |||
| 17 | # get cairomm | ||
| 18 | CAIROMM_LIBS= `pkg-config --libs "cairomm-1.0"` | ||
| 19 | CAIROMM_CFLAGS= `pkg-config --cflags "cairomm-1.0"` | ||
| 20 | |||
| 21 | CC= g++ | ||
| 22 | LD= $(CC) | ||
| 23 | DEBUGFLAGS= -DNDEBUG | ||
| 24 | CFLAGS= -O -Wall $(DEBUGFLAGS) -I. -I$(ICE_INC) $(CAIROMM_CFLAGS) | ||
| 25 | LDFLAGS= -L$(ICE_LIB) -lIce -lIceUtil -lcrypto $(CAIROMM_LIBS) | ||
| 26 | |||
| 27 | BIN= ehr_cli | ||
| 28 | OBJS= cairodocument.o getoptwrapper.o ehr.o security.o ehrclient.o cli.o | ||
| 29 | HEADERS= getoptwrapper.h ehr.ice security.h cairodocument.h ehrclient.h utils.h | ||
| 30 | |||
| 31 | PATH:= $(ICE_BIN):${PATH} | ||
| 32 | SLICE2CPP= LD_LIBRARY_PATH=$(ICE_LIB):${LD_LIBRARY_PATH} \ | ||
| 33 | slice2cpp --header-ext h --source-ext cpp | ||
| 34 | |||
| 35 | all: $(BIN) | ||
| 36 | |||
| 37 | ehr.cpp ehr.h: ehr.ice | ||
| 38 | $(SLICE2CPP) --stream ehr.ice | ||
| 39 | |||
| 40 | $(OBJS): %.o: %.cpp $(HEADERS) | ||
| 41 | $(CC) $(CFLAGS) -c $< -o $@ | ||
| 42 | |||
| 43 | $(BIN): $(OBJS) | ||
| 44 | $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) | ||
| 45 | |||
| 46 | debug: | ||
| 47 | @$(MAKE) -f Makefile.man all "DEBUGFLAGS=-DDEBUG -g" | ||
| 48 | |||
| 49 | clean: | ||
| 50 | rm -f $(OBJS) $(BIN) | ||
| 51 | rm -f ehr.cpp ehr.h | ||
| 52 | |||
| 53 | .PHONY: clean | ||
| 54 | |||
| 55 | # vim600: noet sw=8 ts=8 | ||
diff --git a/task1/cairodocument.cpp b/task1/cairodocument.cpp new file mode 100644 index 0000000..fb9b20e --- /dev/null +++ b/task1/cairodocument.cpp | |||
| @@ -0,0 +1,124 @@ | |||
| 1 | /** | ||
| 2 | * $Id: cairodocument.cpp 2 2009-10-31 02:48:23Z l0728348 $ | ||
| 3 | * | ||
| 4 | * Copyright 2009 | ||
| 5 | * | ||
| 6 | * @author Manuel Mausz (0728348) | ||
| 7 | * @brief implements some classes to better use cairomm. | ||
| 8 | * however, the design is however crappy. | ||
| 9 | * maybe try using papyrus. | ||
| 10 | */ | ||
| 11 | |||
| 12 | #include "cairodocument.h" | ||
| 13 | |||
| 14 | using namespace std; | ||
| 15 | using namespace Cairo; | ||
| 16 | |||
| 17 | static const double mmpt = 25.4/72; | ||
| 18 | |||
| 19 | void CairoObject::apply(const Cairo::RefPtr<Cairo::Context> context) | ||
| 20 | { | ||
| 21 | if (m_objects.size()) | ||
| 22 | context->save(); | ||
| 23 | prepareObject(context); | ||
| 24 | for(CairoObjectList::iterator it = m_objects.begin(); it != m_objects.end(); ++it) | ||
| 25 | (*it)->apply(context); | ||
| 26 | applyObject(context); | ||
| 27 | if (m_objects.size()) | ||
| 28 | context->restore(); | ||
| 29 | } | ||
| 30 | |||
| 31 | /*----------------------------------------------------------------------------*/ | ||
| 32 | |||
| 33 | void CairoFont::applyObject(const Cairo::RefPtr<Cairo::Context> context) | ||
| 34 | { | ||
| 35 | context->set_font_size(m_size); | ||
| 36 | context->select_font_face(m_family, m_slant, m_weight); | ||
| 37 | } | ||
| 38 | /*----------------------------------------------------------------------------*/ | ||
| 39 | |||
| 40 | double CairoFont::height() | ||
| 41 | { | ||
| 42 | if (m_height >= 0) | ||
| 43 | return m_height; | ||
| 44 | Cairo::RefPtr<Cairo::Surface> surface = Cairo::ImageSurface::create(FORMAT_RGB24, 1, 1); | ||
| 45 | Cairo::RefPtr<Cairo::Context> context = Cairo::Context::create(surface); | ||
| 46 | Cairo::FontExtents fextents; | ||
| 47 | applyObject(context); | ||
| 48 | context->get_font_extents(fextents); | ||
| 49 | m_height = fextents.height * mmpt; | ||
| 50 | return m_height; | ||
| 51 | } | ||
| 52 | |||
| 53 | /*----------------------------------------------------------------------------*/ | ||
| 54 | |||
| 55 | void CairoColor::applyObject(const Cairo::RefPtr<Cairo::Context> context) | ||
| 56 | { | ||
| 57 | context->set_source_rgba(m_red, m_green, m_blue, m_alpha); | ||
| 58 | } | ||
| 59 | |||
| 60 | /*----------------------------------------------------------------------------*/ | ||
| 61 | |||
| 62 | void CairoRectangle::applyObject(const Cairo::RefPtr<Cairo::Context> context) | ||
| 63 | { | ||
| 64 | context->set_line_width(m_linewidth / mmpt); | ||
| 65 | context->rectangle(m_x / mmpt, m_y / mmpt, m_width / mmpt, m_height / mmpt); | ||
| 66 | context->stroke(); | ||
| 67 | } | ||
| 68 | |||
| 69 | /*----------------------------------------------------------------------------*/ | ||
| 70 | |||
| 71 | CairoTextBox& CairoTextBox::addBorder(const double linewidth, CairoObject *obj) | ||
| 72 | { | ||
| 73 | CairoRectangle *rectangle = new CairoRectangle(m_x, m_y, m_width, m_height, linewidth); | ||
| 74 | m_rectangles.push_back(rectangle); | ||
| 75 | if (obj != NULL) | ||
| 76 | rectangle->add(*obj); | ||
| 77 | add(*rectangle); | ||
| 78 | return *this; | ||
| 79 | } | ||
| 80 | |||
| 81 | /*----------------------------------------------------------------------------*/ | ||
| 82 | |||
| 83 | void CairoTextBox::applyObject(const Cairo::RefPtr<Cairo::Context> context) | ||
| 84 | { | ||
| 85 | Cairo::FontExtents fextents; | ||
| 86 | context->get_font_extents(fextents); | ||
| 87 | size_t cut; | ||
| 88 | int x = 1; | ||
| 89 | string text = m_text.str(); | ||
| 90 | while((cut = text.find_first_of('\n')) != string::npos) | ||
| 91 | { | ||
| 92 | context->move_to(m_x / mmpt, (m_y + m_padding) / mmpt + x * fextents.height); | ||
| 93 | context->show_text(text.substr(0, cut)); | ||
| 94 | text = text.substr(cut + 1); | ||
| 95 | ++x; | ||
| 96 | } | ||
| 97 | context->move_to(m_x / mmpt, (m_y + m_padding) / mmpt + x * fextents.height); | ||
| 98 | context->show_text(text); | ||
| 99 | } | ||
| 100 | |||
| 101 | /*----------------------------------------------------------------------------*/ | ||
| 102 | |||
| 103 | bool CairoDocument::save(const std::string& filename, const OutputFormat format) | ||
| 104 | { | ||
| 105 | Cairo::RefPtr<Cairo::Surface> surface; | ||
| 106 | switch(format) | ||
| 107 | { | ||
| 108 | #ifdef CAIRO_HAS_PDF_SURFACE | ||
| 109 | case PDF: | ||
| 110 | surface = PdfSurface::create(filename, m_width / mmpt, m_height / mmpt); | ||
| 111 | break; | ||
| 112 | #endif | ||
| 113 | default: | ||
| 114 | return false; | ||
| 115 | } | ||
| 116 | |||
| 117 | Cairo::RefPtr<Cairo::Context> context = Cairo::Context::create(surface); | ||
| 118 | apply(context); | ||
| 119 | surface->finish(); | ||
| 120 | |||
| 121 | return true; | ||
| 122 | } | ||
| 123 | |||
| 124 | /* vim: set et sw=2 ts=2: */ | ||
diff --git a/task1/cairodocument.h b/task1/cairodocument.h new file mode 100644 index 0000000..7769c7e --- /dev/null +++ b/task1/cairodocument.h | |||
| @@ -0,0 +1,459 @@ | |||
| 1 | /** | ||
| 2 | * $Id: cairodocument.h 2 2009-10-31 02:48:23Z l0728348 $ | ||
| 3 | * | ||
| 4 | * Copyright 2009 | ||
| 5 | * | ||
| 6 | * @author Manuel Mausz (0728348) | ||
| 7 | * @brief implements some classes to better use cairomm. | ||
| 8 | * however, the design is however crappy. | ||
| 9 | * maybe try using papyrus. | ||
| 10 | */ | ||
| 11 | |||
| 12 | #ifndef CAIRODOCUMENT_H | ||
| 13 | #define CAIRODOCUMENT_H | ||
| 14 | |||
| 15 | #include <string> | ||
| 16 | #include <sstream> | ||
| 17 | #include <list> | ||
| 18 | #include <cairomm/cairomm.h> | ||
| 19 | |||
| 20 | /* forward declerations */ | ||
| 21 | class CairoObject; | ||
| 22 | class CairoFont; | ||
| 23 | class CairoColor; | ||
| 24 | class CairoRectangle; | ||
| 25 | class CairoTextBox; | ||
| 26 | class CairoDocument; | ||
| 27 | |||
| 28 | /** | ||
| 29 | * abstract class for all classes of this file | ||
| 30 | * design: every object can contain other objects, which will | ||
| 31 | * get applied before applying the actual object | ||
| 32 | */ | ||
| 33 | class CairoObject | ||
| 34 | { | ||
| 35 | public: | ||
| 36 | /** objectlist to contain */ | ||
| 37 | typedef std::list<CairoObject *> CairoObjectList; | ||
| 38 | |||
| 39 | /** | ||
| 40 | * @brief Default dtor. virtual | ||
| 41 | */ | ||
| 42 | virtual ~CairoObject() | ||
| 43 | {} | ||
| 44 | |||
| 45 | /** | ||
| 46 | * @brief adds another CairoObject to this CairoObject | ||
| 47 | * @param obj reference to the CairoObject to add | ||
| 48 | * @return reference to this object | ||
| 49 | */ | ||
| 50 | CairoObject& add(CairoObject& obj) | ||
| 51 | { | ||
| 52 | if (&obj != this) | ||
| 53 | m_objects.push_back(&obj); | ||
| 54 | return *this; | ||
| 55 | } | ||
| 56 | |||
| 57 | /** | ||
| 58 | * @brief adds another CairoObject to this CairoObject | ||
| 59 | * @param obj reference to the CairoObject to add | ||
| 60 | * @return reference to this object | ||
| 61 | */ | ||
| 62 | CairoObject& operator()(CairoObject& obj) | ||
| 63 | { | ||
| 64 | return add(obj); | ||
| 65 | } | ||
| 66 | |||
| 67 | /** | ||
| 68 | * @brief applys this CairoObject to the current context | ||
| 69 | * all containing objects will be applied before | ||
| 70 | * @param context cairomm context | ||
| 71 | */ | ||
| 72 | void apply(const Cairo::RefPtr<Cairo::Context> context); | ||
| 73 | |||
| 74 | /** | ||
| 75 | * @brief prepares this object for applying | ||
| 76 | * will be called be applyObject() | ||
| 77 | * @param context cairomm context | ||
| 78 | */ | ||
| 79 | virtual void prepareObject(const Cairo::RefPtr<Cairo::Context> context) | ||
| 80 | {} | ||
| 81 | |||
| 82 | /** | ||
| 83 | * @brief applies this object to the current context | ||
| 84 | * @param context cairomm context | ||
| 85 | */ | ||
| 86 | virtual void applyObject(const Cairo::RefPtr<Cairo::Context> context) = 0; | ||
| 87 | |||
| 88 | protected: | ||
| 89 | /** list of cairoobjects in this cairoobject */ | ||
| 90 | CairoObjectList m_objects; | ||
| 91 | }; | ||
| 92 | |||
| 93 | /*----------------------------------------------------------------------------*/ | ||
| 94 | |||
| 95 | /** | ||
| 96 | * represents a font in cairomm | ||
| 97 | */ | ||
| 98 | class CairoFont | ||
| 99 | : public CairoObject | ||
| 100 | { | ||
| 101 | public: | ||
| 102 | /** | ||
| 103 | * @brief Default dtor | ||
| 104 | * @param size fontsize | ||
| 105 | * @param family fontfamily | ||
| 106 | * @param slant type of slant | ||
| 107 | * @param weight font weight | ||
| 108 | */ | ||
| 109 | CairoFont(const double size, const std::string& family, Cairo::FontSlant slant = Cairo::FONT_SLANT_NORMAL, | ||
| 110 | Cairo::FontWeight weight = Cairo::FONT_WEIGHT_NORMAL) | ||
| 111 | : m_size(size), m_family(family), m_slant(slant), m_weight(weight), m_height(-1) | ||
| 112 | {} | ||
| 113 | |||
| 114 | /** | ||
| 115 | * Default dtor | ||
| 116 | */ | ||
| 117 | ~CairoFont() | ||
| 118 | {} | ||
| 119 | |||
| 120 | /** | ||
| 121 | * @brief get height of current object | ||
| 122 | * @return height of current object | ||
| 123 | */ | ||
| 124 | double height(); | ||
| 125 | |||
| 126 | /** | ||
| 127 | * @brief applies this object to the current context | ||
| 128 | * @param context cairomm context | ||
| 129 | */ | ||
| 130 | void applyObject(const Cairo::RefPtr<Cairo::Context> context); | ||
| 131 | |||
| 132 | private: | ||
| 133 | double m_size; | ||
| 134 | std::string m_family; | ||
| 135 | Cairo::FontSlant m_slant; | ||
| 136 | Cairo::FontWeight m_weight; | ||
| 137 | double m_height; | ||
| 138 | }; | ||
| 139 | |||
| 140 | /*----------------------------------------------------------------------------*/ | ||
| 141 | |||
| 142 | /** | ||
| 143 | * represents a color in cairomm | ||
| 144 | */ | ||
| 145 | class CairoColor | ||
| 146 | : public CairoObject | ||
| 147 | { | ||
| 148 | public: | ||
| 149 | /** | ||
| 150 | * @brief Default dtor | ||
| 151 | * @param red value for red part (0 to 1) | ||
| 152 | * @param green value for green part (0 to 1) | ||
| 153 | * @param blue value for blue part (0 to 1) | ||
| 154 | * @param alpha value for alpha (0 to 1) | ||
| 155 | */ | ||
| 156 | CairoColor(const double red = 0.0, const double green = 0.0, const double blue = 0.0, | ||
| 157 | const double alpha = 1.0) | ||
| 158 | : m_red(red), m_green(green), m_blue(blue), m_alpha(alpha) | ||
| 159 | {} | ||
| 160 | |||
| 161 | /** | ||
| 162 | * Default dtor | ||
| 163 | */ | ||
| 164 | ~CairoColor() | ||
| 165 | {} | ||
| 166 | |||
| 167 | /** | ||
| 168 | * @brief applies this object to the current context | ||
| 169 | * @param context cairomm context | ||
| 170 | */ | ||
| 171 | void applyObject(const Cairo::RefPtr<Cairo::Context> context); | ||
| 172 | |||
| 173 | private: | ||
| 174 | double m_red, m_green, m_blue; | ||
| 175 | double m_alpha; | ||
| 176 | }; | ||
| 177 | |||
| 178 | /*----------------------------------------------------------------------------*/ | ||
| 179 | |||
| 180 | /** | ||
| 181 | * creates a rectangle in cairomm | ||
| 182 | */ | ||
| 183 | class CairoRectangle | ||
| 184 | : public CairoObject | ||
| 185 | { | ||
| 186 | public: | ||
| 187 | /** | ||
| 188 | * @brief Default dtor | ||
| 189 | * @param x x-coordinates to start | ||
| 190 | * @param y y-coordinates to start | ||
| 191 | * @param width rectangle width | ||
| 192 | * @param height rectangle height | ||
| 193 | * @param linewidth linewidth for rectangle | ||
| 194 | */ | ||
| 195 | CairoRectangle(const double x, const double y, const double width, const double height, | ||
| 196 | const double linewidth = 0.2) | ||
| 197 | : m_x(x), m_y(y), m_width(width), m_height(height), m_linewidth(linewidth) | ||
| 198 | {} | ||
| 199 | |||
| 200 | /** | ||
| 201 | * Default dtor | ||
| 202 | */ | ||
| 203 | CairoRectangle() | ||
| 204 | {} | ||
| 205 | |||
| 206 | /** | ||
| 207 | * @brief get x-coordinate of current object | ||
| 208 | * @return x-coordinate of current object | ||
| 209 | */ | ||
| 210 | double x() | ||
| 211 | { | ||
| 212 | return m_x; | ||
| 213 | } | ||
| 214 | |||
| 215 | /** | ||
| 216 | * @brief get y-coordinate of current object | ||
| 217 | * @return y-coordinate of current object | ||
| 218 | */ | ||
| 219 | double y() | ||
| 220 | { | ||
| 221 | return m_y; | ||
| 222 | } | ||
| 223 | |||
| 224 | /** | ||
| 225 | * @brief get height of current object | ||
| 226 | * @return height of current object | ||
| 227 | */ | ||
| 228 | double height() | ||
| 229 | { | ||
| 230 | return m_height; | ||
| 231 | } | ||
| 232 | |||
| 233 | /** | ||
| 234 | * @brief get width of current object | ||
| 235 | * @return width of current object | ||
| 236 | */ | ||
| 237 | double width() | ||
| 238 | { | ||
| 239 | return m_width; | ||
| 240 | } | ||
| 241 | |||
| 242 | /** | ||
| 243 | * @brief applies this object to the current context | ||
| 244 | * @param context cairomm context | ||
| 245 | */ | ||
| 246 | void applyObject(const Cairo::RefPtr<Cairo::Context> context); | ||
| 247 | |||
| 248 | private: | ||
| 249 | double m_x, m_y; | ||
| 250 | double m_width, m_height; | ||
| 251 | double m_linewidth; | ||
| 252 | }; | ||
| 253 | |||
| 254 | /*----------------------------------------------------------------------------*/ | ||
| 255 | |||
| 256 | /** | ||
| 257 | * creates a textbox using cairomm | ||
| 258 | */ | ||
| 259 | class CairoTextBox | ||
| 260 | : public CairoObject | ||
| 261 | { | ||
| 262 | public: | ||
| 263 | /** | ||
| 264 | * @brief Default dtor | ||
| 265 | * @param x x-coordinates to start | ||
| 266 | * @param y y-coordinates to start | ||
| 267 | * @param width rectangle width | ||
| 268 | * @param height rectangle height | ||
| 269 | * @param padding padding for textbox | ||
| 270 | */ | ||
| 271 | CairoTextBox(const double x, const double y, const double width, const double height, | ||
| 272 | const double padding = 0) | ||
| 273 | : m_x(x), m_y(y), m_width(width), m_height(height), m_padding(padding), m_text("") | ||
| 274 | {} | ||
| 275 | |||
| 276 | /** | ||
| 277 | * Default dtor | ||
| 278 | * deletes allocated rectangle objects for borders | ||
| 279 | */ | ||
| 280 | ~CairoTextBox() | ||
| 281 | { | ||
| 282 | for(CairoRectangleList::iterator it = m_rectangles.begin(); it != m_rectangles.end(); ++it) | ||
| 283 | delete *it; | ||
| 284 | } | ||
| 285 | |||
| 286 | /** | ||
| 287 | * @brief add text to this textbox | ||
| 288 | * @param text text to add | ||
| 289 | */ | ||
| 290 | void addText(const std::string& text) | ||
| 291 | { | ||
| 292 | m_text << text; | ||
| 293 | } | ||
| 294 | |||
| 295 | /** | ||
| 296 | * @brief istream operator to add text to this textbox | ||
| 297 | * @param text text to add | ||
| 298 | * @return reference to this object | ||
| 299 | */ | ||
| 300 | CairoTextBox& operator<<(std::string text) | ||
| 301 | { | ||
| 302 | m_text << text; | ||
| 303 | return *this; | ||
| 304 | } | ||
| 305 | |||
| 306 | /** | ||
| 307 | * @brief istream operator to add a integer to this textbox | ||
| 308 | * @param num integer to add | ||
| 309 | * @return reference to this object | ||
| 310 | */ | ||
| 311 | CairoTextBox& operator<<(int num) | ||
| 312 | { | ||
| 313 | m_text << num; | ||
| 314 | return *this; | ||
| 315 | } | ||
| 316 | |||
| 317 | /** | ||
| 318 | * @brief adds border around this textbox | ||
| 319 | * using a dynamically allocated rectangle object | ||
| 320 | * @param linewidth linewidth for the border | ||
| 321 | * @param obj pointer to object which will be added to the | ||
| 322 | * dynamically allocated border | ||
| 323 | * @return reference to this object | ||
| 324 | */ | ||
| 325 | CairoTextBox& addBorder(const double linewidth = 0.2, CairoObject *obj = NULL); | ||
| 326 | |||
| 327 | /** | ||
| 328 | * @brief get x-coordinate of current object | ||
| 329 | * @return x-coordinate of current object | ||
| 330 | */ | ||
| 331 | double x() | ||
| 332 | { | ||
| 333 | return m_x; | ||
| 334 | } | ||
| 335 | |||
| 336 | /** | ||
| 337 | * @brief get y-coordinate of current object | ||
| 338 | * @return y-coordinate of current object | ||
| 339 | */ | ||
| 340 | double y() | ||
| 341 | { | ||
| 342 | return m_y; | ||
| 343 | } | ||
| 344 | |||
| 345 | /** | ||
| 346 | * @brief get height of current object | ||
| 347 | * @return height of current object | ||
| 348 | */ | ||
| 349 | double height() | ||
| 350 | { | ||
| 351 | return m_height; | ||
| 352 | } | ||
| 353 | |||
| 354 | /** | ||
| 355 | * @brief get width of current object | ||
| 356 | * @return width of current object | ||
| 357 | */ | ||
| 358 | double width() | ||
| 359 | { | ||
| 360 | return m_width; | ||
| 361 | } | ||
| 362 | |||
| 363 | /** | ||
| 364 | * @brief get padding of current object | ||
| 365 | * @return padding of current object | ||
| 366 | */ | ||
| 367 | double padding() | ||
| 368 | { | ||
| 369 | return m_padding; | ||
| 370 | } | ||
| 371 | |||
| 372 | /** | ||
| 373 | * @brief applies this object to the current context | ||
| 374 | * @param context cairomm context | ||
| 375 | */ | ||
| 376 | void applyObject(const Cairo::RefPtr<Cairo::Context> context); | ||
| 377 | |||
| 378 | private: | ||
| 379 | /** rectangelist for added borders */ | ||
| 380 | typedef std::list<CairoRectangle *> CairoRectangleList; | ||
| 381 | |||
| 382 | double m_x, m_y; | ||
| 383 | double m_width, m_height; | ||
| 384 | double m_padding; | ||
| 385 | std::stringstream m_text; | ||
| 386 | CairoRectangleList m_rectangles; | ||
| 387 | }; | ||
| 388 | |||
| 389 | /*----------------------------------------------------------------------------*/ | ||
| 390 | |||
| 391 | /** | ||
| 392 | * creates a document using cairomm | ||
| 393 | */ | ||
| 394 | class CairoDocument | ||
| 395 | : public CairoObject | ||
| 396 | { | ||
| 397 | public: | ||
| 398 | /** valid outout formats for the document */ | ||
| 399 | enum OutputFormat | ||
| 400 | { | ||
| 401 | #ifdef CAIRO_HAS_PDF_SURFACE | ||
| 402 | PDF, | ||
| 403 | #endif | ||
| 404 | }; | ||
| 405 | |||
| 406 | /** | ||
| 407 | * @brief Default dtor | ||
| 408 | * @param width width of document | ||
| 409 | * @param height height of document | ||
| 410 | */ | ||
| 411 | CairoDocument(const unsigned width, const unsigned height) | ||
| 412 | : m_width(width), m_height(height) | ||
| 413 | {} | ||
| 414 | |||
| 415 | /** | ||
| 416 | * Default dtor | ||
| 417 | */ | ||
| 418 | ~CairoDocument() | ||
| 419 | {} | ||
| 420 | |||
| 421 | /** | ||
| 422 | * @brief applies this object to the current context | ||
| 423 | * @param context cairomm context | ||
| 424 | */ | ||
| 425 | void applyObject(const Cairo::RefPtr<Cairo::Context> context) | ||
| 426 | {} | ||
| 427 | |||
| 428 | /** | ||
| 429 | * @brief generates and saves the current document | ||
| 430 | * @param filename filename for document | ||
| 431 | * @param format output format for document | ||
| 432 | */ | ||
| 433 | bool save(const std::string& filename, const OutputFormat format); | ||
| 434 | |||
| 435 | /** | ||
| 436 | * @brief get width of current object | ||
| 437 | * @return width of current object | ||
| 438 | */ | ||
| 439 | unsigned width() | ||
| 440 | { | ||
| 441 | return m_width; | ||
| 442 | } | ||
| 443 | |||
| 444 | /** | ||
| 445 | * @brief get height of current object | ||
| 446 | * @return height of current object | ||
| 447 | */ | ||
| 448 | unsigned height() | ||
| 449 | { | ||
| 450 | return m_height; | ||
| 451 | } | ||
| 452 | |||
| 453 | private: | ||
| 454 | unsigned m_width, m_height; | ||
| 455 | }; | ||
| 456 | |||
| 457 | #endif | ||
| 458 | |||
| 459 | /* vim: set et sw=2 ts=2: */ | ||
diff --git a/task1/certs/rootca.pem b/task1/certs/rootca.pem new file mode 100644 index 0000000..03311e3 --- /dev/null +++ b/task1/certs/rootca.pem | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | -----BEGIN CERTIFICATE----- | ||
| 2 | MIIEyjCCA7KgAwIBAgIJAJDbsKVizoHiMA0GCSqGSIb3DQEBBQUAMIGeMRQwEgYD | ||
| 3 | VQQDEwtTRS9MaW51eCBDQTELMAkGA1UEBhMCQVQxDzANBgNVBAgTBlZpZW5uYTEP | ||
| 4 | MA0GA1UEBxMGVmllbm5hMSMwIQYDVQQKExpzZS1saW51eC5pbnNvLnR1d2llbi5h | ||
| 5 | Yy5hdDEyMDAGCSqGSIb3DQEJARYjZGV2Lm51bGxAc2UtbGludXguaW5zby50dXdp | ||
| 6 | ZW4uYWMuYXQwHhcNMDgwMzE1MTI1MTA4WhcNMTMwMzE0MTI1MTA4WjCBnjEUMBIG | ||
| 7 | A1UEAxMLU0UvTGludXggQ0ExCzAJBgNVBAYTAkFUMQ8wDQYDVQQIEwZWaWVubmEx | ||
| 8 | DzANBgNVBAcTBlZpZW5uYTEjMCEGA1UEChMac2UtbGludXguaW5zby50dXdpZW4u | ||
| 9 | YWMuYXQxMjAwBgkqhkiG9w0BCQEWI2Rldi5udWxsQHNlLWxpbnV4Lmluc28udHV3 | ||
| 10 | aWVuLmFjLmF0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt+mlUQ8w | ||
| 11 | Wvf6fFjGt1xLTM2Vdwmctugwtde19M6/Gpr5nuOmcFMhzVOSUAIrQK/gVBT5Rsuy | ||
| 12 | XSYSVLLW46O1sF5B8hI83+LI66mC+DS9KwOTL5+QcwKlE7CDvp+fcp9i6fHpSo1x | ||
| 13 | ort1qNedwJBSqmU0S/iYBOpekedf4meAiQ2LSmqYFX/m7dlfpygadHfpRjSmND1E | ||
| 14 | 2VesJKLVi0+iCL1W7uXt2dNcExDSAxnVlpA7nZ1UNxRuBgQtckMmZoE7Z7gdSRM6 | ||
| 15 | T3a7NxnJ/Z1PfNL4jPwwFN3+rhA1hTJpNVM9aZprQbu7yg4YxhEUwXz0WFkh4Emr | ||
| 16 | lmKH1vLcQbM9owIDAQABo4IBBzCCAQMwHQYDVR0OBBYEFA2L1XV6YNtCNUFR0WZR | ||
| 17 | Hw0URcepMIHTBgNVHSMEgcswgciAFA2L1XV6YNtCNUFR0WZRHw0URcepoYGkpIGh | ||
| 18 | MIGeMRQwEgYDVQQDEwtTRS9MaW51eCBDQTELMAkGA1UEBhMCQVQxDzANBgNVBAgT | ||
| 19 | BlZpZW5uYTEPMA0GA1UEBxMGVmllbm5hMSMwIQYDVQQKExpzZS1saW51eC5pbnNv | ||
| 20 | LnR1d2llbi5hYy5hdDEyMDAGCSqGSIb3DQEJARYjZGV2Lm51bGxAc2UtbGludXgu | ||
| 21 | aW5zby50dXdpZW4uYWMuYXSCCQCQ27ClYs6B4jAMBgNVHRMEBTADAQH/MA0GCSqG | ||
| 22 | SIb3DQEBBQUAA4IBAQArc7FBm5PXVWFENlS3CX2nqfy2AflnVV1jS0SuMVeVKG+y | ||
| 23 | x9DqlE3Fzei7OyNM9jSUPLZlvNzEHodHj5LVy98kAVzZ6O+cTlNnaax6FNWuZVvb | ||
| 24 | LPTSwuzHUO+E7X4yRfNxxiiJOWmCNbbP5ofERIPJwsxwp1g3sW5VV80oAGSueAby | ||
| 25 | KrQX/3OYiXLz5Lg+wWPU0/7hrUwnADi1HXC0pOJcEH8UyYpIWdIrAQNzYx0i8RTm | ||
| 26 | kojRaQBMSdNK9sLbuZju0hBSueGGfdv49AshZiV3hghw8iDbLKGZcolxcvmlK0+L | ||
| 27 | crnCz3BH7e7OeUJBO/iZ/UztRM1p1SgSmnEeDGFv | ||
| 28 | -----END CERTIFICATE----- | ||
diff --git a/task1/cli.cpp b/task1/cli.cpp new file mode 100644 index 0000000..ae175fd --- /dev/null +++ b/task1/cli.cpp | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | /** | ||
| 2 | * $Id: cli.cpp 2 2009-10-31 02:48:23Z l0728348 $ | ||
| 3 | * | ||
| 4 | * Copyright 2009 | ||
| 5 | * | ||
| 6 | * @author Manuel Mausz (0728348) | ||
| 7 | * @brief main application of ehr_cli | ||
| 8 | */ | ||
| 9 | |||
| 10 | #include "ehrclient.h" | ||
| 11 | |||
| 12 | /** | ||
| 13 | * main application of ehr_cli | ||
| 14 | * initiales IceSSL and starts the application | ||
| 15 | */ | ||
| 16 | int main(int argc, char* argv[]) | ||
| 17 | { | ||
| 18 | /* load IceSSL */ | ||
| 19 | Ice::InitializationData initdata; | ||
| 20 | initdata.properties = Ice::createProperties(); | ||
| 21 | initdata.properties->setProperty("Ice.InitPlugins", "0"); // we do this ourself | ||
| 22 | initdata.properties->setProperty("Ice.Plugin.IceSSL", "IceSSL:createIceSSL"); | ||
| 23 | |||
| 24 | /* create our ehr client */ | ||
| 25 | EhrClient cli; | ||
| 26 | return cli.main(argc, argv, initdata); | ||
| 27 | } | ||
| 28 | |||
| 29 | /* vim: set et sw=2 ts=2: */ | ||
diff --git a/task1/ehr.cpp b/task1/ehr.cpp new file mode 100644 index 0000000..29b45e9 --- /dev/null +++ b/task1/ehr.cpp | |||
| @@ -0,0 +1,6836 @@ | |||
| 1 | // ********************************************************************** | ||
| 2 | // | ||
| 3 | // Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. | ||
| 4 | // | ||
| 5 | // This copy of Ice is licensed to you under the terms described in the | ||
| 6 | // ICE_LICENSE file included in this distribution. | ||
| 7 | // | ||
| 8 | // ********************************************************************** | ||
| 9 | |||
| 10 | // Ice version 3.3.1 | ||
| 11 | // Generated from file `ehr.ice' | ||
| 12 | |||
| 13 | #include <ehr.h> | ||
| 14 | #include <Ice/LocalException.h> | ||
| 15 | #include <Ice/ObjectFactory.h> | ||
| 16 | #include <Ice/BasicStream.h> | ||
| 17 | #include <Ice/Stream.h> | ||
| 18 | #include <IceUtil/Iterator.h> | ||
| 19 | #include <IceUtil/ScopedArray.h> | ||
| 20 | |||
| 21 | #ifndef ICE_IGNORE_VERSION | ||
| 22 | # if ICE_INT_VERSION / 100 != 303 | ||
| 23 | # error Ice version mismatch! | ||
| 24 | # endif | ||
| 25 | # if ICE_INT_VERSION % 100 > 50 | ||
| 26 | # error Beta header file detected | ||
| 27 | # endif | ||
| 28 | # if ICE_INT_VERSION % 100 < 1 | ||
| 29 | # error Ice patch level mismatch! | ||
| 30 | # endif | ||
| 31 | #endif | ||
| 32 | |||
| 33 | static const ::std::string __Ehr__Provider__createPrescription_name = "createPrescription"; | ||
| 34 | |||
| 35 | static const ::std::string __Ehr__Provider__consumePrescription_name = "consumePrescription"; | ||
| 36 | |||
| 37 | static const ::std::string __Ehr__Provider__listDocuments_name = "listDocuments"; | ||
| 38 | |||
| 39 | static const ::std::string __Ehr__Provider__findDocuments_name = "findDocuments"; | ||
| 40 | |||
| 41 | static const ::std::string __Ehr__Provider__setDefaultAccess_name = "setDefaultAccess"; | ||
| 42 | |||
| 43 | static const ::std::string __Ehr__Provider__createPermission_name = "createPermission"; | ||
| 44 | |||
| 45 | static const ::std::string __Ehr__Provider__listPermissions_name = "listPermissions"; | ||
| 46 | |||
| 47 | static const ::std::string __Ehr__Provider__removePermission_name = "removePermission"; | ||
| 48 | |||
| 49 | ::Ice::Object* IceInternal::upCast(::Ehr::Document* p) { return p; } | ||
| 50 | ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Ehr::Document* p) { return p; } | ||
| 51 | |||
| 52 | ::Ice::Object* IceInternal::upCast(::Ehr::Prescription* p) { return p; } | ||
| 53 | ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Ehr::Prescription* p) { return p; } | ||
| 54 | |||
| 55 | ::Ice::Object* IceInternal::upCast(::Ehr::ConsumedPrescription* p) { return p; } | ||
| 56 | ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Ehr::ConsumedPrescription* p) { return p; } | ||
| 57 | |||
| 58 | ::Ice::Object* IceInternal::upCast(::Ehr::Request* p) { return p; } | ||
| 59 | ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Ehr::Request* p) { return p; } | ||
| 60 | |||
| 61 | ::Ice::Object* IceInternal::upCast(::Ehr::ThirdPartyRequest* p) { return p; } | ||
| 62 | ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Ehr::ThirdPartyRequest* p) { return p; } | ||
| 63 | |||
| 64 | ::Ice::Object* IceInternal::upCast(::Ehr::CreatePrescriptionRequest* p) { return p; } | ||
| 65 | ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Ehr::CreatePrescriptionRequest* p) { return p; } | ||
| 66 | |||
| 67 | ::Ice::Object* IceInternal::upCast(::Ehr::ConsumePrescriptionRequest* p) { return p; } | ||
| 68 | ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Ehr::ConsumePrescriptionRequest* p) { return p; } | ||
| 69 | |||
| 70 | ::Ice::Object* IceInternal::upCast(::Ehr::ListDocumentsRequest* p) { return p; } | ||
| 71 | ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Ehr::ListDocumentsRequest* p) { return p; } | ||
| 72 | |||
| 73 | ::Ice::Object* IceInternal::upCast(::Ehr::FindDocumentsRequest* p) { return p; } | ||
| 74 | ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Ehr::FindDocumentsRequest* p) { return p; } | ||
| 75 | |||
| 76 | ::Ice::Object* IceInternal::upCast(::Ehr::CreatePermissionRequest* p) { return p; } | ||
| 77 | ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Ehr::CreatePermissionRequest* p) { return p; } | ||
| 78 | |||
| 79 | ::Ice::Object* IceInternal::upCast(::Ehr::SetDefaultAccessRequest* p) { return p; } | ||
| 80 | ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Ehr::SetDefaultAccessRequest* p) { return p; } | ||
| 81 | |||
| 82 | ::Ice::Object* IceInternal::upCast(::Ehr::ListPermissionsRequest* p) { return p; } | ||
| 83 | ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Ehr::ListPermissionsRequest* p) { return p; } | ||
| 84 | |||
| 85 | ::Ice::Object* IceInternal::upCast(::Ehr::RemovePermissionRequest* p) { return p; } | ||
| 86 | ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Ehr::RemovePermissionRequest* p) { return p; } | ||
| 87 | |||
| 88 | ::Ice::Object* IceInternal::upCast(::Ehr::Provider* p) { return p; } | ||
| 89 | ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Ehr::Provider* p) { return p; } | ||
| 90 | |||
| 91 | void | ||
| 92 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::DocumentPrx& v) | ||
| 93 | { | ||
| 94 | ::Ice::ObjectPrx proxy; | ||
| 95 | __is->read(proxy); | ||
| 96 | if(!proxy) | ||
| 97 | { | ||
| 98 | v = 0; | ||
| 99 | } | ||
| 100 | else | ||
| 101 | { | ||
| 102 | v = new ::IceProxy::Ehr::Document; | ||
| 103 | v->__copyFrom(proxy); | ||
| 104 | } | ||
| 105 | } | ||
| 106 | |||
| 107 | void | ||
| 108 | Ehr::ice_writeDocumentPrx(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::DocumentPrx& v) | ||
| 109 | { | ||
| 110 | __outS->writeProxy(v); | ||
| 111 | } | ||
| 112 | |||
| 113 | void | ||
| 114 | Ehr::ice_readDocumentPrx(const ::Ice::InputStreamPtr& __inS, ::Ehr::DocumentPrx& v) | ||
| 115 | { | ||
| 116 | ::Ice::ObjectPrx proxy = __inS->readProxy(); | ||
| 117 | if(!proxy) | ||
| 118 | { | ||
| 119 | v = 0; | ||
| 120 | } | ||
| 121 | else | ||
| 122 | { | ||
| 123 | v = new ::IceProxy::Ehr::Document; | ||
| 124 | v->__copyFrom(proxy); | ||
| 125 | } | ||
| 126 | } | ||
| 127 | |||
| 128 | void | ||
| 129 | Ehr::ice_writeDocument(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::DocumentPtr& v) | ||
| 130 | { | ||
| 131 | __outS->writeObject(v); | ||
| 132 | } | ||
| 133 | |||
| 134 | void | ||
| 135 | Ehr::ice_readDocument(const ::Ice::InputStreamPtr& __inS, ::Ehr::DocumentPtr& __v) | ||
| 136 | { | ||
| 137 | ::Ice::ReadObjectCallbackPtr __cb = new ::Ice::ReadObjectCallbackI(::Ehr::__patch__DocumentPtr, &__v); | ||
| 138 | __inS->readObject(__cb); | ||
| 139 | } | ||
| 140 | |||
| 141 | void | ||
| 142 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::PrescriptionPrx& v) | ||
| 143 | { | ||
| 144 | ::Ice::ObjectPrx proxy; | ||
| 145 | __is->read(proxy); | ||
| 146 | if(!proxy) | ||
| 147 | { | ||
| 148 | v = 0; | ||
| 149 | } | ||
| 150 | else | ||
| 151 | { | ||
| 152 | v = new ::IceProxy::Ehr::Prescription; | ||
| 153 | v->__copyFrom(proxy); | ||
| 154 | } | ||
| 155 | } | ||
| 156 | |||
| 157 | void | ||
| 158 | Ehr::ice_writePrescriptionPrx(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::PrescriptionPrx& v) | ||
| 159 | { | ||
| 160 | __outS->writeProxy(v); | ||
| 161 | } | ||
| 162 | |||
| 163 | void | ||
| 164 | Ehr::ice_readPrescriptionPrx(const ::Ice::InputStreamPtr& __inS, ::Ehr::PrescriptionPrx& v) | ||
| 165 | { | ||
| 166 | ::Ice::ObjectPrx proxy = __inS->readProxy(); | ||
| 167 | if(!proxy) | ||
| 168 | { | ||
| 169 | v = 0; | ||
| 170 | } | ||
| 171 | else | ||
| 172 | { | ||
| 173 | v = new ::IceProxy::Ehr::Prescription; | ||
| 174 | v->__copyFrom(proxy); | ||
| 175 | } | ||
| 176 | } | ||
| 177 | |||
| 178 | void | ||
| 179 | Ehr::ice_writePrescription(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::PrescriptionPtr& v) | ||
| 180 | { | ||
| 181 | __outS->writeObject(v); | ||
| 182 | } | ||
| 183 | |||
| 184 | void | ||
| 185 | Ehr::ice_readPrescription(const ::Ice::InputStreamPtr& __inS, ::Ehr::PrescriptionPtr& __v) | ||
| 186 | { | ||
| 187 | ::Ice::ReadObjectCallbackPtr __cb = new ::Ice::ReadObjectCallbackI(::Ehr::__patch__PrescriptionPtr, &__v); | ||
| 188 | __inS->readObject(__cb); | ||
| 189 | } | ||
| 190 | |||
| 191 | void | ||
| 192 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::ConsumedPrescriptionPrx& v) | ||
| 193 | { | ||
| 194 | ::Ice::ObjectPrx proxy; | ||
| 195 | __is->read(proxy); | ||
| 196 | if(!proxy) | ||
| 197 | { | ||
| 198 | v = 0; | ||
| 199 | } | ||
| 200 | else | ||
| 201 | { | ||
| 202 | v = new ::IceProxy::Ehr::ConsumedPrescription; | ||
| 203 | v->__copyFrom(proxy); | ||
| 204 | } | ||
| 205 | } | ||
| 206 | |||
| 207 | void | ||
| 208 | Ehr::ice_writeConsumedPrescriptionPrx(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::ConsumedPrescriptionPrx& v) | ||
| 209 | { | ||
| 210 | __outS->writeProxy(v); | ||
| 211 | } | ||
| 212 | |||
| 213 | void | ||
| 214 | Ehr::ice_readConsumedPrescriptionPrx(const ::Ice::InputStreamPtr& __inS, ::Ehr::ConsumedPrescriptionPrx& v) | ||
| 215 | { | ||
| 216 | ::Ice::ObjectPrx proxy = __inS->readProxy(); | ||
| 217 | if(!proxy) | ||
| 218 | { | ||
| 219 | v = 0; | ||
| 220 | } | ||
| 221 | else | ||
| 222 | { | ||
| 223 | v = new ::IceProxy::Ehr::ConsumedPrescription; | ||
| 224 | v->__copyFrom(proxy); | ||
| 225 | } | ||
| 226 | } | ||
| 227 | |||
| 228 | void | ||
| 229 | Ehr::ice_writeConsumedPrescription(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::ConsumedPrescriptionPtr& v) | ||
| 230 | { | ||
| 231 | __outS->writeObject(v); | ||
| 232 | } | ||
| 233 | |||
| 234 | void | ||
| 235 | Ehr::ice_readConsumedPrescription(const ::Ice::InputStreamPtr& __inS, ::Ehr::ConsumedPrescriptionPtr& __v) | ||
| 236 | { | ||
| 237 | ::Ice::ReadObjectCallbackPtr __cb = new ::Ice::ReadObjectCallbackI(::Ehr::__patch__ConsumedPrescriptionPtr, &__v); | ||
| 238 | __inS->readObject(__cb); | ||
| 239 | } | ||
| 240 | |||
| 241 | void | ||
| 242 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::RequestPrx& v) | ||
| 243 | { | ||
| 244 | ::Ice::ObjectPrx proxy; | ||
| 245 | __is->read(proxy); | ||
| 246 | if(!proxy) | ||
| 247 | { | ||
| 248 | v = 0; | ||
| 249 | } | ||
| 250 | else | ||
| 251 | { | ||
| 252 | v = new ::IceProxy::Ehr::Request; | ||
| 253 | v->__copyFrom(proxy); | ||
| 254 | } | ||
| 255 | } | ||
| 256 | |||
| 257 | void | ||
| 258 | Ehr::ice_writeRequestPrx(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::RequestPrx& v) | ||
| 259 | { | ||
| 260 | __outS->writeProxy(v); | ||
| 261 | } | ||
| 262 | |||
| 263 | void | ||
| 264 | Ehr::ice_readRequestPrx(const ::Ice::InputStreamPtr& __inS, ::Ehr::RequestPrx& v) | ||
| 265 | { | ||
| 266 | ::Ice::ObjectPrx proxy = __inS->readProxy(); | ||
| 267 | if(!proxy) | ||
| 268 | { | ||
| 269 | v = 0; | ||
| 270 | } | ||
| 271 | else | ||
| 272 | { | ||
| 273 | v = new ::IceProxy::Ehr::Request; | ||
| 274 | v->__copyFrom(proxy); | ||
| 275 | } | ||
| 276 | } | ||
| 277 | |||
| 278 | void | ||
| 279 | Ehr::ice_writeRequest(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::RequestPtr& v) | ||
| 280 | { | ||
| 281 | __outS->writeObject(v); | ||
| 282 | } | ||
| 283 | |||
| 284 | void | ||
| 285 | Ehr::ice_readRequest(const ::Ice::InputStreamPtr& __inS, ::Ehr::RequestPtr& __v) | ||
| 286 | { | ||
| 287 | ::Ice::ReadObjectCallbackPtr __cb = new ::Ice::ReadObjectCallbackI(::Ehr::__patch__RequestPtr, &__v); | ||
| 288 | __inS->readObject(__cb); | ||
| 289 | } | ||
| 290 | |||
| 291 | void | ||
| 292 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::ThirdPartyRequestPrx& v) | ||
| 293 | { | ||
| 294 | ::Ice::ObjectPrx proxy; | ||
| 295 | __is->read(proxy); | ||
| 296 | if(!proxy) | ||
| 297 | { | ||
| 298 | v = 0; | ||
| 299 | } | ||
| 300 | else | ||
| 301 | { | ||
| 302 | v = new ::IceProxy::Ehr::ThirdPartyRequest; | ||
| 303 | v->__copyFrom(proxy); | ||
| 304 | } | ||
| 305 | } | ||
| 306 | |||
| 307 | void | ||
| 308 | Ehr::ice_writeThirdPartyRequestPrx(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::ThirdPartyRequestPrx& v) | ||
| 309 | { | ||
| 310 | __outS->writeProxy(v); | ||
| 311 | } | ||
| 312 | |||
| 313 | void | ||
| 314 | Ehr::ice_readThirdPartyRequestPrx(const ::Ice::InputStreamPtr& __inS, ::Ehr::ThirdPartyRequestPrx& v) | ||
| 315 | { | ||
| 316 | ::Ice::ObjectPrx proxy = __inS->readProxy(); | ||
| 317 | if(!proxy) | ||
| 318 | { | ||
| 319 | v = 0; | ||
| 320 | } | ||
| 321 | else | ||
| 322 | { | ||
| 323 | v = new ::IceProxy::Ehr::ThirdPartyRequest; | ||
| 324 | v->__copyFrom(proxy); | ||
| 325 | } | ||
| 326 | } | ||
| 327 | |||
| 328 | void | ||
| 329 | Ehr::ice_writeThirdPartyRequest(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::ThirdPartyRequestPtr& v) | ||
| 330 | { | ||
| 331 | __outS->writeObject(v); | ||
| 332 | } | ||
| 333 | |||
| 334 | void | ||
| 335 | Ehr::ice_readThirdPartyRequest(const ::Ice::InputStreamPtr& __inS, ::Ehr::ThirdPartyRequestPtr& __v) | ||
| 336 | { | ||
| 337 | ::Ice::ReadObjectCallbackPtr __cb = new ::Ice::ReadObjectCallbackI(::Ehr::__patch__ThirdPartyRequestPtr, &__v); | ||
| 338 | __inS->readObject(__cb); | ||
| 339 | } | ||
| 340 | |||
| 341 | void | ||
| 342 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::CreatePrescriptionRequestPrx& v) | ||
| 343 | { | ||
| 344 | ::Ice::ObjectPrx proxy; | ||
| 345 | __is->read(proxy); | ||
| 346 | if(!proxy) | ||
| 347 | { | ||
| 348 | v = 0; | ||
| 349 | } | ||
| 350 | else | ||
| 351 | { | ||
| 352 | v = new ::IceProxy::Ehr::CreatePrescriptionRequest; | ||
| 353 | v->__copyFrom(proxy); | ||
| 354 | } | ||
| 355 | } | ||
| 356 | |||
| 357 | void | ||
| 358 | Ehr::ice_writeCreatePrescriptionRequestPrx(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::CreatePrescriptionRequestPrx& v) | ||
| 359 | { | ||
| 360 | __outS->writeProxy(v); | ||
| 361 | } | ||
| 362 | |||
| 363 | void | ||
| 364 | Ehr::ice_readCreatePrescriptionRequestPrx(const ::Ice::InputStreamPtr& __inS, ::Ehr::CreatePrescriptionRequestPrx& v) | ||
| 365 | { | ||
| 366 | ::Ice::ObjectPrx proxy = __inS->readProxy(); | ||
| 367 | if(!proxy) | ||
| 368 | { | ||
| 369 | v = 0; | ||
| 370 | } | ||
| 371 | else | ||
| 372 | { | ||
| 373 | v = new ::IceProxy::Ehr::CreatePrescriptionRequest; | ||
| 374 | v->__copyFrom(proxy); | ||
| 375 | } | ||
| 376 | } | ||
| 377 | |||
| 378 | void | ||
| 379 | Ehr::ice_writeCreatePrescriptionRequest(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::CreatePrescriptionRequestPtr& v) | ||
| 380 | { | ||
| 381 | __outS->writeObject(v); | ||
| 382 | } | ||
| 383 | |||
| 384 | void | ||
| 385 | Ehr::ice_readCreatePrescriptionRequest(const ::Ice::InputStreamPtr& __inS, ::Ehr::CreatePrescriptionRequestPtr& __v) | ||
| 386 | { | ||
| 387 | ::Ice::ReadObjectCallbackPtr __cb = new ::Ice::ReadObjectCallbackI(::Ehr::__patch__CreatePrescriptionRequestPtr, &__v); | ||
| 388 | __inS->readObject(__cb); | ||
| 389 | } | ||
| 390 | |||
| 391 | void | ||
| 392 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::ConsumePrescriptionRequestPrx& v) | ||
| 393 | { | ||
| 394 | ::Ice::ObjectPrx proxy; | ||
| 395 | __is->read(proxy); | ||
| 396 | if(!proxy) | ||
| 397 | { | ||
| 398 | v = 0; | ||
| 399 | } | ||
| 400 | else | ||
| 401 | { | ||
| 402 | v = new ::IceProxy::Ehr::ConsumePrescriptionRequest; | ||
| 403 | v->__copyFrom(proxy); | ||
| 404 | } | ||
| 405 | } | ||
| 406 | |||
| 407 | void | ||
| 408 | Ehr::ice_writeConsumePrescriptionRequestPrx(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::ConsumePrescriptionRequestPrx& v) | ||
| 409 | { | ||
| 410 | __outS->writeProxy(v); | ||
| 411 | } | ||
| 412 | |||
| 413 | void | ||
| 414 | Ehr::ice_readConsumePrescriptionRequestPrx(const ::Ice::InputStreamPtr& __inS, ::Ehr::ConsumePrescriptionRequestPrx& v) | ||
| 415 | { | ||
| 416 | ::Ice::ObjectPrx proxy = __inS->readProxy(); | ||
| 417 | if(!proxy) | ||
| 418 | { | ||
| 419 | v = 0; | ||
| 420 | } | ||
| 421 | else | ||
| 422 | { | ||
| 423 | v = new ::IceProxy::Ehr::ConsumePrescriptionRequest; | ||
| 424 | v->__copyFrom(proxy); | ||
| 425 | } | ||
| 426 | } | ||
| 427 | |||
| 428 | void | ||
| 429 | Ehr::ice_writeConsumePrescriptionRequest(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::ConsumePrescriptionRequestPtr& v) | ||
| 430 | { | ||
| 431 | __outS->writeObject(v); | ||
| 432 | } | ||
| 433 | |||
| 434 | void | ||
| 435 | Ehr::ice_readConsumePrescriptionRequest(const ::Ice::InputStreamPtr& __inS, ::Ehr::ConsumePrescriptionRequestPtr& __v) | ||
| 436 | { | ||
| 437 | ::Ice::ReadObjectCallbackPtr __cb = new ::Ice::ReadObjectCallbackI(::Ehr::__patch__ConsumePrescriptionRequestPtr, &__v); | ||
| 438 | __inS->readObject(__cb); | ||
| 439 | } | ||
| 440 | |||
| 441 | void | ||
| 442 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::ListDocumentsRequestPrx& v) | ||
| 443 | { | ||
| 444 | ::Ice::ObjectPrx proxy; | ||
| 445 | __is->read(proxy); | ||
| 446 | if(!proxy) | ||
| 447 | { | ||
| 448 | v = 0; | ||
| 449 | } | ||
| 450 | else | ||
| 451 | { | ||
| 452 | v = new ::IceProxy::Ehr::ListDocumentsRequest; | ||
| 453 | v->__copyFrom(proxy); | ||
| 454 | } | ||
| 455 | } | ||
| 456 | |||
| 457 | void | ||
| 458 | Ehr::ice_writeListDocumentsRequestPrx(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::ListDocumentsRequestPrx& v) | ||
| 459 | { | ||
| 460 | __outS->writeProxy(v); | ||
| 461 | } | ||
| 462 | |||
| 463 | void | ||
| 464 | Ehr::ice_readListDocumentsRequestPrx(const ::Ice::InputStreamPtr& __inS, ::Ehr::ListDocumentsRequestPrx& v) | ||
| 465 | { | ||
| 466 | ::Ice::ObjectPrx proxy = __inS->readProxy(); | ||
| 467 | if(!proxy) | ||
| 468 | { | ||
| 469 | v = 0; | ||
| 470 | } | ||
| 471 | else | ||
| 472 | { | ||
| 473 | v = new ::IceProxy::Ehr::ListDocumentsRequest; | ||
| 474 | v->__copyFrom(proxy); | ||
| 475 | } | ||
| 476 | } | ||
| 477 | |||
| 478 | void | ||
| 479 | Ehr::ice_writeListDocumentsRequest(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::ListDocumentsRequestPtr& v) | ||
| 480 | { | ||
| 481 | __outS->writeObject(v); | ||
| 482 | } | ||
| 483 | |||
| 484 | void | ||
| 485 | Ehr::ice_readListDocumentsRequest(const ::Ice::InputStreamPtr& __inS, ::Ehr::ListDocumentsRequestPtr& __v) | ||
| 486 | { | ||
| 487 | ::Ice::ReadObjectCallbackPtr __cb = new ::Ice::ReadObjectCallbackI(::Ehr::__patch__ListDocumentsRequestPtr, &__v); | ||
| 488 | __inS->readObject(__cb); | ||
| 489 | } | ||
| 490 | |||
| 491 | void | ||
| 492 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::FindDocumentsRequestPrx& v) | ||
| 493 | { | ||
| 494 | ::Ice::ObjectPrx proxy; | ||
| 495 | __is->read(proxy); | ||
| 496 | if(!proxy) | ||
| 497 | { | ||
| 498 | v = 0; | ||
| 499 | } | ||
| 500 | else | ||
| 501 | { | ||
| 502 | v = new ::IceProxy::Ehr::FindDocumentsRequest; | ||
| 503 | v->__copyFrom(proxy); | ||
| 504 | } | ||
| 505 | } | ||
| 506 | |||
| 507 | void | ||
| 508 | Ehr::ice_writeFindDocumentsRequestPrx(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::FindDocumentsRequestPrx& v) | ||
| 509 | { | ||
| 510 | __outS->writeProxy(v); | ||
| 511 | } | ||
| 512 | |||
| 513 | void | ||
| 514 | Ehr::ice_readFindDocumentsRequestPrx(const ::Ice::InputStreamPtr& __inS, ::Ehr::FindDocumentsRequestPrx& v) | ||
| 515 | { | ||
| 516 | ::Ice::ObjectPrx proxy = __inS->readProxy(); | ||
| 517 | if(!proxy) | ||
| 518 | { | ||
| 519 | v = 0; | ||
| 520 | } | ||
| 521 | else | ||
| 522 | { | ||
| 523 | v = new ::IceProxy::Ehr::FindDocumentsRequest; | ||
| 524 | v->__copyFrom(proxy); | ||
| 525 | } | ||
| 526 | } | ||
| 527 | |||
| 528 | void | ||
| 529 | Ehr::ice_writeFindDocumentsRequest(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::FindDocumentsRequestPtr& v) | ||
| 530 | { | ||
| 531 | __outS->writeObject(v); | ||
| 532 | } | ||
| 533 | |||
| 534 | void | ||
| 535 | Ehr::ice_readFindDocumentsRequest(const ::Ice::InputStreamPtr& __inS, ::Ehr::FindDocumentsRequestPtr& __v) | ||
| 536 | { | ||
| 537 | ::Ice::ReadObjectCallbackPtr __cb = new ::Ice::ReadObjectCallbackI(::Ehr::__patch__FindDocumentsRequestPtr, &__v); | ||
| 538 | __inS->readObject(__cb); | ||
| 539 | } | ||
| 540 | |||
| 541 | void | ||
| 542 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::CreatePermissionRequestPrx& v) | ||
| 543 | { | ||
| 544 | ::Ice::ObjectPrx proxy; | ||
| 545 | __is->read(proxy); | ||
| 546 | if(!proxy) | ||
| 547 | { | ||
| 548 | v = 0; | ||
| 549 | } | ||
| 550 | else | ||
| 551 | { | ||
| 552 | v = new ::IceProxy::Ehr::CreatePermissionRequest; | ||
| 553 | v->__copyFrom(proxy); | ||
| 554 | } | ||
| 555 | } | ||
| 556 | |||
| 557 | void | ||
| 558 | Ehr::ice_writeCreatePermissionRequestPrx(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::CreatePermissionRequestPrx& v) | ||
| 559 | { | ||
| 560 | __outS->writeProxy(v); | ||
| 561 | } | ||
| 562 | |||
| 563 | void | ||
| 564 | Ehr::ice_readCreatePermissionRequestPrx(const ::Ice::InputStreamPtr& __inS, ::Ehr::CreatePermissionRequestPrx& v) | ||
| 565 | { | ||
| 566 | ::Ice::ObjectPrx proxy = __inS->readProxy(); | ||
| 567 | if(!proxy) | ||
| 568 | { | ||
| 569 | v = 0; | ||
| 570 | } | ||
| 571 | else | ||
| 572 | { | ||
| 573 | v = new ::IceProxy::Ehr::CreatePermissionRequest; | ||
| 574 | v->__copyFrom(proxy); | ||
| 575 | } | ||
| 576 | } | ||
| 577 | |||
| 578 | void | ||
| 579 | Ehr::ice_writeCreatePermissionRequest(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::CreatePermissionRequestPtr& v) | ||
| 580 | { | ||
| 581 | __outS->writeObject(v); | ||
| 582 | } | ||
| 583 | |||
| 584 | void | ||
| 585 | Ehr::ice_readCreatePermissionRequest(const ::Ice::InputStreamPtr& __inS, ::Ehr::CreatePermissionRequestPtr& __v) | ||
| 586 | { | ||
| 587 | ::Ice::ReadObjectCallbackPtr __cb = new ::Ice::ReadObjectCallbackI(::Ehr::__patch__CreatePermissionRequestPtr, &__v); | ||
| 588 | __inS->readObject(__cb); | ||
| 589 | } | ||
| 590 | |||
| 591 | void | ||
| 592 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::SetDefaultAccessRequestPrx& v) | ||
| 593 | { | ||
| 594 | ::Ice::ObjectPrx proxy; | ||
| 595 | __is->read(proxy); | ||
| 596 | if(!proxy) | ||
| 597 | { | ||
| 598 | v = 0; | ||
| 599 | } | ||
| 600 | else | ||
| 601 | { | ||
| 602 | v = new ::IceProxy::Ehr::SetDefaultAccessRequest; | ||
| 603 | v->__copyFrom(proxy); | ||
| 604 | } | ||
| 605 | } | ||
| 606 | |||
| 607 | void | ||
| 608 | Ehr::ice_writeSetDefaultAccessRequestPrx(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::SetDefaultAccessRequestPrx& v) | ||
| 609 | { | ||
| 610 | __outS->writeProxy(v); | ||
| 611 | } | ||
| 612 | |||
| 613 | void | ||
| 614 | Ehr::ice_readSetDefaultAccessRequestPrx(const ::Ice::InputStreamPtr& __inS, ::Ehr::SetDefaultAccessRequestPrx& v) | ||
| 615 | { | ||
| 616 | ::Ice::ObjectPrx proxy = __inS->readProxy(); | ||
| 617 | if(!proxy) | ||
| 618 | { | ||
| 619 | v = 0; | ||
| 620 | } | ||
| 621 | else | ||
| 622 | { | ||
| 623 | v = new ::IceProxy::Ehr::SetDefaultAccessRequest; | ||
| 624 | v->__copyFrom(proxy); | ||
| 625 | } | ||
| 626 | } | ||
| 627 | |||
| 628 | void | ||
| 629 | Ehr::ice_writeSetDefaultAccessRequest(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::SetDefaultAccessRequestPtr& v) | ||
| 630 | { | ||
| 631 | __outS->writeObject(v); | ||
| 632 | } | ||
| 633 | |||
| 634 | void | ||
| 635 | Ehr::ice_readSetDefaultAccessRequest(const ::Ice::InputStreamPtr& __inS, ::Ehr::SetDefaultAccessRequestPtr& __v) | ||
| 636 | { | ||
| 637 | ::Ice::ReadObjectCallbackPtr __cb = new ::Ice::ReadObjectCallbackI(::Ehr::__patch__SetDefaultAccessRequestPtr, &__v); | ||
| 638 | __inS->readObject(__cb); | ||
| 639 | } | ||
| 640 | |||
| 641 | void | ||
| 642 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::ListPermissionsRequestPrx& v) | ||
| 643 | { | ||
| 644 | ::Ice::ObjectPrx proxy; | ||
| 645 | __is->read(proxy); | ||
| 646 | if(!proxy) | ||
| 647 | { | ||
| 648 | v = 0; | ||
| 649 | } | ||
| 650 | else | ||
| 651 | { | ||
| 652 | v = new ::IceProxy::Ehr::ListPermissionsRequest; | ||
| 653 | v->__copyFrom(proxy); | ||
| 654 | } | ||
| 655 | } | ||
| 656 | |||
| 657 | void | ||
| 658 | Ehr::ice_writeListPermissionsRequestPrx(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::ListPermissionsRequestPrx& v) | ||
| 659 | { | ||
| 660 | __outS->writeProxy(v); | ||
| 661 | } | ||
| 662 | |||
| 663 | void | ||
| 664 | Ehr::ice_readListPermissionsRequestPrx(const ::Ice::InputStreamPtr& __inS, ::Ehr::ListPermissionsRequestPrx& v) | ||
| 665 | { | ||
| 666 | ::Ice::ObjectPrx proxy = __inS->readProxy(); | ||
| 667 | if(!proxy) | ||
| 668 | { | ||
| 669 | v = 0; | ||
| 670 | } | ||
| 671 | else | ||
| 672 | { | ||
| 673 | v = new ::IceProxy::Ehr::ListPermissionsRequest; | ||
| 674 | v->__copyFrom(proxy); | ||
| 675 | } | ||
| 676 | } | ||
| 677 | |||
| 678 | void | ||
| 679 | Ehr::ice_writeListPermissionsRequest(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::ListPermissionsRequestPtr& v) | ||
| 680 | { | ||
| 681 | __outS->writeObject(v); | ||
| 682 | } | ||
| 683 | |||
| 684 | void | ||
| 685 | Ehr::ice_readListPermissionsRequest(const ::Ice::InputStreamPtr& __inS, ::Ehr::ListPermissionsRequestPtr& __v) | ||
| 686 | { | ||
| 687 | ::Ice::ReadObjectCallbackPtr __cb = new ::Ice::ReadObjectCallbackI(::Ehr::__patch__ListPermissionsRequestPtr, &__v); | ||
| 688 | __inS->readObject(__cb); | ||
| 689 | } | ||
| 690 | |||
| 691 | void | ||
| 692 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::RemovePermissionRequestPrx& v) | ||
| 693 | { | ||
| 694 | ::Ice::ObjectPrx proxy; | ||
| 695 | __is->read(proxy); | ||
| 696 | if(!proxy) | ||
| 697 | { | ||
| 698 | v = 0; | ||
| 699 | } | ||
| 700 | else | ||
| 701 | { | ||
| 702 | v = new ::IceProxy::Ehr::RemovePermissionRequest; | ||
| 703 | v->__copyFrom(proxy); | ||
| 704 | } | ||
| 705 | } | ||
| 706 | |||
| 707 | void | ||
| 708 | Ehr::ice_writeRemovePermissionRequestPrx(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::RemovePermissionRequestPrx& v) | ||
| 709 | { | ||
| 710 | __outS->writeProxy(v); | ||
| 711 | } | ||
| 712 | |||
| 713 | void | ||
| 714 | Ehr::ice_readRemovePermissionRequestPrx(const ::Ice::InputStreamPtr& __inS, ::Ehr::RemovePermissionRequestPrx& v) | ||
| 715 | { | ||
| 716 | ::Ice::ObjectPrx proxy = __inS->readProxy(); | ||
| 717 | if(!proxy) | ||
| 718 | { | ||
| 719 | v = 0; | ||
| 720 | } | ||
| 721 | else | ||
| 722 | { | ||
| 723 | v = new ::IceProxy::Ehr::RemovePermissionRequest; | ||
| 724 | v->__copyFrom(proxy); | ||
| 725 | } | ||
| 726 | } | ||
| 727 | |||
| 728 | void | ||
| 729 | Ehr::ice_writeRemovePermissionRequest(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::RemovePermissionRequestPtr& v) | ||
| 730 | { | ||
| 731 | __outS->writeObject(v); | ||
| 732 | } | ||
| 733 | |||
| 734 | void | ||
| 735 | Ehr::ice_readRemovePermissionRequest(const ::Ice::InputStreamPtr& __inS, ::Ehr::RemovePermissionRequestPtr& __v) | ||
| 736 | { | ||
| 737 | ::Ice::ReadObjectCallbackPtr __cb = new ::Ice::ReadObjectCallbackI(::Ehr::__patch__RemovePermissionRequestPtr, &__v); | ||
| 738 | __inS->readObject(__cb); | ||
| 739 | } | ||
| 740 | |||
| 741 | void | ||
| 742 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::ProviderPrx& v) | ||
| 743 | { | ||
| 744 | ::Ice::ObjectPrx proxy; | ||
| 745 | __is->read(proxy); | ||
| 746 | if(!proxy) | ||
| 747 | { | ||
| 748 | v = 0; | ||
| 749 | } | ||
| 750 | else | ||
| 751 | { | ||
| 752 | v = new ::IceProxy::Ehr::Provider; | ||
| 753 | v->__copyFrom(proxy); | ||
| 754 | } | ||
| 755 | } | ||
| 756 | |||
| 757 | void | ||
| 758 | Ehr::ice_writeProviderPrx(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::ProviderPrx& v) | ||
| 759 | { | ||
| 760 | __outS->writeProxy(v); | ||
| 761 | } | ||
| 762 | |||
| 763 | void | ||
| 764 | Ehr::ice_readProviderPrx(const ::Ice::InputStreamPtr& __inS, ::Ehr::ProviderPrx& v) | ||
| 765 | { | ||
| 766 | ::Ice::ObjectPrx proxy = __inS->readProxy(); | ||
| 767 | if(!proxy) | ||
| 768 | { | ||
| 769 | v = 0; | ||
| 770 | } | ||
| 771 | else | ||
| 772 | { | ||
| 773 | v = new ::IceProxy::Ehr::Provider; | ||
| 774 | v->__copyFrom(proxy); | ||
| 775 | } | ||
| 776 | } | ||
| 777 | |||
| 778 | void | ||
| 779 | Ehr::ice_writeProvider(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::ProviderPtr& v) | ||
| 780 | { | ||
| 781 | __outS->writeObject(v); | ||
| 782 | } | ||
| 783 | |||
| 784 | void | ||
| 785 | Ehr::ice_readProvider(const ::Ice::InputStreamPtr& __inS, ::Ehr::ProviderPtr& __v) | ||
| 786 | { | ||
| 787 | ::Ice::ReadObjectCallbackPtr __cb = new ::Ice::ReadObjectCallbackI(::Ehr::__patch__ProviderPtr, &__v); | ||
| 788 | __inS->readObject(__cb); | ||
| 789 | } | ||
| 790 | |||
| 791 | Ehr::EhrException::EhrException(const ::std::string& __ice_what) : | ||
| 792 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 793 | UserException(), | ||
| 794 | #else | ||
| 795 | ::Ice::UserException(), | ||
| 796 | #endif | ||
| 797 | what(__ice_what) | ||
| 798 | { | ||
| 799 | } | ||
| 800 | |||
| 801 | Ehr::EhrException::~EhrException() throw() | ||
| 802 | { | ||
| 803 | } | ||
| 804 | |||
| 805 | static const char* __Ehr__EhrException_name = "Ehr::EhrException"; | ||
| 806 | |||
| 807 | ::std::string | ||
| 808 | Ehr::EhrException::ice_name() const | ||
| 809 | { | ||
| 810 | return __Ehr__EhrException_name; | ||
| 811 | } | ||
| 812 | |||
| 813 | ::Ice::Exception* | ||
| 814 | Ehr::EhrException::ice_clone() const | ||
| 815 | { | ||
| 816 | return new EhrException(*this); | ||
| 817 | } | ||
| 818 | |||
| 819 | void | ||
| 820 | Ehr::EhrException::ice_throw() const | ||
| 821 | { | ||
| 822 | throw *this; | ||
| 823 | } | ||
| 824 | |||
| 825 | void | ||
| 826 | Ehr::EhrException::__write(::IceInternal::BasicStream* __os) const | ||
| 827 | { | ||
| 828 | __os->write(::std::string("::Ehr::EhrException"), false); | ||
| 829 | __os->startWriteSlice(); | ||
| 830 | __os->write(what); | ||
| 831 | __os->endWriteSlice(); | ||
| 832 | } | ||
| 833 | |||
| 834 | void | ||
| 835 | Ehr::EhrException::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 836 | { | ||
| 837 | if(__rid) | ||
| 838 | { | ||
| 839 | ::std::string myId; | ||
| 840 | __is->read(myId, false); | ||
| 841 | } | ||
| 842 | __is->startReadSlice(); | ||
| 843 | __is->read(what); | ||
| 844 | __is->endReadSlice(); | ||
| 845 | } | ||
| 846 | |||
| 847 | void | ||
| 848 | Ehr::EhrException::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 849 | { | ||
| 850 | __outS->writeString(::std::string("::Ehr::EhrException")); | ||
| 851 | __outS->startSlice(); | ||
| 852 | __outS->writeString(what); | ||
| 853 | __outS->endSlice(); | ||
| 854 | } | ||
| 855 | |||
| 856 | void | ||
| 857 | Ehr::EhrException::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 858 | { | ||
| 859 | if(__rid) | ||
| 860 | { | ||
| 861 | __inS->readString(); | ||
| 862 | } | ||
| 863 | __inS->startSlice(); | ||
| 864 | what = __inS->readString(); | ||
| 865 | __inS->endSlice(); | ||
| 866 | } | ||
| 867 | |||
| 868 | struct __F__Ehr__EhrException : public ::IceInternal::UserExceptionFactory | ||
| 869 | { | ||
| 870 | virtual void | ||
| 871 | createAndThrow() | ||
| 872 | { | ||
| 873 | throw ::Ehr::EhrException(); | ||
| 874 | } | ||
| 875 | }; | ||
| 876 | |||
| 877 | static ::IceInternal::UserExceptionFactoryPtr __F__Ehr__EhrException__Ptr = new __F__Ehr__EhrException; | ||
| 878 | |||
| 879 | const ::IceInternal::UserExceptionFactoryPtr& | ||
| 880 | Ehr::EhrException::ice_factory() | ||
| 881 | { | ||
| 882 | return __F__Ehr__EhrException__Ptr; | ||
| 883 | } | ||
| 884 | |||
| 885 | class __F__Ehr__EhrException__Init | ||
| 886 | { | ||
| 887 | public: | ||
| 888 | |||
| 889 | __F__Ehr__EhrException__Init() | ||
| 890 | { | ||
| 891 | ::IceInternal::factoryTable->addExceptionFactory("::Ehr::EhrException", ::Ehr::EhrException::ice_factory()); | ||
| 892 | } | ||
| 893 | |||
| 894 | ~__F__Ehr__EhrException__Init() | ||
| 895 | { | ||
| 896 | ::IceInternal::factoryTable->removeExceptionFactory("::Ehr::EhrException"); | ||
| 897 | } | ||
| 898 | }; | ||
| 899 | |||
| 900 | static __F__Ehr__EhrException__Init __F__Ehr__EhrException__i; | ||
| 901 | |||
| 902 | #ifdef __APPLE__ | ||
| 903 | extern "C" { void __F__Ehr__EhrException__initializer() {} } | ||
| 904 | #endif | ||
| 905 | |||
| 906 | Ehr::InvalidRequestException::InvalidRequestException(const ::std::string& __ice_what) : | ||
| 907 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 908 | EhrException(__ice_what) | ||
| 909 | #else | ||
| 910 | ::Ehr::EhrException(__ice_what) | ||
| 911 | #endif | ||
| 912 | { | ||
| 913 | } | ||
| 914 | |||
| 915 | Ehr::InvalidRequestException::~InvalidRequestException() throw() | ||
| 916 | { | ||
| 917 | } | ||
| 918 | |||
| 919 | static const char* __Ehr__InvalidRequestException_name = "Ehr::InvalidRequestException"; | ||
| 920 | |||
| 921 | ::std::string | ||
| 922 | Ehr::InvalidRequestException::ice_name() const | ||
| 923 | { | ||
| 924 | return __Ehr__InvalidRequestException_name; | ||
| 925 | } | ||
| 926 | |||
| 927 | ::Ice::Exception* | ||
| 928 | Ehr::InvalidRequestException::ice_clone() const | ||
| 929 | { | ||
| 930 | return new InvalidRequestException(*this); | ||
| 931 | } | ||
| 932 | |||
| 933 | void | ||
| 934 | Ehr::InvalidRequestException::ice_throw() const | ||
| 935 | { | ||
| 936 | throw *this; | ||
| 937 | } | ||
| 938 | |||
| 939 | void | ||
| 940 | Ehr::InvalidRequestException::__write(::IceInternal::BasicStream* __os) const | ||
| 941 | { | ||
| 942 | __os->write(::std::string("::Ehr::InvalidRequestException"), false); | ||
| 943 | __os->startWriteSlice(); | ||
| 944 | __os->endWriteSlice(); | ||
| 945 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 946 | EhrException::__write(__os); | ||
| 947 | #else | ||
| 948 | ::Ehr::EhrException::__write(__os); | ||
| 949 | #endif | ||
| 950 | } | ||
| 951 | |||
| 952 | void | ||
| 953 | Ehr::InvalidRequestException::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 954 | { | ||
| 955 | if(__rid) | ||
| 956 | { | ||
| 957 | ::std::string myId; | ||
| 958 | __is->read(myId, false); | ||
| 959 | } | ||
| 960 | __is->startReadSlice(); | ||
| 961 | __is->endReadSlice(); | ||
| 962 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 963 | EhrException::__read(__is, true); | ||
| 964 | #else | ||
| 965 | ::Ehr::EhrException::__read(__is, true); | ||
| 966 | #endif | ||
| 967 | } | ||
| 968 | |||
| 969 | void | ||
| 970 | Ehr::InvalidRequestException::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 971 | { | ||
| 972 | __outS->writeString(::std::string("::Ehr::InvalidRequestException")); | ||
| 973 | __outS->startSlice(); | ||
| 974 | __outS->endSlice(); | ||
| 975 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 976 | EhrException::__write(__outS); | ||
| 977 | #else | ||
| 978 | ::Ehr::EhrException::__write(__outS); | ||
| 979 | #endif | ||
| 980 | } | ||
| 981 | |||
| 982 | void | ||
| 983 | Ehr::InvalidRequestException::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 984 | { | ||
| 985 | if(__rid) | ||
| 986 | { | ||
| 987 | __inS->readString(); | ||
| 988 | } | ||
| 989 | __inS->startSlice(); | ||
| 990 | __inS->endSlice(); | ||
| 991 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 992 | EhrException::__read(__inS, true); | ||
| 993 | #else | ||
| 994 | ::Ehr::EhrException::__read(__inS, true); | ||
| 995 | #endif | ||
| 996 | } | ||
| 997 | |||
| 998 | struct __F__Ehr__InvalidRequestException : public ::IceInternal::UserExceptionFactory | ||
| 999 | { | ||
| 1000 | virtual void | ||
| 1001 | createAndThrow() | ||
| 1002 | { | ||
| 1003 | throw ::Ehr::InvalidRequestException(); | ||
| 1004 | } | ||
| 1005 | }; | ||
| 1006 | |||
| 1007 | static ::IceInternal::UserExceptionFactoryPtr __F__Ehr__InvalidRequestException__Ptr = new __F__Ehr__InvalidRequestException; | ||
| 1008 | |||
| 1009 | const ::IceInternal::UserExceptionFactoryPtr& | ||
| 1010 | Ehr::InvalidRequestException::ice_factory() | ||
| 1011 | { | ||
| 1012 | return __F__Ehr__InvalidRequestException__Ptr; | ||
| 1013 | } | ||
| 1014 | |||
| 1015 | class __F__Ehr__InvalidRequestException__Init | ||
| 1016 | { | ||
| 1017 | public: | ||
| 1018 | |||
| 1019 | __F__Ehr__InvalidRequestException__Init() | ||
| 1020 | { | ||
| 1021 | ::IceInternal::factoryTable->addExceptionFactory("::Ehr::InvalidRequestException", ::Ehr::InvalidRequestException::ice_factory()); | ||
| 1022 | } | ||
| 1023 | |||
| 1024 | ~__F__Ehr__InvalidRequestException__Init() | ||
| 1025 | { | ||
| 1026 | ::IceInternal::factoryTable->removeExceptionFactory("::Ehr::InvalidRequestException"); | ||
| 1027 | } | ||
| 1028 | }; | ||
| 1029 | |||
| 1030 | static __F__Ehr__InvalidRequestException__Init __F__Ehr__InvalidRequestException__i; | ||
| 1031 | |||
| 1032 | #ifdef __APPLE__ | ||
| 1033 | extern "C" { void __F__Ehr__InvalidRequestException__initializer() {} } | ||
| 1034 | #endif | ||
| 1035 | |||
| 1036 | Ehr::InvalidAccountException::InvalidAccountException(const ::std::string& __ice_what) : | ||
| 1037 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1038 | InvalidRequestException(__ice_what) | ||
| 1039 | #else | ||
| 1040 | ::Ehr::InvalidRequestException(__ice_what) | ||
| 1041 | #endif | ||
| 1042 | { | ||
| 1043 | } | ||
| 1044 | |||
| 1045 | Ehr::InvalidAccountException::~InvalidAccountException() throw() | ||
| 1046 | { | ||
| 1047 | } | ||
| 1048 | |||
| 1049 | static const char* __Ehr__InvalidAccountException_name = "Ehr::InvalidAccountException"; | ||
| 1050 | |||
| 1051 | ::std::string | ||
| 1052 | Ehr::InvalidAccountException::ice_name() const | ||
| 1053 | { | ||
| 1054 | return __Ehr__InvalidAccountException_name; | ||
| 1055 | } | ||
| 1056 | |||
| 1057 | ::Ice::Exception* | ||
| 1058 | Ehr::InvalidAccountException::ice_clone() const | ||
| 1059 | { | ||
| 1060 | return new InvalidAccountException(*this); | ||
| 1061 | } | ||
| 1062 | |||
| 1063 | void | ||
| 1064 | Ehr::InvalidAccountException::ice_throw() const | ||
| 1065 | { | ||
| 1066 | throw *this; | ||
| 1067 | } | ||
| 1068 | |||
| 1069 | void | ||
| 1070 | Ehr::InvalidAccountException::__write(::IceInternal::BasicStream* __os) const | ||
| 1071 | { | ||
| 1072 | __os->write(::std::string("::Ehr::InvalidAccountException"), false); | ||
| 1073 | __os->startWriteSlice(); | ||
| 1074 | __os->endWriteSlice(); | ||
| 1075 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1076 | InvalidRequestException::__write(__os); | ||
| 1077 | #else | ||
| 1078 | ::Ehr::InvalidRequestException::__write(__os); | ||
| 1079 | #endif | ||
| 1080 | } | ||
| 1081 | |||
| 1082 | void | ||
| 1083 | Ehr::InvalidAccountException::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 1084 | { | ||
| 1085 | if(__rid) | ||
| 1086 | { | ||
| 1087 | ::std::string myId; | ||
| 1088 | __is->read(myId, false); | ||
| 1089 | } | ||
| 1090 | __is->startReadSlice(); | ||
| 1091 | __is->endReadSlice(); | ||
| 1092 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1093 | InvalidRequestException::__read(__is, true); | ||
| 1094 | #else | ||
| 1095 | ::Ehr::InvalidRequestException::__read(__is, true); | ||
| 1096 | #endif | ||
| 1097 | } | ||
| 1098 | |||
| 1099 | void | ||
| 1100 | Ehr::InvalidAccountException::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 1101 | { | ||
| 1102 | __outS->writeString(::std::string("::Ehr::InvalidAccountException")); | ||
| 1103 | __outS->startSlice(); | ||
| 1104 | __outS->endSlice(); | ||
| 1105 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1106 | InvalidRequestException::__write(__outS); | ||
| 1107 | #else | ||
| 1108 | ::Ehr::InvalidRequestException::__write(__outS); | ||
| 1109 | #endif | ||
| 1110 | } | ||
| 1111 | |||
| 1112 | void | ||
| 1113 | Ehr::InvalidAccountException::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 1114 | { | ||
| 1115 | if(__rid) | ||
| 1116 | { | ||
| 1117 | __inS->readString(); | ||
| 1118 | } | ||
| 1119 | __inS->startSlice(); | ||
| 1120 | __inS->endSlice(); | ||
| 1121 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1122 | InvalidRequestException::__read(__inS, true); | ||
| 1123 | #else | ||
| 1124 | ::Ehr::InvalidRequestException::__read(__inS, true); | ||
| 1125 | #endif | ||
| 1126 | } | ||
| 1127 | |||
| 1128 | struct __F__Ehr__InvalidAccountException : public ::IceInternal::UserExceptionFactory | ||
| 1129 | { | ||
| 1130 | virtual void | ||
| 1131 | createAndThrow() | ||
| 1132 | { | ||
| 1133 | throw ::Ehr::InvalidAccountException(); | ||
| 1134 | } | ||
| 1135 | }; | ||
| 1136 | |||
| 1137 | static ::IceInternal::UserExceptionFactoryPtr __F__Ehr__InvalidAccountException__Ptr = new __F__Ehr__InvalidAccountException; | ||
| 1138 | |||
| 1139 | const ::IceInternal::UserExceptionFactoryPtr& | ||
| 1140 | Ehr::InvalidAccountException::ice_factory() | ||
| 1141 | { | ||
| 1142 | return __F__Ehr__InvalidAccountException__Ptr; | ||
| 1143 | } | ||
| 1144 | |||
| 1145 | class __F__Ehr__InvalidAccountException__Init | ||
| 1146 | { | ||
| 1147 | public: | ||
| 1148 | |||
| 1149 | __F__Ehr__InvalidAccountException__Init() | ||
| 1150 | { | ||
| 1151 | ::IceInternal::factoryTable->addExceptionFactory("::Ehr::InvalidAccountException", ::Ehr::InvalidAccountException::ice_factory()); | ||
| 1152 | } | ||
| 1153 | |||
| 1154 | ~__F__Ehr__InvalidAccountException__Init() | ||
| 1155 | { | ||
| 1156 | ::IceInternal::factoryTable->removeExceptionFactory("::Ehr::InvalidAccountException"); | ||
| 1157 | } | ||
| 1158 | }; | ||
| 1159 | |||
| 1160 | static __F__Ehr__InvalidAccountException__Init __F__Ehr__InvalidAccountException__i; | ||
| 1161 | |||
| 1162 | #ifdef __APPLE__ | ||
| 1163 | extern "C" { void __F__Ehr__InvalidAccountException__initializer() {} } | ||
| 1164 | #endif | ||
| 1165 | |||
| 1166 | Ehr::SignatureException::SignatureException(const ::std::string& __ice_what) : | ||
| 1167 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1168 | EhrException(__ice_what) | ||
| 1169 | #else | ||
| 1170 | ::Ehr::EhrException(__ice_what) | ||
| 1171 | #endif | ||
| 1172 | { | ||
| 1173 | } | ||
| 1174 | |||
| 1175 | Ehr::SignatureException::~SignatureException() throw() | ||
| 1176 | { | ||
| 1177 | } | ||
| 1178 | |||
| 1179 | static const char* __Ehr__SignatureException_name = "Ehr::SignatureException"; | ||
| 1180 | |||
| 1181 | ::std::string | ||
| 1182 | Ehr::SignatureException::ice_name() const | ||
| 1183 | { | ||
| 1184 | return __Ehr__SignatureException_name; | ||
| 1185 | } | ||
| 1186 | |||
| 1187 | ::Ice::Exception* | ||
| 1188 | Ehr::SignatureException::ice_clone() const | ||
| 1189 | { | ||
| 1190 | return new SignatureException(*this); | ||
| 1191 | } | ||
| 1192 | |||
| 1193 | void | ||
| 1194 | Ehr::SignatureException::ice_throw() const | ||
| 1195 | { | ||
| 1196 | throw *this; | ||
| 1197 | } | ||
| 1198 | |||
| 1199 | void | ||
| 1200 | Ehr::SignatureException::__write(::IceInternal::BasicStream* __os) const | ||
| 1201 | { | ||
| 1202 | __os->write(::std::string("::Ehr::SignatureException"), false); | ||
| 1203 | __os->startWriteSlice(); | ||
| 1204 | __os->endWriteSlice(); | ||
| 1205 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1206 | EhrException::__write(__os); | ||
| 1207 | #else | ||
| 1208 | ::Ehr::EhrException::__write(__os); | ||
| 1209 | #endif | ||
| 1210 | } | ||
| 1211 | |||
| 1212 | void | ||
| 1213 | Ehr::SignatureException::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 1214 | { | ||
| 1215 | if(__rid) | ||
| 1216 | { | ||
| 1217 | ::std::string myId; | ||
| 1218 | __is->read(myId, false); | ||
| 1219 | } | ||
| 1220 | __is->startReadSlice(); | ||
| 1221 | __is->endReadSlice(); | ||
| 1222 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1223 | EhrException::__read(__is, true); | ||
| 1224 | #else | ||
| 1225 | ::Ehr::EhrException::__read(__is, true); | ||
| 1226 | #endif | ||
| 1227 | } | ||
| 1228 | |||
| 1229 | void | ||
| 1230 | Ehr::SignatureException::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 1231 | { | ||
| 1232 | __outS->writeString(::std::string("::Ehr::SignatureException")); | ||
| 1233 | __outS->startSlice(); | ||
| 1234 | __outS->endSlice(); | ||
| 1235 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1236 | EhrException::__write(__outS); | ||
| 1237 | #else | ||
| 1238 | ::Ehr::EhrException::__write(__outS); | ||
| 1239 | #endif | ||
| 1240 | } | ||
| 1241 | |||
| 1242 | void | ||
| 1243 | Ehr::SignatureException::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 1244 | { | ||
| 1245 | if(__rid) | ||
| 1246 | { | ||
| 1247 | __inS->readString(); | ||
| 1248 | } | ||
| 1249 | __inS->startSlice(); | ||
| 1250 | __inS->endSlice(); | ||
| 1251 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1252 | EhrException::__read(__inS, true); | ||
| 1253 | #else | ||
| 1254 | ::Ehr::EhrException::__read(__inS, true); | ||
| 1255 | #endif | ||
| 1256 | } | ||
| 1257 | |||
| 1258 | struct __F__Ehr__SignatureException : public ::IceInternal::UserExceptionFactory | ||
| 1259 | { | ||
| 1260 | virtual void | ||
| 1261 | createAndThrow() | ||
| 1262 | { | ||
| 1263 | throw ::Ehr::SignatureException(); | ||
| 1264 | } | ||
| 1265 | }; | ||
| 1266 | |||
| 1267 | static ::IceInternal::UserExceptionFactoryPtr __F__Ehr__SignatureException__Ptr = new __F__Ehr__SignatureException; | ||
| 1268 | |||
| 1269 | const ::IceInternal::UserExceptionFactoryPtr& | ||
| 1270 | Ehr::SignatureException::ice_factory() | ||
| 1271 | { | ||
| 1272 | return __F__Ehr__SignatureException__Ptr; | ||
| 1273 | } | ||
| 1274 | |||
| 1275 | class __F__Ehr__SignatureException__Init | ||
| 1276 | { | ||
| 1277 | public: | ||
| 1278 | |||
| 1279 | __F__Ehr__SignatureException__Init() | ||
| 1280 | { | ||
| 1281 | ::IceInternal::factoryTable->addExceptionFactory("::Ehr::SignatureException", ::Ehr::SignatureException::ice_factory()); | ||
| 1282 | } | ||
| 1283 | |||
| 1284 | ~__F__Ehr__SignatureException__Init() | ||
| 1285 | { | ||
| 1286 | ::IceInternal::factoryTable->removeExceptionFactory("::Ehr::SignatureException"); | ||
| 1287 | } | ||
| 1288 | }; | ||
| 1289 | |||
| 1290 | static __F__Ehr__SignatureException__Init __F__Ehr__SignatureException__i; | ||
| 1291 | |||
| 1292 | #ifdef __APPLE__ | ||
| 1293 | extern "C" { void __F__Ehr__SignatureException__initializer() {} } | ||
| 1294 | #endif | ||
| 1295 | |||
| 1296 | Ehr::PermissionDeniedException::PermissionDeniedException(const ::std::string& __ice_what) : | ||
| 1297 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1298 | EhrException(__ice_what) | ||
| 1299 | #else | ||
| 1300 | ::Ehr::EhrException(__ice_what) | ||
| 1301 | #endif | ||
| 1302 | { | ||
| 1303 | } | ||
| 1304 | |||
| 1305 | Ehr::PermissionDeniedException::~PermissionDeniedException() throw() | ||
| 1306 | { | ||
| 1307 | } | ||
| 1308 | |||
| 1309 | static const char* __Ehr__PermissionDeniedException_name = "Ehr::PermissionDeniedException"; | ||
| 1310 | |||
| 1311 | ::std::string | ||
| 1312 | Ehr::PermissionDeniedException::ice_name() const | ||
| 1313 | { | ||
| 1314 | return __Ehr__PermissionDeniedException_name; | ||
| 1315 | } | ||
| 1316 | |||
| 1317 | ::Ice::Exception* | ||
| 1318 | Ehr::PermissionDeniedException::ice_clone() const | ||
| 1319 | { | ||
| 1320 | return new PermissionDeniedException(*this); | ||
| 1321 | } | ||
| 1322 | |||
| 1323 | void | ||
| 1324 | Ehr::PermissionDeniedException::ice_throw() const | ||
| 1325 | { | ||
| 1326 | throw *this; | ||
| 1327 | } | ||
| 1328 | |||
| 1329 | void | ||
| 1330 | Ehr::PermissionDeniedException::__write(::IceInternal::BasicStream* __os) const | ||
| 1331 | { | ||
| 1332 | __os->write(::std::string("::Ehr::PermissionDeniedException"), false); | ||
| 1333 | __os->startWriteSlice(); | ||
| 1334 | __os->endWriteSlice(); | ||
| 1335 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1336 | EhrException::__write(__os); | ||
| 1337 | #else | ||
| 1338 | ::Ehr::EhrException::__write(__os); | ||
| 1339 | #endif | ||
| 1340 | } | ||
| 1341 | |||
| 1342 | void | ||
| 1343 | Ehr::PermissionDeniedException::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 1344 | { | ||
| 1345 | if(__rid) | ||
| 1346 | { | ||
| 1347 | ::std::string myId; | ||
| 1348 | __is->read(myId, false); | ||
| 1349 | } | ||
| 1350 | __is->startReadSlice(); | ||
| 1351 | __is->endReadSlice(); | ||
| 1352 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1353 | EhrException::__read(__is, true); | ||
| 1354 | #else | ||
| 1355 | ::Ehr::EhrException::__read(__is, true); | ||
| 1356 | #endif | ||
| 1357 | } | ||
| 1358 | |||
| 1359 | void | ||
| 1360 | Ehr::PermissionDeniedException::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 1361 | { | ||
| 1362 | __outS->writeString(::std::string("::Ehr::PermissionDeniedException")); | ||
| 1363 | __outS->startSlice(); | ||
| 1364 | __outS->endSlice(); | ||
| 1365 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1366 | EhrException::__write(__outS); | ||
| 1367 | #else | ||
| 1368 | ::Ehr::EhrException::__write(__outS); | ||
| 1369 | #endif | ||
| 1370 | } | ||
| 1371 | |||
| 1372 | void | ||
| 1373 | Ehr::PermissionDeniedException::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 1374 | { | ||
| 1375 | if(__rid) | ||
| 1376 | { | ||
| 1377 | __inS->readString(); | ||
| 1378 | } | ||
| 1379 | __inS->startSlice(); | ||
| 1380 | __inS->endSlice(); | ||
| 1381 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1382 | EhrException::__read(__inS, true); | ||
| 1383 | #else | ||
| 1384 | ::Ehr::EhrException::__read(__inS, true); | ||
| 1385 | #endif | ||
| 1386 | } | ||
| 1387 | |||
| 1388 | struct __F__Ehr__PermissionDeniedException : public ::IceInternal::UserExceptionFactory | ||
| 1389 | { | ||
| 1390 | virtual void | ||
| 1391 | createAndThrow() | ||
| 1392 | { | ||
| 1393 | throw ::Ehr::PermissionDeniedException(); | ||
| 1394 | } | ||
| 1395 | }; | ||
| 1396 | |||
| 1397 | static ::IceInternal::UserExceptionFactoryPtr __F__Ehr__PermissionDeniedException__Ptr = new __F__Ehr__PermissionDeniedException; | ||
| 1398 | |||
| 1399 | const ::IceInternal::UserExceptionFactoryPtr& | ||
| 1400 | Ehr::PermissionDeniedException::ice_factory() | ||
| 1401 | { | ||
| 1402 | return __F__Ehr__PermissionDeniedException__Ptr; | ||
| 1403 | } | ||
| 1404 | |||
| 1405 | class __F__Ehr__PermissionDeniedException__Init | ||
| 1406 | { | ||
| 1407 | public: | ||
| 1408 | |||
| 1409 | __F__Ehr__PermissionDeniedException__Init() | ||
| 1410 | { | ||
| 1411 | ::IceInternal::factoryTable->addExceptionFactory("::Ehr::PermissionDeniedException", ::Ehr::PermissionDeniedException::ice_factory()); | ||
| 1412 | } | ||
| 1413 | |||
| 1414 | ~__F__Ehr__PermissionDeniedException__Init() | ||
| 1415 | { | ||
| 1416 | ::IceInternal::factoryTable->removeExceptionFactory("::Ehr::PermissionDeniedException"); | ||
| 1417 | } | ||
| 1418 | }; | ||
| 1419 | |||
| 1420 | static __F__Ehr__PermissionDeniedException__Init __F__Ehr__PermissionDeniedException__i; | ||
| 1421 | |||
| 1422 | #ifdef __APPLE__ | ||
| 1423 | extern "C" { void __F__Ehr__PermissionDeniedException__initializer() {} } | ||
| 1424 | #endif | ||
| 1425 | |||
| 1426 | bool | ||
| 1427 | Ehr::AccountIdentifier::operator==(const AccountIdentifier& __rhs) const | ||
| 1428 | { | ||
| 1429 | if(this == &__rhs) | ||
| 1430 | { | ||
| 1431 | return true; | ||
| 1432 | } | ||
| 1433 | if(user != __rhs.user) | ||
| 1434 | { | ||
| 1435 | return false; | ||
| 1436 | } | ||
| 1437 | if(provider != __rhs.provider) | ||
| 1438 | { | ||
| 1439 | return false; | ||
| 1440 | } | ||
| 1441 | return true; | ||
| 1442 | } | ||
| 1443 | |||
| 1444 | bool | ||
| 1445 | Ehr::AccountIdentifier::operator<(const AccountIdentifier& __rhs) const | ||
| 1446 | { | ||
| 1447 | if(this == &__rhs) | ||
| 1448 | { | ||
| 1449 | return false; | ||
| 1450 | } | ||
| 1451 | if(user < __rhs.user) | ||
| 1452 | { | ||
| 1453 | return true; | ||
| 1454 | } | ||
| 1455 | else if(__rhs.user < user) | ||
| 1456 | { | ||
| 1457 | return false; | ||
| 1458 | } | ||
| 1459 | if(provider < __rhs.provider) | ||
| 1460 | { | ||
| 1461 | return true; | ||
| 1462 | } | ||
| 1463 | else if(__rhs.provider < provider) | ||
| 1464 | { | ||
| 1465 | return false; | ||
| 1466 | } | ||
| 1467 | return false; | ||
| 1468 | } | ||
| 1469 | |||
| 1470 | void | ||
| 1471 | Ehr::AccountIdentifier::__write(::IceInternal::BasicStream* __os) const | ||
| 1472 | { | ||
| 1473 | __os->write(user); | ||
| 1474 | __os->write(provider); | ||
| 1475 | } | ||
| 1476 | |||
| 1477 | void | ||
| 1478 | Ehr::AccountIdentifier::__read(::IceInternal::BasicStream* __is) | ||
| 1479 | { | ||
| 1480 | __is->read(user); | ||
| 1481 | __is->read(provider); | ||
| 1482 | } | ||
| 1483 | |||
| 1484 | void | ||
| 1485 | Ehr::AccountIdentifier::ice_write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 1486 | { | ||
| 1487 | __outS->writeString(user); | ||
| 1488 | __outS->writeString(provider); | ||
| 1489 | } | ||
| 1490 | |||
| 1491 | void | ||
| 1492 | Ehr::AccountIdentifier::ice_read(const ::Ice::InputStreamPtr& __inS) | ||
| 1493 | { | ||
| 1494 | user = __inS->readString(); | ||
| 1495 | provider = __inS->readString(); | ||
| 1496 | } | ||
| 1497 | |||
| 1498 | void | ||
| 1499 | Ehr::ice_writeAccountIdentifier(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::AccountIdentifier& __v) | ||
| 1500 | { | ||
| 1501 | __v.ice_write(__outS); | ||
| 1502 | } | ||
| 1503 | |||
| 1504 | void | ||
| 1505 | Ehr::ice_readAccountIdentifier(const ::Ice::InputStreamPtr& __inS, ::Ehr::AccountIdentifier& __v) | ||
| 1506 | { | ||
| 1507 | __v.ice_read(__inS); | ||
| 1508 | } | ||
| 1509 | |||
| 1510 | void | ||
| 1511 | Ehr::__write(::IceInternal::BasicStream* __os, ::Ehr::DocumentType v) | ||
| 1512 | { | ||
| 1513 | __os->write(static_cast< ::Ice::Byte>(v), 3); | ||
| 1514 | } | ||
| 1515 | |||
| 1516 | void | ||
| 1517 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::DocumentType& v) | ||
| 1518 | { | ||
| 1519 | ::Ice::Byte val; | ||
| 1520 | __is->read(val, 3); | ||
| 1521 | v = static_cast< ::Ehr::DocumentType>(val); | ||
| 1522 | } | ||
| 1523 | |||
| 1524 | void | ||
| 1525 | Ehr::ice_writeDocumentType(const ::Ice::OutputStreamPtr& __outS, ::Ehr::DocumentType v) | ||
| 1526 | { | ||
| 1527 | if(static_cast<int>(v) >= 3) | ||
| 1528 | { | ||
| 1529 | throw ::Ice::MarshalException(__FILE__, __LINE__, "enumerator out of range"); | ||
| 1530 | } | ||
| 1531 | __outS->writeByte(static_cast< ::Ice::Byte>(v)); | ||
| 1532 | } | ||
| 1533 | |||
| 1534 | void | ||
| 1535 | Ehr::ice_readDocumentType(const ::Ice::InputStreamPtr& __inS, ::Ehr::DocumentType& v) | ||
| 1536 | { | ||
| 1537 | ::Ice::Byte val = __inS->readByte(); | ||
| 1538 | if(val > 3) | ||
| 1539 | { | ||
| 1540 | throw ::Ice::MarshalException(__FILE__, __LINE__, "enumerator out of range"); | ||
| 1541 | } | ||
| 1542 | v = static_cast< ::Ehr::DocumentType>(val); | ||
| 1543 | } | ||
| 1544 | |||
| 1545 | bool | ||
| 1546 | Ehr::Signature::operator==(const Signature& __rhs) const | ||
| 1547 | { | ||
| 1548 | if(this == &__rhs) | ||
| 1549 | { | ||
| 1550 | return true; | ||
| 1551 | } | ||
| 1552 | if(data != __rhs.data) | ||
| 1553 | { | ||
| 1554 | return false; | ||
| 1555 | } | ||
| 1556 | return true; | ||
| 1557 | } | ||
| 1558 | |||
| 1559 | bool | ||
| 1560 | Ehr::Signature::operator<(const Signature& __rhs) const | ||
| 1561 | { | ||
| 1562 | if(this == &__rhs) | ||
| 1563 | { | ||
| 1564 | return false; | ||
| 1565 | } | ||
| 1566 | if(data < __rhs.data) | ||
| 1567 | { | ||
| 1568 | return true; | ||
| 1569 | } | ||
| 1570 | else if(__rhs.data < data) | ||
| 1571 | { | ||
| 1572 | return false; | ||
| 1573 | } | ||
| 1574 | return false; | ||
| 1575 | } | ||
| 1576 | |||
| 1577 | void | ||
| 1578 | Ehr::Signature::__write(::IceInternal::BasicStream* __os) const | ||
| 1579 | { | ||
| 1580 | if(data.size() == 0) | ||
| 1581 | { | ||
| 1582 | __os->writeSize(0); | ||
| 1583 | } | ||
| 1584 | else | ||
| 1585 | { | ||
| 1586 | __os->write(&data[0], &data[0] + data.size()); | ||
| 1587 | } | ||
| 1588 | } | ||
| 1589 | |||
| 1590 | void | ||
| 1591 | Ehr::Signature::__read(::IceInternal::BasicStream* __is) | ||
| 1592 | { | ||
| 1593 | ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*> ___data; | ||
| 1594 | __is->read(___data); | ||
| 1595 | ::std::vector< ::Ice::Byte>(___data.first, ___data.second).swap(data); | ||
| 1596 | } | ||
| 1597 | |||
| 1598 | void | ||
| 1599 | Ehr::Signature::ice_write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 1600 | { | ||
| 1601 | __outS->writeByteSeq(data); | ||
| 1602 | } | ||
| 1603 | |||
| 1604 | void | ||
| 1605 | Ehr::Signature::ice_read(const ::Ice::InputStreamPtr& __inS) | ||
| 1606 | { | ||
| 1607 | data = __inS->readByteSeq(); | ||
| 1608 | } | ||
| 1609 | |||
| 1610 | void | ||
| 1611 | Ehr::ice_writeSignature(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::Signature& __v) | ||
| 1612 | { | ||
| 1613 | __v.ice_write(__outS); | ||
| 1614 | } | ||
| 1615 | |||
| 1616 | void | ||
| 1617 | Ehr::ice_readSignature(const ::Ice::InputStreamPtr& __inS, ::Ehr::Signature& __v) | ||
| 1618 | { | ||
| 1619 | __v.ice_read(__inS); | ||
| 1620 | } | ||
| 1621 | |||
| 1622 | bool | ||
| 1623 | Ehr::Timestamp::operator==(const Timestamp& __rhs) const | ||
| 1624 | { | ||
| 1625 | if(this == &__rhs) | ||
| 1626 | { | ||
| 1627 | return true; | ||
| 1628 | } | ||
| 1629 | if(msecs != __rhs.msecs) | ||
| 1630 | { | ||
| 1631 | return false; | ||
| 1632 | } | ||
| 1633 | return true; | ||
| 1634 | } | ||
| 1635 | |||
| 1636 | bool | ||
| 1637 | Ehr::Timestamp::operator<(const Timestamp& __rhs) const | ||
| 1638 | { | ||
| 1639 | if(this == &__rhs) | ||
| 1640 | { | ||
| 1641 | return false; | ||
| 1642 | } | ||
| 1643 | if(msecs < __rhs.msecs) | ||
| 1644 | { | ||
| 1645 | return true; | ||
| 1646 | } | ||
| 1647 | else if(__rhs.msecs < msecs) | ||
| 1648 | { | ||
| 1649 | return false; | ||
| 1650 | } | ||
| 1651 | return false; | ||
| 1652 | } | ||
| 1653 | |||
| 1654 | void | ||
| 1655 | Ehr::Timestamp::__write(::IceInternal::BasicStream* __os) const | ||
| 1656 | { | ||
| 1657 | __os->write(msecs); | ||
| 1658 | } | ||
| 1659 | |||
| 1660 | void | ||
| 1661 | Ehr::Timestamp::__read(::IceInternal::BasicStream* __is) | ||
| 1662 | { | ||
| 1663 | __is->read(msecs); | ||
| 1664 | } | ||
| 1665 | |||
| 1666 | void | ||
| 1667 | Ehr::Timestamp::ice_write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 1668 | { | ||
| 1669 | __outS->writeLong(msecs); | ||
| 1670 | } | ||
| 1671 | |||
| 1672 | void | ||
| 1673 | Ehr::Timestamp::ice_read(const ::Ice::InputStreamPtr& __inS) | ||
| 1674 | { | ||
| 1675 | msecs = __inS->readLong(); | ||
| 1676 | } | ||
| 1677 | |||
| 1678 | void | ||
| 1679 | Ehr::ice_writeTimestamp(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::Timestamp& __v) | ||
| 1680 | { | ||
| 1681 | __v.ice_write(__outS); | ||
| 1682 | } | ||
| 1683 | |||
| 1684 | void | ||
| 1685 | Ehr::ice_readTimestamp(const ::Ice::InputStreamPtr& __inS, ::Ehr::Timestamp& __v) | ||
| 1686 | { | ||
| 1687 | __v.ice_read(__inS); | ||
| 1688 | } | ||
| 1689 | |||
| 1690 | bool | ||
| 1691 | Ehr::Date::operator==(const Date& __rhs) const | ||
| 1692 | { | ||
| 1693 | if(this == &__rhs) | ||
| 1694 | { | ||
| 1695 | return true; | ||
| 1696 | } | ||
| 1697 | if(day != __rhs.day) | ||
| 1698 | { | ||
| 1699 | return false; | ||
| 1700 | } | ||
| 1701 | if(month != __rhs.month) | ||
| 1702 | { | ||
| 1703 | return false; | ||
| 1704 | } | ||
| 1705 | if(year != __rhs.year) | ||
| 1706 | { | ||
| 1707 | return false; | ||
| 1708 | } | ||
| 1709 | return true; | ||
| 1710 | } | ||
| 1711 | |||
| 1712 | bool | ||
| 1713 | Ehr::Date::operator<(const Date& __rhs) const | ||
| 1714 | { | ||
| 1715 | if(this == &__rhs) | ||
| 1716 | { | ||
| 1717 | return false; | ||
| 1718 | } | ||
| 1719 | if(day < __rhs.day) | ||
| 1720 | { | ||
| 1721 | return true; | ||
| 1722 | } | ||
| 1723 | else if(__rhs.day < day) | ||
| 1724 | { | ||
| 1725 | return false; | ||
| 1726 | } | ||
| 1727 | if(month < __rhs.month) | ||
| 1728 | { | ||
| 1729 | return true; | ||
| 1730 | } | ||
| 1731 | else if(__rhs.month < month) | ||
| 1732 | { | ||
| 1733 | return false; | ||
| 1734 | } | ||
| 1735 | if(year < __rhs.year) | ||
| 1736 | { | ||
| 1737 | return true; | ||
| 1738 | } | ||
| 1739 | else if(__rhs.year < year) | ||
| 1740 | { | ||
| 1741 | return false; | ||
| 1742 | } | ||
| 1743 | return false; | ||
| 1744 | } | ||
| 1745 | |||
| 1746 | void | ||
| 1747 | Ehr::Date::__write(::IceInternal::BasicStream* __os) const | ||
| 1748 | { | ||
| 1749 | __os->write(day); | ||
| 1750 | __os->write(month); | ||
| 1751 | __os->write(year); | ||
| 1752 | } | ||
| 1753 | |||
| 1754 | void | ||
| 1755 | Ehr::Date::__read(::IceInternal::BasicStream* __is) | ||
| 1756 | { | ||
| 1757 | __is->read(day); | ||
| 1758 | __is->read(month); | ||
| 1759 | __is->read(year); | ||
| 1760 | } | ||
| 1761 | |||
| 1762 | void | ||
| 1763 | Ehr::Date::ice_write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 1764 | { | ||
| 1765 | __outS->writeByte(day); | ||
| 1766 | __outS->writeByte(month); | ||
| 1767 | __outS->writeShort(year); | ||
| 1768 | } | ||
| 1769 | |||
| 1770 | void | ||
| 1771 | Ehr::Date::ice_read(const ::Ice::InputStreamPtr& __inS) | ||
| 1772 | { | ||
| 1773 | day = __inS->readByte(); | ||
| 1774 | month = __inS->readByte(); | ||
| 1775 | year = __inS->readShort(); | ||
| 1776 | } | ||
| 1777 | |||
| 1778 | void | ||
| 1779 | Ehr::ice_writeDate(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::Date& __v) | ||
| 1780 | { | ||
| 1781 | __v.ice_write(__outS); | ||
| 1782 | } | ||
| 1783 | |||
| 1784 | void | ||
| 1785 | Ehr::ice_readDate(const ::Ice::InputStreamPtr& __inS, ::Ehr::Date& __v) | ||
| 1786 | { | ||
| 1787 | __v.ice_read(__inS); | ||
| 1788 | } | ||
| 1789 | |||
| 1790 | void | ||
| 1791 | Ehr::__write(::IceInternal::BasicStream* __os, ::Ehr::AccessType v) | ||
| 1792 | { | ||
| 1793 | __os->write(static_cast< ::Ice::Byte>(v), 2); | ||
| 1794 | } | ||
| 1795 | |||
| 1796 | void | ||
| 1797 | Ehr::__read(::IceInternal::BasicStream* __is, ::Ehr::AccessType& v) | ||
| 1798 | { | ||
| 1799 | ::Ice::Byte val; | ||
| 1800 | __is->read(val, 2); | ||
| 1801 | v = static_cast< ::Ehr::AccessType>(val); | ||
| 1802 | } | ||
| 1803 | |||
| 1804 | void | ||
| 1805 | Ehr::ice_writeAccessType(const ::Ice::OutputStreamPtr& __outS, ::Ehr::AccessType v) | ||
| 1806 | { | ||
| 1807 | if(static_cast<int>(v) >= 2) | ||
| 1808 | { | ||
| 1809 | throw ::Ice::MarshalException(__FILE__, __LINE__, "enumerator out of range"); | ||
| 1810 | } | ||
| 1811 | __outS->writeByte(static_cast< ::Ice::Byte>(v)); | ||
| 1812 | } | ||
| 1813 | |||
| 1814 | void | ||
| 1815 | Ehr::ice_readAccessType(const ::Ice::InputStreamPtr& __inS, ::Ehr::AccessType& v) | ||
| 1816 | { | ||
| 1817 | ::Ice::Byte val = __inS->readByte(); | ||
| 1818 | if(val > 2) | ||
| 1819 | { | ||
| 1820 | throw ::Ice::MarshalException(__FILE__, __LINE__, "enumerator out of range"); | ||
| 1821 | } | ||
| 1822 | v = static_cast< ::Ehr::AccessType>(val); | ||
| 1823 | } | ||
| 1824 | |||
| 1825 | bool | ||
| 1826 | Ehr::EncryptedDocument::operator==(const EncryptedDocument& __rhs) const | ||
| 1827 | { | ||
| 1828 | if(this == &__rhs) | ||
| 1829 | { | ||
| 1830 | return true; | ||
| 1831 | } | ||
| 1832 | if(encryptedKey != __rhs.encryptedKey) | ||
| 1833 | { | ||
| 1834 | return false; | ||
| 1835 | } | ||
| 1836 | if(initialVector != __rhs.initialVector) | ||
| 1837 | { | ||
| 1838 | return false; | ||
| 1839 | } | ||
| 1840 | if(encryptedData != __rhs.encryptedData) | ||
| 1841 | { | ||
| 1842 | return false; | ||
| 1843 | } | ||
| 1844 | return true; | ||
| 1845 | } | ||
| 1846 | |||
| 1847 | bool | ||
| 1848 | Ehr::EncryptedDocument::operator<(const EncryptedDocument& __rhs) const | ||
| 1849 | { | ||
| 1850 | if(this == &__rhs) | ||
| 1851 | { | ||
| 1852 | return false; | ||
| 1853 | } | ||
| 1854 | if(encryptedKey < __rhs.encryptedKey) | ||
| 1855 | { | ||
| 1856 | return true; | ||
| 1857 | } | ||
| 1858 | else if(__rhs.encryptedKey < encryptedKey) | ||
| 1859 | { | ||
| 1860 | return false; | ||
| 1861 | } | ||
| 1862 | if(initialVector < __rhs.initialVector) | ||
| 1863 | { | ||
| 1864 | return true; | ||
| 1865 | } | ||
| 1866 | else if(__rhs.initialVector < initialVector) | ||
| 1867 | { | ||
| 1868 | return false; | ||
| 1869 | } | ||
| 1870 | if(encryptedData < __rhs.encryptedData) | ||
| 1871 | { | ||
| 1872 | return true; | ||
| 1873 | } | ||
| 1874 | else if(__rhs.encryptedData < encryptedData) | ||
| 1875 | { | ||
| 1876 | return false; | ||
| 1877 | } | ||
| 1878 | return false; | ||
| 1879 | } | ||
| 1880 | |||
| 1881 | void | ||
| 1882 | Ehr::EncryptedDocument::__write(::IceInternal::BasicStream* __os) const | ||
| 1883 | { | ||
| 1884 | if(encryptedKey.size() == 0) | ||
| 1885 | { | ||
| 1886 | __os->writeSize(0); | ||
| 1887 | } | ||
| 1888 | else | ||
| 1889 | { | ||
| 1890 | __os->write(&encryptedKey[0], &encryptedKey[0] + encryptedKey.size()); | ||
| 1891 | } | ||
| 1892 | if(initialVector.size() == 0) | ||
| 1893 | { | ||
| 1894 | __os->writeSize(0); | ||
| 1895 | } | ||
| 1896 | else | ||
| 1897 | { | ||
| 1898 | __os->write(&initialVector[0], &initialVector[0] + initialVector.size()); | ||
| 1899 | } | ||
| 1900 | if(encryptedData.size() == 0) | ||
| 1901 | { | ||
| 1902 | __os->writeSize(0); | ||
| 1903 | } | ||
| 1904 | else | ||
| 1905 | { | ||
| 1906 | __os->write(&encryptedData[0], &encryptedData[0] + encryptedData.size()); | ||
| 1907 | } | ||
| 1908 | } | ||
| 1909 | |||
| 1910 | void | ||
| 1911 | Ehr::EncryptedDocument::__read(::IceInternal::BasicStream* __is) | ||
| 1912 | { | ||
| 1913 | ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*> ___encryptedKey; | ||
| 1914 | __is->read(___encryptedKey); | ||
| 1915 | ::std::vector< ::Ice::Byte>(___encryptedKey.first, ___encryptedKey.second).swap(encryptedKey); | ||
| 1916 | ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*> ___initialVector; | ||
| 1917 | __is->read(___initialVector); | ||
| 1918 | ::std::vector< ::Ice::Byte>(___initialVector.first, ___initialVector.second).swap(initialVector); | ||
| 1919 | ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*> ___encryptedData; | ||
| 1920 | __is->read(___encryptedData); | ||
| 1921 | ::std::vector< ::Ice::Byte>(___encryptedData.first, ___encryptedData.second).swap(encryptedData); | ||
| 1922 | } | ||
| 1923 | |||
| 1924 | void | ||
| 1925 | Ehr::EncryptedDocument::ice_write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 1926 | { | ||
| 1927 | __outS->writeByteSeq(encryptedKey); | ||
| 1928 | __outS->writeByteSeq(initialVector); | ||
| 1929 | __outS->writeByteSeq(encryptedData); | ||
| 1930 | } | ||
| 1931 | |||
| 1932 | void | ||
| 1933 | Ehr::EncryptedDocument::ice_read(const ::Ice::InputStreamPtr& __inS) | ||
| 1934 | { | ||
| 1935 | encryptedKey = __inS->readByteSeq(); | ||
| 1936 | initialVector = __inS->readByteSeq(); | ||
| 1937 | encryptedData = __inS->readByteSeq(); | ||
| 1938 | } | ||
| 1939 | |||
| 1940 | void | ||
| 1941 | Ehr::ice_writeEncryptedDocument(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::EncryptedDocument& __v) | ||
| 1942 | { | ||
| 1943 | __v.ice_write(__outS); | ||
| 1944 | } | ||
| 1945 | |||
| 1946 | void | ||
| 1947 | Ehr::ice_readEncryptedDocument(const ::Ice::InputStreamPtr& __inS, ::Ehr::EncryptedDocument& __v) | ||
| 1948 | { | ||
| 1949 | __v.ice_read(__inS); | ||
| 1950 | } | ||
| 1951 | |||
| 1952 | bool | ||
| 1953 | Ehr::DocumentListItem::operator==(const DocumentListItem& __rhs) const | ||
| 1954 | { | ||
| 1955 | if(this == &__rhs) | ||
| 1956 | { | ||
| 1957 | return true; | ||
| 1958 | } | ||
| 1959 | if(id != __rhs.id) | ||
| 1960 | { | ||
| 1961 | return false; | ||
| 1962 | } | ||
| 1963 | if(created != __rhs.created) | ||
| 1964 | { | ||
| 1965 | return false; | ||
| 1966 | } | ||
| 1967 | if(document != __rhs.document) | ||
| 1968 | { | ||
| 1969 | return false; | ||
| 1970 | } | ||
| 1971 | return true; | ||
| 1972 | } | ||
| 1973 | |||
| 1974 | bool | ||
| 1975 | Ehr::DocumentListItem::operator<(const DocumentListItem& __rhs) const | ||
| 1976 | { | ||
| 1977 | if(this == &__rhs) | ||
| 1978 | { | ||
| 1979 | return false; | ||
| 1980 | } | ||
| 1981 | if(id < __rhs.id) | ||
| 1982 | { | ||
| 1983 | return true; | ||
| 1984 | } | ||
| 1985 | else if(__rhs.id < id) | ||
| 1986 | { | ||
| 1987 | return false; | ||
| 1988 | } | ||
| 1989 | if(created < __rhs.created) | ||
| 1990 | { | ||
| 1991 | return true; | ||
| 1992 | } | ||
| 1993 | else if(__rhs.created < created) | ||
| 1994 | { | ||
| 1995 | return false; | ||
| 1996 | } | ||
| 1997 | if(document < __rhs.document) | ||
| 1998 | { | ||
| 1999 | return true; | ||
| 2000 | } | ||
| 2001 | else if(__rhs.document < document) | ||
| 2002 | { | ||
| 2003 | return false; | ||
| 2004 | } | ||
| 2005 | return false; | ||
| 2006 | } | ||
| 2007 | |||
| 2008 | void | ||
| 2009 | Ehr::DocumentListItem::__write(::IceInternal::BasicStream* __os) const | ||
| 2010 | { | ||
| 2011 | __os->write(id); | ||
| 2012 | created.__write(__os); | ||
| 2013 | document.__write(__os); | ||
| 2014 | } | ||
| 2015 | |||
| 2016 | void | ||
| 2017 | Ehr::DocumentListItem::__read(::IceInternal::BasicStream* __is) | ||
| 2018 | { | ||
| 2019 | __is->read(id); | ||
| 2020 | created.__read(__is); | ||
| 2021 | document.__read(__is); | ||
| 2022 | } | ||
| 2023 | |||
| 2024 | void | ||
| 2025 | Ehr::DocumentListItem::ice_write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 2026 | { | ||
| 2027 | __outS->writeLong(id); | ||
| 2028 | ::Ehr::ice_writeTimestamp(__outS, created); | ||
| 2029 | ::Ehr::ice_writeEncryptedDocument(__outS, document); | ||
| 2030 | } | ||
| 2031 | |||
| 2032 | void | ||
| 2033 | Ehr::DocumentListItem::ice_read(const ::Ice::InputStreamPtr& __inS) | ||
| 2034 | { | ||
| 2035 | id = __inS->readLong(); | ||
| 2036 | ::Ehr::ice_readTimestamp(__inS, created); | ||
| 2037 | ::Ehr::ice_readEncryptedDocument(__inS, document); | ||
| 2038 | } | ||
| 2039 | |||
| 2040 | void | ||
| 2041 | Ehr::ice_writeDocumentListItem(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::DocumentListItem& __v) | ||
| 2042 | { | ||
| 2043 | __v.ice_write(__outS); | ||
| 2044 | } | ||
| 2045 | |||
| 2046 | void | ||
| 2047 | Ehr::ice_readDocumentListItem(const ::Ice::InputStreamPtr& __inS, ::Ehr::DocumentListItem& __v) | ||
| 2048 | { | ||
| 2049 | __v.ice_read(__inS); | ||
| 2050 | } | ||
| 2051 | |||
| 2052 | void | ||
| 2053 | Ehr::__writeDocumentList(::IceInternal::BasicStream* __os, const ::Ehr::DocumentListItem* begin, const ::Ehr::DocumentListItem* end) | ||
| 2054 | { | ||
| 2055 | ::Ice::Int size = static_cast< ::Ice::Int>(end - begin); | ||
| 2056 | __os->writeSize(size); | ||
| 2057 | for(int i = 0; i < size; ++i) | ||
| 2058 | { | ||
| 2059 | begin[i].__write(__os); | ||
| 2060 | } | ||
| 2061 | } | ||
| 2062 | |||
| 2063 | void | ||
| 2064 | Ehr::__readDocumentList(::IceInternal::BasicStream* __is, ::Ehr::DocumentList& v) | ||
| 2065 | { | ||
| 2066 | ::Ice::Int sz; | ||
| 2067 | __is->readSize(sz); | ||
| 2068 | __is->startSeq(sz, 19); | ||
| 2069 | v.resize(sz); | ||
| 2070 | for(int i = 0; i < sz; ++i) | ||
| 2071 | { | ||
| 2072 | v[i].__read(__is); | ||
| 2073 | __is->checkSeq(); | ||
| 2074 | __is->endElement(); | ||
| 2075 | } | ||
| 2076 | __is->endSeq(sz); | ||
| 2077 | } | ||
| 2078 | |||
| 2079 | void | ||
| 2080 | Ehr::ice_writeDocumentList(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::DocumentList& v) | ||
| 2081 | { | ||
| 2082 | __outS->writeSize(::Ice::Int(v.size())); | ||
| 2083 | ::Ehr::DocumentList::const_iterator p; | ||
| 2084 | for(p = v.begin(); p != v.end(); ++p) | ||
| 2085 | { | ||
| 2086 | ::Ehr::ice_writeDocumentListItem(__outS, (*p)); | ||
| 2087 | } | ||
| 2088 | } | ||
| 2089 | |||
| 2090 | void | ||
| 2091 | Ehr::ice_readDocumentList(const ::Ice::InputStreamPtr& __inS, ::Ehr::DocumentList& v) | ||
| 2092 | { | ||
| 2093 | ::Ice::Int sz = __inS->readSize(); | ||
| 2094 | v.resize(sz); | ||
| 2095 | for(int i = 0; i < sz; ++i) | ||
| 2096 | { | ||
| 2097 | ::Ehr::ice_readDocumentListItem(__inS, v[i]); | ||
| 2098 | } | ||
| 2099 | } | ||
| 2100 | |||
| 2101 | bool | ||
| 2102 | Ehr::AccessControlListItem::operator==(const AccessControlListItem& __rhs) const | ||
| 2103 | { | ||
| 2104 | if(this == &__rhs) | ||
| 2105 | { | ||
| 2106 | return true; | ||
| 2107 | } | ||
| 2108 | if(id != __rhs.id) | ||
| 2109 | { | ||
| 2110 | return false; | ||
| 2111 | } | ||
| 2112 | if(account != __rhs.account) | ||
| 2113 | { | ||
| 2114 | return false; | ||
| 2115 | } | ||
| 2116 | if(access != __rhs.access) | ||
| 2117 | { | ||
| 2118 | return false; | ||
| 2119 | } | ||
| 2120 | return true; | ||
| 2121 | } | ||
| 2122 | |||
| 2123 | bool | ||
| 2124 | Ehr::AccessControlListItem::operator<(const AccessControlListItem& __rhs) const | ||
| 2125 | { | ||
| 2126 | if(this == &__rhs) | ||
| 2127 | { | ||
| 2128 | return false; | ||
| 2129 | } | ||
| 2130 | if(id < __rhs.id) | ||
| 2131 | { | ||
| 2132 | return true; | ||
| 2133 | } | ||
| 2134 | else if(__rhs.id < id) | ||
| 2135 | { | ||
| 2136 | return false; | ||
| 2137 | } | ||
| 2138 | if(account < __rhs.account) | ||
| 2139 | { | ||
| 2140 | return true; | ||
| 2141 | } | ||
| 2142 | else if(__rhs.account < account) | ||
| 2143 | { | ||
| 2144 | return false; | ||
| 2145 | } | ||
| 2146 | if(access < __rhs.access) | ||
| 2147 | { | ||
| 2148 | return true; | ||
| 2149 | } | ||
| 2150 | else if(__rhs.access < access) | ||
| 2151 | { | ||
| 2152 | return false; | ||
| 2153 | } | ||
| 2154 | return false; | ||
| 2155 | } | ||
| 2156 | |||
| 2157 | void | ||
| 2158 | Ehr::AccessControlListItem::__write(::IceInternal::BasicStream* __os) const | ||
| 2159 | { | ||
| 2160 | __os->write(id); | ||
| 2161 | account.__write(__os); | ||
| 2162 | ::Ehr::__write(__os, access); | ||
| 2163 | } | ||
| 2164 | |||
| 2165 | void | ||
| 2166 | Ehr::AccessControlListItem::__read(::IceInternal::BasicStream* __is) | ||
| 2167 | { | ||
| 2168 | __is->read(id); | ||
| 2169 | account.__read(__is); | ||
| 2170 | ::Ehr::__read(__is, access); | ||
| 2171 | } | ||
| 2172 | |||
| 2173 | void | ||
| 2174 | Ehr::AccessControlListItem::ice_write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 2175 | { | ||
| 2176 | __outS->writeLong(id); | ||
| 2177 | ::Ehr::ice_writeAccountIdentifier(__outS, account); | ||
| 2178 | ::Ehr::ice_writeAccessType(__outS, access); | ||
| 2179 | } | ||
| 2180 | |||
| 2181 | void | ||
| 2182 | Ehr::AccessControlListItem::ice_read(const ::Ice::InputStreamPtr& __inS) | ||
| 2183 | { | ||
| 2184 | id = __inS->readLong(); | ||
| 2185 | ::Ehr::ice_readAccountIdentifier(__inS, account); | ||
| 2186 | ::Ehr::ice_readAccessType(__inS, access); | ||
| 2187 | } | ||
| 2188 | |||
| 2189 | void | ||
| 2190 | Ehr::ice_writeAccessControlListItem(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::AccessControlListItem& __v) | ||
| 2191 | { | ||
| 2192 | __v.ice_write(__outS); | ||
| 2193 | } | ||
| 2194 | |||
| 2195 | void | ||
| 2196 | Ehr::ice_readAccessControlListItem(const ::Ice::InputStreamPtr& __inS, ::Ehr::AccessControlListItem& __v) | ||
| 2197 | { | ||
| 2198 | __v.ice_read(__inS); | ||
| 2199 | } | ||
| 2200 | |||
| 2201 | void | ||
| 2202 | Ehr::__writeAccessControlList(::IceInternal::BasicStream* __os, const ::Ehr::AccessControlListItem* begin, const ::Ehr::AccessControlListItem* end) | ||
| 2203 | { | ||
| 2204 | ::Ice::Int size = static_cast< ::Ice::Int>(end - begin); | ||
| 2205 | __os->writeSize(size); | ||
| 2206 | for(int i = 0; i < size; ++i) | ||
| 2207 | { | ||
| 2208 | begin[i].__write(__os); | ||
| 2209 | } | ||
| 2210 | } | ||
| 2211 | |||
| 2212 | void | ||
| 2213 | Ehr::__readAccessControlList(::IceInternal::BasicStream* __is, ::Ehr::AccessControlList& v) | ||
| 2214 | { | ||
| 2215 | ::Ice::Int sz; | ||
| 2216 | __is->readSize(sz); | ||
| 2217 | __is->startSeq(sz, 11); | ||
| 2218 | v.resize(sz); | ||
| 2219 | for(int i = 0; i < sz; ++i) | ||
| 2220 | { | ||
| 2221 | v[i].__read(__is); | ||
| 2222 | __is->checkSeq(); | ||
| 2223 | __is->endElement(); | ||
| 2224 | } | ||
| 2225 | __is->endSeq(sz); | ||
| 2226 | } | ||
| 2227 | |||
| 2228 | void | ||
| 2229 | Ehr::ice_writeAccessControlList(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::AccessControlList& v) | ||
| 2230 | { | ||
| 2231 | __outS->writeSize(::Ice::Int(v.size())); | ||
| 2232 | ::Ehr::AccessControlList::const_iterator p; | ||
| 2233 | for(p = v.begin(); p != v.end(); ++p) | ||
| 2234 | { | ||
| 2235 | ::Ehr::ice_writeAccessControlListItem(__outS, (*p)); | ||
| 2236 | } | ||
| 2237 | } | ||
| 2238 | |||
| 2239 | void | ||
| 2240 | Ehr::ice_readAccessControlList(const ::Ice::InputStreamPtr& __inS, ::Ehr::AccessControlList& v) | ||
| 2241 | { | ||
| 2242 | ::Ice::Int sz = __inS->readSize(); | ||
| 2243 | v.resize(sz); | ||
| 2244 | for(int i = 0; i < sz; ++i) | ||
| 2245 | { | ||
| 2246 | ::Ehr::ice_readAccessControlListItem(__inS, v[i]); | ||
| 2247 | } | ||
| 2248 | } | ||
| 2249 | |||
| 2250 | bool | ||
| 2251 | Ehr::Permissions::operator==(const Permissions& __rhs) const | ||
| 2252 | { | ||
| 2253 | if(this == &__rhs) | ||
| 2254 | { | ||
| 2255 | return true; | ||
| 2256 | } | ||
| 2257 | if(defaultAccess != __rhs.defaultAccess) | ||
| 2258 | { | ||
| 2259 | return false; | ||
| 2260 | } | ||
| 2261 | if(acl != __rhs.acl) | ||
| 2262 | { | ||
| 2263 | return false; | ||
| 2264 | } | ||
| 2265 | return true; | ||
| 2266 | } | ||
| 2267 | |||
| 2268 | bool | ||
| 2269 | Ehr::Permissions::operator<(const Permissions& __rhs) const | ||
| 2270 | { | ||
| 2271 | if(this == &__rhs) | ||
| 2272 | { | ||
| 2273 | return false; | ||
| 2274 | } | ||
| 2275 | if(defaultAccess < __rhs.defaultAccess) | ||
| 2276 | { | ||
| 2277 | return true; | ||
| 2278 | } | ||
| 2279 | else if(__rhs.defaultAccess < defaultAccess) | ||
| 2280 | { | ||
| 2281 | return false; | ||
| 2282 | } | ||
| 2283 | if(acl < __rhs.acl) | ||
| 2284 | { | ||
| 2285 | return true; | ||
| 2286 | } | ||
| 2287 | else if(__rhs.acl < acl) | ||
| 2288 | { | ||
| 2289 | return false; | ||
| 2290 | } | ||
| 2291 | return false; | ||
| 2292 | } | ||
| 2293 | |||
| 2294 | void | ||
| 2295 | Ehr::Permissions::__write(::IceInternal::BasicStream* __os) const | ||
| 2296 | { | ||
| 2297 | ::Ehr::__write(__os, defaultAccess); | ||
| 2298 | if(acl.size() == 0) | ||
| 2299 | { | ||
| 2300 | __os->writeSize(0); | ||
| 2301 | } | ||
| 2302 | else | ||
| 2303 | { | ||
| 2304 | ::Ehr::__writeAccessControlList(__os, &acl[0], &acl[0] + acl.size()); | ||
| 2305 | } | ||
| 2306 | } | ||
| 2307 | |||
| 2308 | void | ||
| 2309 | Ehr::Permissions::__read(::IceInternal::BasicStream* __is) | ||
| 2310 | { | ||
| 2311 | ::Ehr::__read(__is, defaultAccess); | ||
| 2312 | ::Ehr::__readAccessControlList(__is, acl); | ||
| 2313 | } | ||
| 2314 | |||
| 2315 | void | ||
| 2316 | Ehr::Permissions::ice_write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 2317 | { | ||
| 2318 | ::Ehr::ice_writeAccessType(__outS, defaultAccess); | ||
| 2319 | ::Ehr::ice_writeAccessControlList(__outS, acl); | ||
| 2320 | } | ||
| 2321 | |||
| 2322 | void | ||
| 2323 | Ehr::Permissions::ice_read(const ::Ice::InputStreamPtr& __inS) | ||
| 2324 | { | ||
| 2325 | ::Ehr::ice_readAccessType(__inS, defaultAccess); | ||
| 2326 | ::Ehr::ice_readAccessControlList(__inS, acl); | ||
| 2327 | } | ||
| 2328 | |||
| 2329 | void | ||
| 2330 | Ehr::ice_writePermissions(const ::Ice::OutputStreamPtr& __outS, const ::Ehr::Permissions& __v) | ||
| 2331 | { | ||
| 2332 | __v.ice_write(__outS); | ||
| 2333 | } | ||
| 2334 | |||
| 2335 | void | ||
| 2336 | Ehr::ice_readPermissions(const ::Ice::InputStreamPtr& __inS, ::Ehr::Permissions& __v) | ||
| 2337 | { | ||
| 2338 | __v.ice_read(__inS); | ||
| 2339 | } | ||
| 2340 | |||
| 2341 | const ::std::string& | ||
| 2342 | IceProxy::Ehr::Document::ice_staticId() | ||
| 2343 | { | ||
| 2344 | return ::Ehr::Document::ice_staticId(); | ||
| 2345 | } | ||
| 2346 | |||
| 2347 | ::IceInternal::Handle< ::IceDelegateM::Ice::Object> | ||
| 2348 | IceProxy::Ehr::Document::__createDelegateM() | ||
| 2349 | { | ||
| 2350 | return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Ehr::Document); | ||
| 2351 | } | ||
| 2352 | |||
| 2353 | ::IceInternal::Handle< ::IceDelegateD::Ice::Object> | ||
| 2354 | IceProxy::Ehr::Document::__createDelegateD() | ||
| 2355 | { | ||
| 2356 | return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Ehr::Document); | ||
| 2357 | } | ||
| 2358 | |||
| 2359 | ::IceProxy::Ice::Object* | ||
| 2360 | IceProxy::Ehr::Document::__newInstance() const | ||
| 2361 | { | ||
| 2362 | return new Document; | ||
| 2363 | } | ||
| 2364 | |||
| 2365 | const ::std::string& | ||
| 2366 | IceProxy::Ehr::Prescription::ice_staticId() | ||
| 2367 | { | ||
| 2368 | return ::Ehr::Prescription::ice_staticId(); | ||
| 2369 | } | ||
| 2370 | |||
| 2371 | ::IceInternal::Handle< ::IceDelegateM::Ice::Object> | ||
| 2372 | IceProxy::Ehr::Prescription::__createDelegateM() | ||
| 2373 | { | ||
| 2374 | return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Ehr::Prescription); | ||
| 2375 | } | ||
| 2376 | |||
| 2377 | ::IceInternal::Handle< ::IceDelegateD::Ice::Object> | ||
| 2378 | IceProxy::Ehr::Prescription::__createDelegateD() | ||
| 2379 | { | ||
| 2380 | return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Ehr::Prescription); | ||
| 2381 | } | ||
| 2382 | |||
| 2383 | ::IceProxy::Ice::Object* | ||
| 2384 | IceProxy::Ehr::Prescription::__newInstance() const | ||
| 2385 | { | ||
| 2386 | return new Prescription; | ||
| 2387 | } | ||
| 2388 | |||
| 2389 | const ::std::string& | ||
| 2390 | IceProxy::Ehr::ConsumedPrescription::ice_staticId() | ||
| 2391 | { | ||
| 2392 | return ::Ehr::ConsumedPrescription::ice_staticId(); | ||
| 2393 | } | ||
| 2394 | |||
| 2395 | ::IceInternal::Handle< ::IceDelegateM::Ice::Object> | ||
| 2396 | IceProxy::Ehr::ConsumedPrescription::__createDelegateM() | ||
| 2397 | { | ||
| 2398 | return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Ehr::ConsumedPrescription); | ||
| 2399 | } | ||
| 2400 | |||
| 2401 | ::IceInternal::Handle< ::IceDelegateD::Ice::Object> | ||
| 2402 | IceProxy::Ehr::ConsumedPrescription::__createDelegateD() | ||
| 2403 | { | ||
| 2404 | return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Ehr::ConsumedPrescription); | ||
| 2405 | } | ||
| 2406 | |||
| 2407 | ::IceProxy::Ice::Object* | ||
| 2408 | IceProxy::Ehr::ConsumedPrescription::__newInstance() const | ||
| 2409 | { | ||
| 2410 | return new ConsumedPrescription; | ||
| 2411 | } | ||
| 2412 | |||
| 2413 | const ::std::string& | ||
| 2414 | IceProxy::Ehr::Request::ice_staticId() | ||
| 2415 | { | ||
| 2416 | return ::Ehr::Request::ice_staticId(); | ||
| 2417 | } | ||
| 2418 | |||
| 2419 | ::IceInternal::Handle< ::IceDelegateM::Ice::Object> | ||
| 2420 | IceProxy::Ehr::Request::__createDelegateM() | ||
| 2421 | { | ||
| 2422 | return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Ehr::Request); | ||
| 2423 | } | ||
| 2424 | |||
| 2425 | ::IceInternal::Handle< ::IceDelegateD::Ice::Object> | ||
| 2426 | IceProxy::Ehr::Request::__createDelegateD() | ||
| 2427 | { | ||
| 2428 | return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Ehr::Request); | ||
| 2429 | } | ||
| 2430 | |||
| 2431 | ::IceProxy::Ice::Object* | ||
| 2432 | IceProxy::Ehr::Request::__newInstance() const | ||
| 2433 | { | ||
| 2434 | return new Request; | ||
| 2435 | } | ||
| 2436 | |||
| 2437 | const ::std::string& | ||
| 2438 | IceProxy::Ehr::ThirdPartyRequest::ice_staticId() | ||
| 2439 | { | ||
| 2440 | return ::Ehr::ThirdPartyRequest::ice_staticId(); | ||
| 2441 | } | ||
| 2442 | |||
| 2443 | ::IceInternal::Handle< ::IceDelegateM::Ice::Object> | ||
| 2444 | IceProxy::Ehr::ThirdPartyRequest::__createDelegateM() | ||
| 2445 | { | ||
| 2446 | return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Ehr::ThirdPartyRequest); | ||
| 2447 | } | ||
| 2448 | |||
| 2449 | ::IceInternal::Handle< ::IceDelegateD::Ice::Object> | ||
| 2450 | IceProxy::Ehr::ThirdPartyRequest::__createDelegateD() | ||
| 2451 | { | ||
| 2452 | return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Ehr::ThirdPartyRequest); | ||
| 2453 | } | ||
| 2454 | |||
| 2455 | ::IceProxy::Ice::Object* | ||
| 2456 | IceProxy::Ehr::ThirdPartyRequest::__newInstance() const | ||
| 2457 | { | ||
| 2458 | return new ThirdPartyRequest; | ||
| 2459 | } | ||
| 2460 | |||
| 2461 | const ::std::string& | ||
| 2462 | IceProxy::Ehr::CreatePrescriptionRequest::ice_staticId() | ||
| 2463 | { | ||
| 2464 | return ::Ehr::CreatePrescriptionRequest::ice_staticId(); | ||
| 2465 | } | ||
| 2466 | |||
| 2467 | ::IceInternal::Handle< ::IceDelegateM::Ice::Object> | ||
| 2468 | IceProxy::Ehr::CreatePrescriptionRequest::__createDelegateM() | ||
| 2469 | { | ||
| 2470 | return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Ehr::CreatePrescriptionRequest); | ||
| 2471 | } | ||
| 2472 | |||
| 2473 | ::IceInternal::Handle< ::IceDelegateD::Ice::Object> | ||
| 2474 | IceProxy::Ehr::CreatePrescriptionRequest::__createDelegateD() | ||
| 2475 | { | ||
| 2476 | return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Ehr::CreatePrescriptionRequest); | ||
| 2477 | } | ||
| 2478 | |||
| 2479 | ::IceProxy::Ice::Object* | ||
| 2480 | IceProxy::Ehr::CreatePrescriptionRequest::__newInstance() const | ||
| 2481 | { | ||
| 2482 | return new CreatePrescriptionRequest; | ||
| 2483 | } | ||
| 2484 | |||
| 2485 | const ::std::string& | ||
| 2486 | IceProxy::Ehr::ConsumePrescriptionRequest::ice_staticId() | ||
| 2487 | { | ||
| 2488 | return ::Ehr::ConsumePrescriptionRequest::ice_staticId(); | ||
| 2489 | } | ||
| 2490 | |||
| 2491 | ::IceInternal::Handle< ::IceDelegateM::Ice::Object> | ||
| 2492 | IceProxy::Ehr::ConsumePrescriptionRequest::__createDelegateM() | ||
| 2493 | { | ||
| 2494 | return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Ehr::ConsumePrescriptionRequest); | ||
| 2495 | } | ||
| 2496 | |||
| 2497 | ::IceInternal::Handle< ::IceDelegateD::Ice::Object> | ||
| 2498 | IceProxy::Ehr::ConsumePrescriptionRequest::__createDelegateD() | ||
| 2499 | { | ||
| 2500 | return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Ehr::ConsumePrescriptionRequest); | ||
| 2501 | } | ||
| 2502 | |||
| 2503 | ::IceProxy::Ice::Object* | ||
| 2504 | IceProxy::Ehr::ConsumePrescriptionRequest::__newInstance() const | ||
| 2505 | { | ||
| 2506 | return new ConsumePrescriptionRequest; | ||
| 2507 | } | ||
| 2508 | |||
| 2509 | const ::std::string& | ||
| 2510 | IceProxy::Ehr::ListDocumentsRequest::ice_staticId() | ||
| 2511 | { | ||
| 2512 | return ::Ehr::ListDocumentsRequest::ice_staticId(); | ||
| 2513 | } | ||
| 2514 | |||
| 2515 | ::IceInternal::Handle< ::IceDelegateM::Ice::Object> | ||
| 2516 | IceProxy::Ehr::ListDocumentsRequest::__createDelegateM() | ||
| 2517 | { | ||
| 2518 | return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Ehr::ListDocumentsRequest); | ||
| 2519 | } | ||
| 2520 | |||
| 2521 | ::IceInternal::Handle< ::IceDelegateD::Ice::Object> | ||
| 2522 | IceProxy::Ehr::ListDocumentsRequest::__createDelegateD() | ||
| 2523 | { | ||
| 2524 | return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Ehr::ListDocumentsRequest); | ||
| 2525 | } | ||
| 2526 | |||
| 2527 | ::IceProxy::Ice::Object* | ||
| 2528 | IceProxy::Ehr::ListDocumentsRequest::__newInstance() const | ||
| 2529 | { | ||
| 2530 | return new ListDocumentsRequest; | ||
| 2531 | } | ||
| 2532 | |||
| 2533 | const ::std::string& | ||
| 2534 | IceProxy::Ehr::FindDocumentsRequest::ice_staticId() | ||
| 2535 | { | ||
| 2536 | return ::Ehr::FindDocumentsRequest::ice_staticId(); | ||
| 2537 | } | ||
| 2538 | |||
| 2539 | ::IceInternal::Handle< ::IceDelegateM::Ice::Object> | ||
| 2540 | IceProxy::Ehr::FindDocumentsRequest::__createDelegateM() | ||
| 2541 | { | ||
| 2542 | return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Ehr::FindDocumentsRequest); | ||
| 2543 | } | ||
| 2544 | |||
| 2545 | ::IceInternal::Handle< ::IceDelegateD::Ice::Object> | ||
| 2546 | IceProxy::Ehr::FindDocumentsRequest::__createDelegateD() | ||
| 2547 | { | ||
| 2548 | return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Ehr::FindDocumentsRequest); | ||
| 2549 | } | ||
| 2550 | |||
| 2551 | ::IceProxy::Ice::Object* | ||
| 2552 | IceProxy::Ehr::FindDocumentsRequest::__newInstance() const | ||
| 2553 | { | ||
| 2554 | return new FindDocumentsRequest; | ||
| 2555 | } | ||
| 2556 | |||
| 2557 | const ::std::string& | ||
| 2558 | IceProxy::Ehr::CreatePermissionRequest::ice_staticId() | ||
| 2559 | { | ||
| 2560 | return ::Ehr::CreatePermissionRequest::ice_staticId(); | ||
| 2561 | } | ||
| 2562 | |||
| 2563 | ::IceInternal::Handle< ::IceDelegateM::Ice::Object> | ||
| 2564 | IceProxy::Ehr::CreatePermissionRequest::__createDelegateM() | ||
| 2565 | { | ||
| 2566 | return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Ehr::CreatePermissionRequest); | ||
| 2567 | } | ||
| 2568 | |||
| 2569 | ::IceInternal::Handle< ::IceDelegateD::Ice::Object> | ||
| 2570 | IceProxy::Ehr::CreatePermissionRequest::__createDelegateD() | ||
| 2571 | { | ||
| 2572 | return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Ehr::CreatePermissionRequest); | ||
| 2573 | } | ||
| 2574 | |||
| 2575 | ::IceProxy::Ice::Object* | ||
| 2576 | IceProxy::Ehr::CreatePermissionRequest::__newInstance() const | ||
| 2577 | { | ||
| 2578 | return new CreatePermissionRequest; | ||
| 2579 | } | ||
| 2580 | |||
| 2581 | const ::std::string& | ||
| 2582 | IceProxy::Ehr::SetDefaultAccessRequest::ice_staticId() | ||
| 2583 | { | ||
| 2584 | return ::Ehr::SetDefaultAccessRequest::ice_staticId(); | ||
| 2585 | } | ||
| 2586 | |||
| 2587 | ::IceInternal::Handle< ::IceDelegateM::Ice::Object> | ||
| 2588 | IceProxy::Ehr::SetDefaultAccessRequest::__createDelegateM() | ||
| 2589 | { | ||
| 2590 | return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Ehr::SetDefaultAccessRequest); | ||
| 2591 | } | ||
| 2592 | |||
| 2593 | ::IceInternal::Handle< ::IceDelegateD::Ice::Object> | ||
| 2594 | IceProxy::Ehr::SetDefaultAccessRequest::__createDelegateD() | ||
| 2595 | { | ||
| 2596 | return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Ehr::SetDefaultAccessRequest); | ||
| 2597 | } | ||
| 2598 | |||
| 2599 | ::IceProxy::Ice::Object* | ||
| 2600 | IceProxy::Ehr::SetDefaultAccessRequest::__newInstance() const | ||
| 2601 | { | ||
| 2602 | return new SetDefaultAccessRequest; | ||
| 2603 | } | ||
| 2604 | |||
| 2605 | const ::std::string& | ||
| 2606 | IceProxy::Ehr::ListPermissionsRequest::ice_staticId() | ||
| 2607 | { | ||
| 2608 | return ::Ehr::ListPermissionsRequest::ice_staticId(); | ||
| 2609 | } | ||
| 2610 | |||
| 2611 | ::IceInternal::Handle< ::IceDelegateM::Ice::Object> | ||
| 2612 | IceProxy::Ehr::ListPermissionsRequest::__createDelegateM() | ||
| 2613 | { | ||
| 2614 | return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Ehr::ListPermissionsRequest); | ||
| 2615 | } | ||
| 2616 | |||
| 2617 | ::IceInternal::Handle< ::IceDelegateD::Ice::Object> | ||
| 2618 | IceProxy::Ehr::ListPermissionsRequest::__createDelegateD() | ||
| 2619 | { | ||
| 2620 | return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Ehr::ListPermissionsRequest); | ||
| 2621 | } | ||
| 2622 | |||
| 2623 | ::IceProxy::Ice::Object* | ||
| 2624 | IceProxy::Ehr::ListPermissionsRequest::__newInstance() const | ||
| 2625 | { | ||
| 2626 | return new ListPermissionsRequest; | ||
| 2627 | } | ||
| 2628 | |||
| 2629 | const ::std::string& | ||
| 2630 | IceProxy::Ehr::RemovePermissionRequest::ice_staticId() | ||
| 2631 | { | ||
| 2632 | return ::Ehr::RemovePermissionRequest::ice_staticId(); | ||
| 2633 | } | ||
| 2634 | |||
| 2635 | ::IceInternal::Handle< ::IceDelegateM::Ice::Object> | ||
| 2636 | IceProxy::Ehr::RemovePermissionRequest::__createDelegateM() | ||
| 2637 | { | ||
| 2638 | return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Ehr::RemovePermissionRequest); | ||
| 2639 | } | ||
| 2640 | |||
| 2641 | ::IceInternal::Handle< ::IceDelegateD::Ice::Object> | ||
| 2642 | IceProxy::Ehr::RemovePermissionRequest::__createDelegateD() | ||
| 2643 | { | ||
| 2644 | return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Ehr::RemovePermissionRequest); | ||
| 2645 | } | ||
| 2646 | |||
| 2647 | ::IceProxy::Ice::Object* | ||
| 2648 | IceProxy::Ehr::RemovePermissionRequest::__newInstance() const | ||
| 2649 | { | ||
| 2650 | return new RemovePermissionRequest; | ||
| 2651 | } | ||
| 2652 | |||
| 2653 | void | ||
| 2654 | IceProxy::Ehr::Provider::createPrescription(const ::Ehr::CreatePrescriptionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context* __ctx) | ||
| 2655 | { | ||
| 2656 | int __cnt = 0; | ||
| 2657 | while(true) | ||
| 2658 | { | ||
| 2659 | ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; | ||
| 2660 | try | ||
| 2661 | { | ||
| 2662 | #if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) // C++Builder 2009 compiler bug | ||
| 2663 | IceUtil::DummyBCC dummy; | ||
| 2664 | #endif | ||
| 2665 | __checkTwowayOnly(__Ehr__Provider__createPrescription_name); | ||
| 2666 | __delBase = __getDelegate(false); | ||
| 2667 | ::IceDelegate::Ehr::Provider* __del = dynamic_cast< ::IceDelegate::Ehr::Provider*>(__delBase.get()); | ||
| 2668 | __del->createPrescription(request, requestorSignature, ownerSignature, __ctx); | ||
| 2669 | return; | ||
| 2670 | } | ||
| 2671 | catch(const ::IceInternal::LocalExceptionWrapper& __ex) | ||
| 2672 | { | ||
| 2673 | __handleExceptionWrapper(__delBase, __ex, 0); | ||
| 2674 | } | ||
| 2675 | catch(const ::Ice::LocalException& __ex) | ||
| 2676 | { | ||
| 2677 | __handleException(__delBase, __ex, 0, __cnt); | ||
| 2678 | } | ||
| 2679 | } | ||
| 2680 | } | ||
| 2681 | |||
| 2682 | void | ||
| 2683 | IceProxy::Ehr::Provider::consumePrescription(const ::Ehr::ConsumePrescriptionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context* __ctx) | ||
| 2684 | { | ||
| 2685 | int __cnt = 0; | ||
| 2686 | while(true) | ||
| 2687 | { | ||
| 2688 | ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; | ||
| 2689 | try | ||
| 2690 | { | ||
| 2691 | #if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) // C++Builder 2009 compiler bug | ||
| 2692 | IceUtil::DummyBCC dummy; | ||
| 2693 | #endif | ||
| 2694 | __checkTwowayOnly(__Ehr__Provider__consumePrescription_name); | ||
| 2695 | __delBase = __getDelegate(false); | ||
| 2696 | ::IceDelegate::Ehr::Provider* __del = dynamic_cast< ::IceDelegate::Ehr::Provider*>(__delBase.get()); | ||
| 2697 | __del->consumePrescription(request, requestorSignature, ownerSignature, __ctx); | ||
| 2698 | return; | ||
| 2699 | } | ||
| 2700 | catch(const ::IceInternal::LocalExceptionWrapper& __ex) | ||
| 2701 | { | ||
| 2702 | __handleExceptionWrapper(__delBase, __ex, 0); | ||
| 2703 | } | ||
| 2704 | catch(const ::Ice::LocalException& __ex) | ||
| 2705 | { | ||
| 2706 | __handleException(__delBase, __ex, 0, __cnt); | ||
| 2707 | } | ||
| 2708 | } | ||
| 2709 | } | ||
| 2710 | |||
| 2711 | ::Ehr::DocumentList | ||
| 2712 | IceProxy::Ehr::Provider::listDocuments(const ::Ehr::ListDocumentsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context* __ctx) | ||
| 2713 | { | ||
| 2714 | int __cnt = 0; | ||
| 2715 | while(true) | ||
| 2716 | { | ||
| 2717 | ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; | ||
| 2718 | try | ||
| 2719 | { | ||
| 2720 | #if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) // C++Builder 2009 compiler bug | ||
| 2721 | IceUtil::DummyBCC dummy; | ||
| 2722 | #endif | ||
| 2723 | __checkTwowayOnly(__Ehr__Provider__listDocuments_name); | ||
| 2724 | __delBase = __getDelegate(false); | ||
| 2725 | ::IceDelegate::Ehr::Provider* __del = dynamic_cast< ::IceDelegate::Ehr::Provider*>(__delBase.get()); | ||
| 2726 | return __del->listDocuments(request, requestorSignature, ownerSignature, __ctx); | ||
| 2727 | } | ||
| 2728 | catch(const ::IceInternal::LocalExceptionWrapper& __ex) | ||
| 2729 | { | ||
| 2730 | __handleExceptionWrapper(__delBase, __ex, 0); | ||
| 2731 | } | ||
| 2732 | catch(const ::Ice::LocalException& __ex) | ||
| 2733 | { | ||
| 2734 | __handleException(__delBase, __ex, 0, __cnt); | ||
| 2735 | } | ||
| 2736 | } | ||
| 2737 | } | ||
| 2738 | |||
| 2739 | ::Ehr::DocumentList | ||
| 2740 | IceProxy::Ehr::Provider::findDocuments(const ::Ehr::FindDocumentsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context* __ctx) | ||
| 2741 | { | ||
| 2742 | int __cnt = 0; | ||
| 2743 | while(true) | ||
| 2744 | { | ||
| 2745 | ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; | ||
| 2746 | try | ||
| 2747 | { | ||
| 2748 | #if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) // C++Builder 2009 compiler bug | ||
| 2749 | IceUtil::DummyBCC dummy; | ||
| 2750 | #endif | ||
| 2751 | __checkTwowayOnly(__Ehr__Provider__findDocuments_name); | ||
| 2752 | __delBase = __getDelegate(false); | ||
| 2753 | ::IceDelegate::Ehr::Provider* __del = dynamic_cast< ::IceDelegate::Ehr::Provider*>(__delBase.get()); | ||
| 2754 | return __del->findDocuments(request, requestorSignature, ownerSignature, __ctx); | ||
| 2755 | } | ||
| 2756 | catch(const ::IceInternal::LocalExceptionWrapper& __ex) | ||
| 2757 | { | ||
| 2758 | __handleExceptionWrapper(__delBase, __ex, 0); | ||
| 2759 | } | ||
| 2760 | catch(const ::Ice::LocalException& __ex) | ||
| 2761 | { | ||
| 2762 | __handleException(__delBase, __ex, 0, __cnt); | ||
| 2763 | } | ||
| 2764 | } | ||
| 2765 | } | ||
| 2766 | |||
| 2767 | void | ||
| 2768 | IceProxy::Ehr::Provider::setDefaultAccess(const ::Ehr::SetDefaultAccessRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context* __ctx) | ||
| 2769 | { | ||
| 2770 | int __cnt = 0; | ||
| 2771 | while(true) | ||
| 2772 | { | ||
| 2773 | ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; | ||
| 2774 | try | ||
| 2775 | { | ||
| 2776 | #if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) // C++Builder 2009 compiler bug | ||
| 2777 | IceUtil::DummyBCC dummy; | ||
| 2778 | #endif | ||
| 2779 | __checkTwowayOnly(__Ehr__Provider__setDefaultAccess_name); | ||
| 2780 | __delBase = __getDelegate(false); | ||
| 2781 | ::IceDelegate::Ehr::Provider* __del = dynamic_cast< ::IceDelegate::Ehr::Provider*>(__delBase.get()); | ||
| 2782 | __del->setDefaultAccess(request, requestorSignature, __ctx); | ||
| 2783 | return; | ||
| 2784 | } | ||
| 2785 | catch(const ::IceInternal::LocalExceptionWrapper& __ex) | ||
| 2786 | { | ||
| 2787 | __handleExceptionWrapper(__delBase, __ex, 0); | ||
| 2788 | } | ||
| 2789 | catch(const ::Ice::LocalException& __ex) | ||
| 2790 | { | ||
| 2791 | __handleException(__delBase, __ex, 0, __cnt); | ||
| 2792 | } | ||
| 2793 | } | ||
| 2794 | } | ||
| 2795 | |||
| 2796 | void | ||
| 2797 | IceProxy::Ehr::Provider::createPermission(const ::Ehr::CreatePermissionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context* __ctx) | ||
| 2798 | { | ||
| 2799 | int __cnt = 0; | ||
| 2800 | while(true) | ||
| 2801 | { | ||
| 2802 | ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; | ||
| 2803 | try | ||
| 2804 | { | ||
| 2805 | #if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) // C++Builder 2009 compiler bug | ||
| 2806 | IceUtil::DummyBCC dummy; | ||
| 2807 | #endif | ||
| 2808 | __checkTwowayOnly(__Ehr__Provider__createPermission_name); | ||
| 2809 | __delBase = __getDelegate(false); | ||
| 2810 | ::IceDelegate::Ehr::Provider* __del = dynamic_cast< ::IceDelegate::Ehr::Provider*>(__delBase.get()); | ||
| 2811 | __del->createPermission(request, requestorSignature, __ctx); | ||
| 2812 | return; | ||
| 2813 | } | ||
| 2814 | catch(const ::IceInternal::LocalExceptionWrapper& __ex) | ||
| 2815 | { | ||
| 2816 | __handleExceptionWrapper(__delBase, __ex, 0); | ||
| 2817 | } | ||
| 2818 | catch(const ::Ice::LocalException& __ex) | ||
| 2819 | { | ||
| 2820 | __handleException(__delBase, __ex, 0, __cnt); | ||
| 2821 | } | ||
| 2822 | } | ||
| 2823 | } | ||
| 2824 | |||
| 2825 | ::Ehr::Permissions | ||
| 2826 | IceProxy::Ehr::Provider::listPermissions(const ::Ehr::ListPermissionsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context* __ctx) | ||
| 2827 | { | ||
| 2828 | int __cnt = 0; | ||
| 2829 | while(true) | ||
| 2830 | { | ||
| 2831 | ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; | ||
| 2832 | try | ||
| 2833 | { | ||
| 2834 | #if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) // C++Builder 2009 compiler bug | ||
| 2835 | IceUtil::DummyBCC dummy; | ||
| 2836 | #endif | ||
| 2837 | __checkTwowayOnly(__Ehr__Provider__listPermissions_name); | ||
| 2838 | __delBase = __getDelegate(false); | ||
| 2839 | ::IceDelegate::Ehr::Provider* __del = dynamic_cast< ::IceDelegate::Ehr::Provider*>(__delBase.get()); | ||
| 2840 | return __del->listPermissions(request, requestorSignature, __ctx); | ||
| 2841 | } | ||
| 2842 | catch(const ::IceInternal::LocalExceptionWrapper& __ex) | ||
| 2843 | { | ||
| 2844 | __handleExceptionWrapper(__delBase, __ex, 0); | ||
| 2845 | } | ||
| 2846 | catch(const ::Ice::LocalException& __ex) | ||
| 2847 | { | ||
| 2848 | __handleException(__delBase, __ex, 0, __cnt); | ||
| 2849 | } | ||
| 2850 | } | ||
| 2851 | } | ||
| 2852 | |||
| 2853 | void | ||
| 2854 | IceProxy::Ehr::Provider::removePermission(const ::Ehr::RemovePermissionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context* __ctx) | ||
| 2855 | { | ||
| 2856 | int __cnt = 0; | ||
| 2857 | while(true) | ||
| 2858 | { | ||
| 2859 | ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; | ||
| 2860 | try | ||
| 2861 | { | ||
| 2862 | #if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) // C++Builder 2009 compiler bug | ||
| 2863 | IceUtil::DummyBCC dummy; | ||
| 2864 | #endif | ||
| 2865 | __checkTwowayOnly(__Ehr__Provider__removePermission_name); | ||
| 2866 | __delBase = __getDelegate(false); | ||
| 2867 | ::IceDelegate::Ehr::Provider* __del = dynamic_cast< ::IceDelegate::Ehr::Provider*>(__delBase.get()); | ||
| 2868 | __del->removePermission(request, requestorSignature, __ctx); | ||
| 2869 | return; | ||
| 2870 | } | ||
| 2871 | catch(const ::IceInternal::LocalExceptionWrapper& __ex) | ||
| 2872 | { | ||
| 2873 | __handleExceptionWrapper(__delBase, __ex, 0); | ||
| 2874 | } | ||
| 2875 | catch(const ::Ice::LocalException& __ex) | ||
| 2876 | { | ||
| 2877 | __handleException(__delBase, __ex, 0, __cnt); | ||
| 2878 | } | ||
| 2879 | } | ||
| 2880 | } | ||
| 2881 | |||
| 2882 | const ::std::string& | ||
| 2883 | IceProxy::Ehr::Provider::ice_staticId() | ||
| 2884 | { | ||
| 2885 | return ::Ehr::Provider::ice_staticId(); | ||
| 2886 | } | ||
| 2887 | |||
| 2888 | ::IceInternal::Handle< ::IceDelegateM::Ice::Object> | ||
| 2889 | IceProxy::Ehr::Provider::__createDelegateM() | ||
| 2890 | { | ||
| 2891 | return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Ehr::Provider); | ||
| 2892 | } | ||
| 2893 | |||
| 2894 | ::IceInternal::Handle< ::IceDelegateD::Ice::Object> | ||
| 2895 | IceProxy::Ehr::Provider::__createDelegateD() | ||
| 2896 | { | ||
| 2897 | return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Ehr::Provider); | ||
| 2898 | } | ||
| 2899 | |||
| 2900 | ::IceProxy::Ice::Object* | ||
| 2901 | IceProxy::Ehr::Provider::__newInstance() const | ||
| 2902 | { | ||
| 2903 | return new Provider; | ||
| 2904 | } | ||
| 2905 | |||
| 2906 | void | ||
| 2907 | IceDelegateM::Ehr::Provider::createPrescription(const ::Ehr::CreatePrescriptionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context* __context) | ||
| 2908 | { | ||
| 2909 | ::IceInternal::Outgoing __og(__handler.get(), __Ehr__Provider__createPrescription_name, ::Ice::Normal, __context); | ||
| 2910 | try | ||
| 2911 | { | ||
| 2912 | ::IceInternal::BasicStream* __os = __og.os(); | ||
| 2913 | __os->write(::Ice::ObjectPtr(::IceInternal::upCast(request.get()))); | ||
| 2914 | requestorSignature.__write(__os); | ||
| 2915 | ownerSignature.__write(__os); | ||
| 2916 | __os->writePendingObjects(); | ||
| 2917 | } | ||
| 2918 | catch(const ::Ice::LocalException& __ex) | ||
| 2919 | { | ||
| 2920 | __og.abort(__ex); | ||
| 2921 | } | ||
| 2922 | bool __ok = __og.invoke(); | ||
| 2923 | try | ||
| 2924 | { | ||
| 2925 | if(!__ok) | ||
| 2926 | { | ||
| 2927 | try | ||
| 2928 | { | ||
| 2929 | __og.throwUserException(); | ||
| 2930 | } | ||
| 2931 | catch(const ::Ehr::EhrException&) | ||
| 2932 | { | ||
| 2933 | throw; | ||
| 2934 | } | ||
| 2935 | catch(const ::Ice::UserException& __ex) | ||
| 2936 | { | ||
| 2937 | ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); | ||
| 2938 | throw __uue; | ||
| 2939 | } | ||
| 2940 | } | ||
| 2941 | __og.is()->skipEmptyEncaps(); | ||
| 2942 | } | ||
| 2943 | catch(const ::Ice::LocalException& __ex) | ||
| 2944 | { | ||
| 2945 | throw ::IceInternal::LocalExceptionWrapper(__ex, false); | ||
| 2946 | } | ||
| 2947 | } | ||
| 2948 | |||
| 2949 | void | ||
| 2950 | IceDelegateM::Ehr::Provider::consumePrescription(const ::Ehr::ConsumePrescriptionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context* __context) | ||
| 2951 | { | ||
| 2952 | ::IceInternal::Outgoing __og(__handler.get(), __Ehr__Provider__consumePrescription_name, ::Ice::Normal, __context); | ||
| 2953 | try | ||
| 2954 | { | ||
| 2955 | ::IceInternal::BasicStream* __os = __og.os(); | ||
| 2956 | __os->write(::Ice::ObjectPtr(::IceInternal::upCast(request.get()))); | ||
| 2957 | requestorSignature.__write(__os); | ||
| 2958 | ownerSignature.__write(__os); | ||
| 2959 | __os->writePendingObjects(); | ||
| 2960 | } | ||
| 2961 | catch(const ::Ice::LocalException& __ex) | ||
| 2962 | { | ||
| 2963 | __og.abort(__ex); | ||
| 2964 | } | ||
| 2965 | bool __ok = __og.invoke(); | ||
| 2966 | try | ||
| 2967 | { | ||
| 2968 | if(!__ok) | ||
| 2969 | { | ||
| 2970 | try | ||
| 2971 | { | ||
| 2972 | __og.throwUserException(); | ||
| 2973 | } | ||
| 2974 | catch(const ::Ehr::EhrException&) | ||
| 2975 | { | ||
| 2976 | throw; | ||
| 2977 | } | ||
| 2978 | catch(const ::Ice::UserException& __ex) | ||
| 2979 | { | ||
| 2980 | ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); | ||
| 2981 | throw __uue; | ||
| 2982 | } | ||
| 2983 | } | ||
| 2984 | __og.is()->skipEmptyEncaps(); | ||
| 2985 | } | ||
| 2986 | catch(const ::Ice::LocalException& __ex) | ||
| 2987 | { | ||
| 2988 | throw ::IceInternal::LocalExceptionWrapper(__ex, false); | ||
| 2989 | } | ||
| 2990 | } | ||
| 2991 | |||
| 2992 | ::Ehr::DocumentList | ||
| 2993 | IceDelegateM::Ehr::Provider::listDocuments(const ::Ehr::ListDocumentsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context* __context) | ||
| 2994 | { | ||
| 2995 | ::IceInternal::Outgoing __og(__handler.get(), __Ehr__Provider__listDocuments_name, ::Ice::Normal, __context); | ||
| 2996 | try | ||
| 2997 | { | ||
| 2998 | ::IceInternal::BasicStream* __os = __og.os(); | ||
| 2999 | __os->write(::Ice::ObjectPtr(::IceInternal::upCast(request.get()))); | ||
| 3000 | requestorSignature.__write(__os); | ||
| 3001 | ownerSignature.__write(__os); | ||
| 3002 | __os->writePendingObjects(); | ||
| 3003 | } | ||
| 3004 | catch(const ::Ice::LocalException& __ex) | ||
| 3005 | { | ||
| 3006 | __og.abort(__ex); | ||
| 3007 | } | ||
| 3008 | bool __ok = __og.invoke(); | ||
| 3009 | ::Ehr::DocumentList __ret; | ||
| 3010 | try | ||
| 3011 | { | ||
| 3012 | if(!__ok) | ||
| 3013 | { | ||
| 3014 | try | ||
| 3015 | { | ||
| 3016 | __og.throwUserException(); | ||
| 3017 | } | ||
| 3018 | catch(const ::Ehr::EhrException&) | ||
| 3019 | { | ||
| 3020 | throw; | ||
| 3021 | } | ||
| 3022 | catch(const ::Ice::UserException& __ex) | ||
| 3023 | { | ||
| 3024 | ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); | ||
| 3025 | throw __uue; | ||
| 3026 | } | ||
| 3027 | } | ||
| 3028 | ::IceInternal::BasicStream* __is = __og.is(); | ||
| 3029 | __is->startReadEncaps(); | ||
| 3030 | ::Ehr::__readDocumentList(__is, __ret); | ||
| 3031 | __is->endReadEncaps(); | ||
| 3032 | return __ret; | ||
| 3033 | } | ||
| 3034 | catch(const ::Ice::LocalException& __ex) | ||
| 3035 | { | ||
| 3036 | throw ::IceInternal::LocalExceptionWrapper(__ex, false); | ||
| 3037 | } | ||
| 3038 | } | ||
| 3039 | |||
| 3040 | ::Ehr::DocumentList | ||
| 3041 | IceDelegateM::Ehr::Provider::findDocuments(const ::Ehr::FindDocumentsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context* __context) | ||
| 3042 | { | ||
| 3043 | ::IceInternal::Outgoing __og(__handler.get(), __Ehr__Provider__findDocuments_name, ::Ice::Normal, __context); | ||
| 3044 | try | ||
| 3045 | { | ||
| 3046 | ::IceInternal::BasicStream* __os = __og.os(); | ||
| 3047 | __os->write(::Ice::ObjectPtr(::IceInternal::upCast(request.get()))); | ||
| 3048 | requestorSignature.__write(__os); | ||
| 3049 | ownerSignature.__write(__os); | ||
| 3050 | __os->writePendingObjects(); | ||
| 3051 | } | ||
| 3052 | catch(const ::Ice::LocalException& __ex) | ||
| 3053 | { | ||
| 3054 | __og.abort(__ex); | ||
| 3055 | } | ||
| 3056 | bool __ok = __og.invoke(); | ||
| 3057 | ::Ehr::DocumentList __ret; | ||
| 3058 | try | ||
| 3059 | { | ||
| 3060 | if(!__ok) | ||
| 3061 | { | ||
| 3062 | try | ||
| 3063 | { | ||
| 3064 | __og.throwUserException(); | ||
| 3065 | } | ||
| 3066 | catch(const ::Ehr::EhrException&) | ||
| 3067 | { | ||
| 3068 | throw; | ||
| 3069 | } | ||
| 3070 | catch(const ::Ice::UserException& __ex) | ||
| 3071 | { | ||
| 3072 | ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); | ||
| 3073 | throw __uue; | ||
| 3074 | } | ||
| 3075 | } | ||
| 3076 | ::IceInternal::BasicStream* __is = __og.is(); | ||
| 3077 | __is->startReadEncaps(); | ||
| 3078 | ::Ehr::__readDocumentList(__is, __ret); | ||
| 3079 | __is->endReadEncaps(); | ||
| 3080 | return __ret; | ||
| 3081 | } | ||
| 3082 | catch(const ::Ice::LocalException& __ex) | ||
| 3083 | { | ||
| 3084 | throw ::IceInternal::LocalExceptionWrapper(__ex, false); | ||
| 3085 | } | ||
| 3086 | } | ||
| 3087 | |||
| 3088 | void | ||
| 3089 | IceDelegateM::Ehr::Provider::setDefaultAccess(const ::Ehr::SetDefaultAccessRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context* __context) | ||
| 3090 | { | ||
| 3091 | ::IceInternal::Outgoing __og(__handler.get(), __Ehr__Provider__setDefaultAccess_name, ::Ice::Normal, __context); | ||
| 3092 | try | ||
| 3093 | { | ||
| 3094 | ::IceInternal::BasicStream* __os = __og.os(); | ||
| 3095 | __os->write(::Ice::ObjectPtr(::IceInternal::upCast(request.get()))); | ||
| 3096 | requestorSignature.__write(__os); | ||
| 3097 | __os->writePendingObjects(); | ||
| 3098 | } | ||
| 3099 | catch(const ::Ice::LocalException& __ex) | ||
| 3100 | { | ||
| 3101 | __og.abort(__ex); | ||
| 3102 | } | ||
| 3103 | bool __ok = __og.invoke(); | ||
| 3104 | try | ||
| 3105 | { | ||
| 3106 | if(!__ok) | ||
| 3107 | { | ||
| 3108 | try | ||
| 3109 | { | ||
| 3110 | __og.throwUserException(); | ||
| 3111 | } | ||
| 3112 | catch(const ::Ehr::EhrException&) | ||
| 3113 | { | ||
| 3114 | throw; | ||
| 3115 | } | ||
| 3116 | catch(const ::Ice::UserException& __ex) | ||
| 3117 | { | ||
| 3118 | ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); | ||
| 3119 | throw __uue; | ||
| 3120 | } | ||
| 3121 | } | ||
| 3122 | __og.is()->skipEmptyEncaps(); | ||
| 3123 | } | ||
| 3124 | catch(const ::Ice::LocalException& __ex) | ||
| 3125 | { | ||
| 3126 | throw ::IceInternal::LocalExceptionWrapper(__ex, false); | ||
| 3127 | } | ||
| 3128 | } | ||
| 3129 | |||
| 3130 | void | ||
| 3131 | IceDelegateM::Ehr::Provider::createPermission(const ::Ehr::CreatePermissionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context* __context) | ||
| 3132 | { | ||
| 3133 | ::IceInternal::Outgoing __og(__handler.get(), __Ehr__Provider__createPermission_name, ::Ice::Normal, __context); | ||
| 3134 | try | ||
| 3135 | { | ||
| 3136 | ::IceInternal::BasicStream* __os = __og.os(); | ||
| 3137 | __os->write(::Ice::ObjectPtr(::IceInternal::upCast(request.get()))); | ||
| 3138 | requestorSignature.__write(__os); | ||
| 3139 | __os->writePendingObjects(); | ||
| 3140 | } | ||
| 3141 | catch(const ::Ice::LocalException& __ex) | ||
| 3142 | { | ||
| 3143 | __og.abort(__ex); | ||
| 3144 | } | ||
| 3145 | bool __ok = __og.invoke(); | ||
| 3146 | try | ||
| 3147 | { | ||
| 3148 | if(!__ok) | ||
| 3149 | { | ||
| 3150 | try | ||
| 3151 | { | ||
| 3152 | __og.throwUserException(); | ||
| 3153 | } | ||
| 3154 | catch(const ::Ehr::EhrException&) | ||
| 3155 | { | ||
| 3156 | throw; | ||
| 3157 | } | ||
| 3158 | catch(const ::Ice::UserException& __ex) | ||
| 3159 | { | ||
| 3160 | ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); | ||
| 3161 | throw __uue; | ||
| 3162 | } | ||
| 3163 | } | ||
| 3164 | __og.is()->skipEmptyEncaps(); | ||
| 3165 | } | ||
| 3166 | catch(const ::Ice::LocalException& __ex) | ||
| 3167 | { | ||
| 3168 | throw ::IceInternal::LocalExceptionWrapper(__ex, false); | ||
| 3169 | } | ||
| 3170 | } | ||
| 3171 | |||
| 3172 | ::Ehr::Permissions | ||
| 3173 | IceDelegateM::Ehr::Provider::listPermissions(const ::Ehr::ListPermissionsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context* __context) | ||
| 3174 | { | ||
| 3175 | ::IceInternal::Outgoing __og(__handler.get(), __Ehr__Provider__listPermissions_name, ::Ice::Normal, __context); | ||
| 3176 | try | ||
| 3177 | { | ||
| 3178 | ::IceInternal::BasicStream* __os = __og.os(); | ||
| 3179 | __os->write(::Ice::ObjectPtr(::IceInternal::upCast(request.get()))); | ||
| 3180 | requestorSignature.__write(__os); | ||
| 3181 | __os->writePendingObjects(); | ||
| 3182 | } | ||
| 3183 | catch(const ::Ice::LocalException& __ex) | ||
| 3184 | { | ||
| 3185 | __og.abort(__ex); | ||
| 3186 | } | ||
| 3187 | bool __ok = __og.invoke(); | ||
| 3188 | ::Ehr::Permissions __ret; | ||
| 3189 | try | ||
| 3190 | { | ||
| 3191 | if(!__ok) | ||
| 3192 | { | ||
| 3193 | try | ||
| 3194 | { | ||
| 3195 | __og.throwUserException(); | ||
| 3196 | } | ||
| 3197 | catch(const ::Ehr::EhrException&) | ||
| 3198 | { | ||
| 3199 | throw; | ||
| 3200 | } | ||
| 3201 | catch(const ::Ice::UserException& __ex) | ||
| 3202 | { | ||
| 3203 | ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); | ||
| 3204 | throw __uue; | ||
| 3205 | } | ||
| 3206 | } | ||
| 3207 | ::IceInternal::BasicStream* __is = __og.is(); | ||
| 3208 | __is->startReadEncaps(); | ||
| 3209 | __ret.__read(__is); | ||
| 3210 | __is->endReadEncaps(); | ||
| 3211 | return __ret; | ||
| 3212 | } | ||
| 3213 | catch(const ::Ice::LocalException& __ex) | ||
| 3214 | { | ||
| 3215 | throw ::IceInternal::LocalExceptionWrapper(__ex, false); | ||
| 3216 | } | ||
| 3217 | } | ||
| 3218 | |||
| 3219 | void | ||
| 3220 | IceDelegateM::Ehr::Provider::removePermission(const ::Ehr::RemovePermissionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context* __context) | ||
| 3221 | { | ||
| 3222 | ::IceInternal::Outgoing __og(__handler.get(), __Ehr__Provider__removePermission_name, ::Ice::Normal, __context); | ||
| 3223 | try | ||
| 3224 | { | ||
| 3225 | ::IceInternal::BasicStream* __os = __og.os(); | ||
| 3226 | __os->write(::Ice::ObjectPtr(::IceInternal::upCast(request.get()))); | ||
| 3227 | requestorSignature.__write(__os); | ||
| 3228 | __os->writePendingObjects(); | ||
| 3229 | } | ||
| 3230 | catch(const ::Ice::LocalException& __ex) | ||
| 3231 | { | ||
| 3232 | __og.abort(__ex); | ||
| 3233 | } | ||
| 3234 | bool __ok = __og.invoke(); | ||
| 3235 | try | ||
| 3236 | { | ||
| 3237 | if(!__ok) | ||
| 3238 | { | ||
| 3239 | try | ||
| 3240 | { | ||
| 3241 | __og.throwUserException(); | ||
| 3242 | } | ||
| 3243 | catch(const ::Ehr::EhrException&) | ||
| 3244 | { | ||
| 3245 | throw; | ||
| 3246 | } | ||
| 3247 | catch(const ::Ice::UserException& __ex) | ||
| 3248 | { | ||
| 3249 | ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); | ||
| 3250 | throw __uue; | ||
| 3251 | } | ||
| 3252 | } | ||
| 3253 | __og.is()->skipEmptyEncaps(); | ||
| 3254 | } | ||
| 3255 | catch(const ::Ice::LocalException& __ex) | ||
| 3256 | { | ||
| 3257 | throw ::IceInternal::LocalExceptionWrapper(__ex, false); | ||
| 3258 | } | ||
| 3259 | } | ||
| 3260 | |||
| 3261 | void | ||
| 3262 | IceDelegateD::Ehr::Provider::createPrescription(const ::Ehr::CreatePrescriptionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context* __context) | ||
| 3263 | { | ||
| 3264 | class _DirectI : public ::IceInternal::Direct | ||
| 3265 | { | ||
| 3266 | public: | ||
| 3267 | |||
| 3268 | _DirectI(const ::Ehr::CreatePrescriptionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Current& __current) : | ||
| 3269 | ::IceInternal::Direct(__current), | ||
| 3270 | _m_request(request), | ||
| 3271 | _m_requestorSignature(requestorSignature), | ||
| 3272 | _m_ownerSignature(ownerSignature) | ||
| 3273 | { | ||
| 3274 | } | ||
| 3275 | |||
| 3276 | virtual ::Ice::DispatchStatus | ||
| 3277 | run(::Ice::Object* object) | ||
| 3278 | { | ||
| 3279 | ::Ehr::Provider* servant = dynamic_cast< ::Ehr::Provider*>(object); | ||
| 3280 | if(!servant) | ||
| 3281 | { | ||
| 3282 | throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); | ||
| 3283 | } | ||
| 3284 | try | ||
| 3285 | { | ||
| 3286 | servant->createPrescription(_m_request, _m_requestorSignature, _m_ownerSignature, _current); | ||
| 3287 | return ::Ice::DispatchOK; | ||
| 3288 | } | ||
| 3289 | catch(const ::Ice::UserException& __ex) | ||
| 3290 | { | ||
| 3291 | setUserException(__ex); | ||
| 3292 | return ::Ice::DispatchUserException; | ||
| 3293 | } | ||
| 3294 | } | ||
| 3295 | |||
| 3296 | private: | ||
| 3297 | |||
| 3298 | const ::Ehr::CreatePrescriptionRequestPtr& _m_request; | ||
| 3299 | const ::Ehr::Signature& _m_requestorSignature; | ||
| 3300 | const ::Ehr::Signature& _m_ownerSignature; | ||
| 3301 | }; | ||
| 3302 | |||
| 3303 | ::Ice::Current __current; | ||
| 3304 | __initCurrent(__current, __Ehr__Provider__createPrescription_name, ::Ice::Normal, __context); | ||
| 3305 | try | ||
| 3306 | { | ||
| 3307 | _DirectI __direct(request, requestorSignature, ownerSignature, __current); | ||
| 3308 | try | ||
| 3309 | { | ||
| 3310 | __direct.servant()->__collocDispatch(__direct); | ||
| 3311 | } | ||
| 3312 | catch(...) | ||
| 3313 | { | ||
| 3314 | __direct.destroy(); | ||
| 3315 | throw; | ||
| 3316 | } | ||
| 3317 | __direct.destroy(); | ||
| 3318 | } | ||
| 3319 | catch(const ::Ehr::EhrException&) | ||
| 3320 | { | ||
| 3321 | throw; | ||
| 3322 | } | ||
| 3323 | catch(const ::Ice::SystemException&) | ||
| 3324 | { | ||
| 3325 | throw; | ||
| 3326 | } | ||
| 3327 | catch(const ::IceInternal::LocalExceptionWrapper&) | ||
| 3328 | { | ||
| 3329 | throw; | ||
| 3330 | } | ||
| 3331 | catch(const ::std::exception& __ex) | ||
| 3332 | { | ||
| 3333 | ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); | ||
| 3334 | } | ||
| 3335 | catch(...) | ||
| 3336 | { | ||
| 3337 | throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); | ||
| 3338 | } | ||
| 3339 | } | ||
| 3340 | |||
| 3341 | void | ||
| 3342 | IceDelegateD::Ehr::Provider::consumePrescription(const ::Ehr::ConsumePrescriptionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context* __context) | ||
| 3343 | { | ||
| 3344 | class _DirectI : public ::IceInternal::Direct | ||
| 3345 | { | ||
| 3346 | public: | ||
| 3347 | |||
| 3348 | _DirectI(const ::Ehr::ConsumePrescriptionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Current& __current) : | ||
| 3349 | ::IceInternal::Direct(__current), | ||
| 3350 | _m_request(request), | ||
| 3351 | _m_requestorSignature(requestorSignature), | ||
| 3352 | _m_ownerSignature(ownerSignature) | ||
| 3353 | { | ||
| 3354 | } | ||
| 3355 | |||
| 3356 | virtual ::Ice::DispatchStatus | ||
| 3357 | run(::Ice::Object* object) | ||
| 3358 | { | ||
| 3359 | ::Ehr::Provider* servant = dynamic_cast< ::Ehr::Provider*>(object); | ||
| 3360 | if(!servant) | ||
| 3361 | { | ||
| 3362 | throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); | ||
| 3363 | } | ||
| 3364 | try | ||
| 3365 | { | ||
| 3366 | servant->consumePrescription(_m_request, _m_requestorSignature, _m_ownerSignature, _current); | ||
| 3367 | return ::Ice::DispatchOK; | ||
| 3368 | } | ||
| 3369 | catch(const ::Ice::UserException& __ex) | ||
| 3370 | { | ||
| 3371 | setUserException(__ex); | ||
| 3372 | return ::Ice::DispatchUserException; | ||
| 3373 | } | ||
| 3374 | } | ||
| 3375 | |||
| 3376 | private: | ||
| 3377 | |||
| 3378 | const ::Ehr::ConsumePrescriptionRequestPtr& _m_request; | ||
| 3379 | const ::Ehr::Signature& _m_requestorSignature; | ||
| 3380 | const ::Ehr::Signature& _m_ownerSignature; | ||
| 3381 | }; | ||
| 3382 | |||
| 3383 | ::Ice::Current __current; | ||
| 3384 | __initCurrent(__current, __Ehr__Provider__consumePrescription_name, ::Ice::Normal, __context); | ||
| 3385 | try | ||
| 3386 | { | ||
| 3387 | _DirectI __direct(request, requestorSignature, ownerSignature, __current); | ||
| 3388 | try | ||
| 3389 | { | ||
| 3390 | __direct.servant()->__collocDispatch(__direct); | ||
| 3391 | } | ||
| 3392 | catch(...) | ||
| 3393 | { | ||
| 3394 | __direct.destroy(); | ||
| 3395 | throw; | ||
| 3396 | } | ||
| 3397 | __direct.destroy(); | ||
| 3398 | } | ||
| 3399 | catch(const ::Ehr::EhrException&) | ||
| 3400 | { | ||
| 3401 | throw; | ||
| 3402 | } | ||
| 3403 | catch(const ::Ice::SystemException&) | ||
| 3404 | { | ||
| 3405 | throw; | ||
| 3406 | } | ||
| 3407 | catch(const ::IceInternal::LocalExceptionWrapper&) | ||
| 3408 | { | ||
| 3409 | throw; | ||
| 3410 | } | ||
| 3411 | catch(const ::std::exception& __ex) | ||
| 3412 | { | ||
| 3413 | ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); | ||
| 3414 | } | ||
| 3415 | catch(...) | ||
| 3416 | { | ||
| 3417 | throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); | ||
| 3418 | } | ||
| 3419 | } | ||
| 3420 | |||
| 3421 | ::Ehr::DocumentList | ||
| 3422 | IceDelegateD::Ehr::Provider::listDocuments(const ::Ehr::ListDocumentsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context* __context) | ||
| 3423 | { | ||
| 3424 | class _DirectI : public ::IceInternal::Direct | ||
| 3425 | { | ||
| 3426 | public: | ||
| 3427 | |||
| 3428 | _DirectI(::Ehr::DocumentList& __result, const ::Ehr::ListDocumentsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Current& __current) : | ||
| 3429 | ::IceInternal::Direct(__current), | ||
| 3430 | _result(__result), | ||
| 3431 | _m_request(request), | ||
| 3432 | _m_requestorSignature(requestorSignature), | ||
| 3433 | _m_ownerSignature(ownerSignature) | ||
| 3434 | { | ||
| 3435 | } | ||
| 3436 | |||
| 3437 | virtual ::Ice::DispatchStatus | ||
| 3438 | run(::Ice::Object* object) | ||
| 3439 | { | ||
| 3440 | ::Ehr::Provider* servant = dynamic_cast< ::Ehr::Provider*>(object); | ||
| 3441 | if(!servant) | ||
| 3442 | { | ||
| 3443 | throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); | ||
| 3444 | } | ||
| 3445 | try | ||
| 3446 | { | ||
| 3447 | _result = servant->listDocuments(_m_request, _m_requestorSignature, _m_ownerSignature, _current); | ||
| 3448 | return ::Ice::DispatchOK; | ||
| 3449 | } | ||
| 3450 | catch(const ::Ice::UserException& __ex) | ||
| 3451 | { | ||
| 3452 | setUserException(__ex); | ||
| 3453 | return ::Ice::DispatchUserException; | ||
| 3454 | } | ||
| 3455 | } | ||
| 3456 | |||
| 3457 | private: | ||
| 3458 | |||
| 3459 | ::Ehr::DocumentList& _result; | ||
| 3460 | const ::Ehr::ListDocumentsRequestPtr& _m_request; | ||
| 3461 | const ::Ehr::Signature& _m_requestorSignature; | ||
| 3462 | const ::Ehr::Signature& _m_ownerSignature; | ||
| 3463 | }; | ||
| 3464 | |||
| 3465 | ::Ice::Current __current; | ||
| 3466 | __initCurrent(__current, __Ehr__Provider__listDocuments_name, ::Ice::Normal, __context); | ||
| 3467 | ::Ehr::DocumentList __result; | ||
| 3468 | try | ||
| 3469 | { | ||
| 3470 | _DirectI __direct(__result, request, requestorSignature, ownerSignature, __current); | ||
| 3471 | try | ||
| 3472 | { | ||
| 3473 | __direct.servant()->__collocDispatch(__direct); | ||
| 3474 | } | ||
| 3475 | catch(...) | ||
| 3476 | { | ||
| 3477 | __direct.destroy(); | ||
| 3478 | throw; | ||
| 3479 | } | ||
| 3480 | __direct.destroy(); | ||
| 3481 | } | ||
| 3482 | catch(const ::Ehr::EhrException&) | ||
| 3483 | { | ||
| 3484 | throw; | ||
| 3485 | } | ||
| 3486 | catch(const ::Ice::SystemException&) | ||
| 3487 | { | ||
| 3488 | throw; | ||
| 3489 | } | ||
| 3490 | catch(const ::IceInternal::LocalExceptionWrapper&) | ||
| 3491 | { | ||
| 3492 | throw; | ||
| 3493 | } | ||
| 3494 | catch(const ::std::exception& __ex) | ||
| 3495 | { | ||
| 3496 | ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); | ||
| 3497 | } | ||
| 3498 | catch(...) | ||
| 3499 | { | ||
| 3500 | throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); | ||
| 3501 | } | ||
| 3502 | return __result; | ||
| 3503 | } | ||
| 3504 | |||
| 3505 | ::Ehr::DocumentList | ||
| 3506 | IceDelegateD::Ehr::Provider::findDocuments(const ::Ehr::FindDocumentsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context* __context) | ||
| 3507 | { | ||
| 3508 | class _DirectI : public ::IceInternal::Direct | ||
| 3509 | { | ||
| 3510 | public: | ||
| 3511 | |||
| 3512 | _DirectI(::Ehr::DocumentList& __result, const ::Ehr::FindDocumentsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Current& __current) : | ||
| 3513 | ::IceInternal::Direct(__current), | ||
| 3514 | _result(__result), | ||
| 3515 | _m_request(request), | ||
| 3516 | _m_requestorSignature(requestorSignature), | ||
| 3517 | _m_ownerSignature(ownerSignature) | ||
| 3518 | { | ||
| 3519 | } | ||
| 3520 | |||
| 3521 | virtual ::Ice::DispatchStatus | ||
| 3522 | run(::Ice::Object* object) | ||
| 3523 | { | ||
| 3524 | ::Ehr::Provider* servant = dynamic_cast< ::Ehr::Provider*>(object); | ||
| 3525 | if(!servant) | ||
| 3526 | { | ||
| 3527 | throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); | ||
| 3528 | } | ||
| 3529 | try | ||
| 3530 | { | ||
| 3531 | _result = servant->findDocuments(_m_request, _m_requestorSignature, _m_ownerSignature, _current); | ||
| 3532 | return ::Ice::DispatchOK; | ||
| 3533 | } | ||
| 3534 | catch(const ::Ice::UserException& __ex) | ||
| 3535 | { | ||
| 3536 | setUserException(__ex); | ||
| 3537 | return ::Ice::DispatchUserException; | ||
| 3538 | } | ||
| 3539 | } | ||
| 3540 | |||
| 3541 | private: | ||
| 3542 | |||
| 3543 | ::Ehr::DocumentList& _result; | ||
| 3544 | const ::Ehr::FindDocumentsRequestPtr& _m_request; | ||
| 3545 | const ::Ehr::Signature& _m_requestorSignature; | ||
| 3546 | const ::Ehr::Signature& _m_ownerSignature; | ||
| 3547 | }; | ||
| 3548 | |||
| 3549 | ::Ice::Current __current; | ||
| 3550 | __initCurrent(__current, __Ehr__Provider__findDocuments_name, ::Ice::Normal, __context); | ||
| 3551 | ::Ehr::DocumentList __result; | ||
| 3552 | try | ||
| 3553 | { | ||
| 3554 | _DirectI __direct(__result, request, requestorSignature, ownerSignature, __current); | ||
| 3555 | try | ||
| 3556 | { | ||
| 3557 | __direct.servant()->__collocDispatch(__direct); | ||
| 3558 | } | ||
| 3559 | catch(...) | ||
| 3560 | { | ||
| 3561 | __direct.destroy(); | ||
| 3562 | throw; | ||
| 3563 | } | ||
| 3564 | __direct.destroy(); | ||
| 3565 | } | ||
| 3566 | catch(const ::Ehr::EhrException&) | ||
| 3567 | { | ||
| 3568 | throw; | ||
| 3569 | } | ||
| 3570 | catch(const ::Ice::SystemException&) | ||
| 3571 | { | ||
| 3572 | throw; | ||
| 3573 | } | ||
| 3574 | catch(const ::IceInternal::LocalExceptionWrapper&) | ||
| 3575 | { | ||
| 3576 | throw; | ||
| 3577 | } | ||
| 3578 | catch(const ::std::exception& __ex) | ||
| 3579 | { | ||
| 3580 | ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); | ||
| 3581 | } | ||
| 3582 | catch(...) | ||
| 3583 | { | ||
| 3584 | throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); | ||
| 3585 | } | ||
| 3586 | return __result; | ||
| 3587 | } | ||
| 3588 | |||
| 3589 | void | ||
| 3590 | IceDelegateD::Ehr::Provider::setDefaultAccess(const ::Ehr::SetDefaultAccessRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context* __context) | ||
| 3591 | { | ||
| 3592 | class _DirectI : public ::IceInternal::Direct | ||
| 3593 | { | ||
| 3594 | public: | ||
| 3595 | |||
| 3596 | _DirectI(const ::Ehr::SetDefaultAccessRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Current& __current) : | ||
| 3597 | ::IceInternal::Direct(__current), | ||
| 3598 | _m_request(request), | ||
| 3599 | _m_requestorSignature(requestorSignature) | ||
| 3600 | { | ||
| 3601 | } | ||
| 3602 | |||
| 3603 | virtual ::Ice::DispatchStatus | ||
| 3604 | run(::Ice::Object* object) | ||
| 3605 | { | ||
| 3606 | ::Ehr::Provider* servant = dynamic_cast< ::Ehr::Provider*>(object); | ||
| 3607 | if(!servant) | ||
| 3608 | { | ||
| 3609 | throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); | ||
| 3610 | } | ||
| 3611 | try | ||
| 3612 | { | ||
| 3613 | servant->setDefaultAccess(_m_request, _m_requestorSignature, _current); | ||
| 3614 | return ::Ice::DispatchOK; | ||
| 3615 | } | ||
| 3616 | catch(const ::Ice::UserException& __ex) | ||
| 3617 | { | ||
| 3618 | setUserException(__ex); | ||
| 3619 | return ::Ice::DispatchUserException; | ||
| 3620 | } | ||
| 3621 | } | ||
| 3622 | |||
| 3623 | private: | ||
| 3624 | |||
| 3625 | const ::Ehr::SetDefaultAccessRequestPtr& _m_request; | ||
| 3626 | const ::Ehr::Signature& _m_requestorSignature; | ||
| 3627 | }; | ||
| 3628 | |||
| 3629 | ::Ice::Current __current; | ||
| 3630 | __initCurrent(__current, __Ehr__Provider__setDefaultAccess_name, ::Ice::Normal, __context); | ||
| 3631 | try | ||
| 3632 | { | ||
| 3633 | _DirectI __direct(request, requestorSignature, __current); | ||
| 3634 | try | ||
| 3635 | { | ||
| 3636 | __direct.servant()->__collocDispatch(__direct); | ||
| 3637 | } | ||
| 3638 | catch(...) | ||
| 3639 | { | ||
| 3640 | __direct.destroy(); | ||
| 3641 | throw; | ||
| 3642 | } | ||
| 3643 | __direct.destroy(); | ||
| 3644 | } | ||
| 3645 | catch(const ::Ehr::EhrException&) | ||
| 3646 | { | ||
| 3647 | throw; | ||
| 3648 | } | ||
| 3649 | catch(const ::Ice::SystemException&) | ||
| 3650 | { | ||
| 3651 | throw; | ||
| 3652 | } | ||
| 3653 | catch(const ::IceInternal::LocalExceptionWrapper&) | ||
| 3654 | { | ||
| 3655 | throw; | ||
| 3656 | } | ||
| 3657 | catch(const ::std::exception& __ex) | ||
| 3658 | { | ||
| 3659 | ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); | ||
| 3660 | } | ||
| 3661 | catch(...) | ||
| 3662 | { | ||
| 3663 | throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); | ||
| 3664 | } | ||
| 3665 | } | ||
| 3666 | |||
| 3667 | void | ||
| 3668 | IceDelegateD::Ehr::Provider::createPermission(const ::Ehr::CreatePermissionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context* __context) | ||
| 3669 | { | ||
| 3670 | class _DirectI : public ::IceInternal::Direct | ||
| 3671 | { | ||
| 3672 | public: | ||
| 3673 | |||
| 3674 | _DirectI(const ::Ehr::CreatePermissionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Current& __current) : | ||
| 3675 | ::IceInternal::Direct(__current), | ||
| 3676 | _m_request(request), | ||
| 3677 | _m_requestorSignature(requestorSignature) | ||
| 3678 | { | ||
| 3679 | } | ||
| 3680 | |||
| 3681 | virtual ::Ice::DispatchStatus | ||
| 3682 | run(::Ice::Object* object) | ||
| 3683 | { | ||
| 3684 | ::Ehr::Provider* servant = dynamic_cast< ::Ehr::Provider*>(object); | ||
| 3685 | if(!servant) | ||
| 3686 | { | ||
| 3687 | throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); | ||
| 3688 | } | ||
| 3689 | try | ||
| 3690 | { | ||
| 3691 | servant->createPermission(_m_request, _m_requestorSignature, _current); | ||
| 3692 | return ::Ice::DispatchOK; | ||
| 3693 | } | ||
| 3694 | catch(const ::Ice::UserException& __ex) | ||
| 3695 | { | ||
| 3696 | setUserException(__ex); | ||
| 3697 | return ::Ice::DispatchUserException; | ||
| 3698 | } | ||
| 3699 | } | ||
| 3700 | |||
| 3701 | private: | ||
| 3702 | |||
| 3703 | const ::Ehr::CreatePermissionRequestPtr& _m_request; | ||
| 3704 | const ::Ehr::Signature& _m_requestorSignature; | ||
| 3705 | }; | ||
| 3706 | |||
| 3707 | ::Ice::Current __current; | ||
| 3708 | __initCurrent(__current, __Ehr__Provider__createPermission_name, ::Ice::Normal, __context); | ||
| 3709 | try | ||
| 3710 | { | ||
| 3711 | _DirectI __direct(request, requestorSignature, __current); | ||
| 3712 | try | ||
| 3713 | { | ||
| 3714 | __direct.servant()->__collocDispatch(__direct); | ||
| 3715 | } | ||
| 3716 | catch(...) | ||
| 3717 | { | ||
| 3718 | __direct.destroy(); | ||
| 3719 | throw; | ||
| 3720 | } | ||
| 3721 | __direct.destroy(); | ||
| 3722 | } | ||
| 3723 | catch(const ::Ehr::EhrException&) | ||
| 3724 | { | ||
| 3725 | throw; | ||
| 3726 | } | ||
| 3727 | catch(const ::Ice::SystemException&) | ||
| 3728 | { | ||
| 3729 | throw; | ||
| 3730 | } | ||
| 3731 | catch(const ::IceInternal::LocalExceptionWrapper&) | ||
| 3732 | { | ||
| 3733 | throw; | ||
| 3734 | } | ||
| 3735 | catch(const ::std::exception& __ex) | ||
| 3736 | { | ||
| 3737 | ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); | ||
| 3738 | } | ||
| 3739 | catch(...) | ||
| 3740 | { | ||
| 3741 | throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); | ||
| 3742 | } | ||
| 3743 | } | ||
| 3744 | |||
| 3745 | ::Ehr::Permissions | ||
| 3746 | IceDelegateD::Ehr::Provider::listPermissions(const ::Ehr::ListPermissionsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context* __context) | ||
| 3747 | { | ||
| 3748 | class _DirectI : public ::IceInternal::Direct | ||
| 3749 | { | ||
| 3750 | public: | ||
| 3751 | |||
| 3752 | _DirectI(::Ehr::Permissions& __result, const ::Ehr::ListPermissionsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Current& __current) : | ||
| 3753 | ::IceInternal::Direct(__current), | ||
| 3754 | _result(__result), | ||
| 3755 | _m_request(request), | ||
| 3756 | _m_requestorSignature(requestorSignature) | ||
| 3757 | { | ||
| 3758 | } | ||
| 3759 | |||
| 3760 | virtual ::Ice::DispatchStatus | ||
| 3761 | run(::Ice::Object* object) | ||
| 3762 | { | ||
| 3763 | ::Ehr::Provider* servant = dynamic_cast< ::Ehr::Provider*>(object); | ||
| 3764 | if(!servant) | ||
| 3765 | { | ||
| 3766 | throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); | ||
| 3767 | } | ||
| 3768 | try | ||
| 3769 | { | ||
| 3770 | _result = servant->listPermissions(_m_request, _m_requestorSignature, _current); | ||
| 3771 | return ::Ice::DispatchOK; | ||
| 3772 | } | ||
| 3773 | catch(const ::Ice::UserException& __ex) | ||
| 3774 | { | ||
| 3775 | setUserException(__ex); | ||
| 3776 | return ::Ice::DispatchUserException; | ||
| 3777 | } | ||
| 3778 | } | ||
| 3779 | |||
| 3780 | private: | ||
| 3781 | |||
| 3782 | ::Ehr::Permissions& _result; | ||
| 3783 | const ::Ehr::ListPermissionsRequestPtr& _m_request; | ||
| 3784 | const ::Ehr::Signature& _m_requestorSignature; | ||
| 3785 | }; | ||
| 3786 | |||
| 3787 | ::Ice::Current __current; | ||
| 3788 | __initCurrent(__current, __Ehr__Provider__listPermissions_name, ::Ice::Normal, __context); | ||
| 3789 | ::Ehr::Permissions __result; | ||
| 3790 | try | ||
| 3791 | { | ||
| 3792 | _DirectI __direct(__result, request, requestorSignature, __current); | ||
| 3793 | try | ||
| 3794 | { | ||
| 3795 | __direct.servant()->__collocDispatch(__direct); | ||
| 3796 | } | ||
| 3797 | catch(...) | ||
| 3798 | { | ||
| 3799 | __direct.destroy(); | ||
| 3800 | throw; | ||
| 3801 | } | ||
| 3802 | __direct.destroy(); | ||
| 3803 | } | ||
| 3804 | catch(const ::Ehr::EhrException&) | ||
| 3805 | { | ||
| 3806 | throw; | ||
| 3807 | } | ||
| 3808 | catch(const ::Ice::SystemException&) | ||
| 3809 | { | ||
| 3810 | throw; | ||
| 3811 | } | ||
| 3812 | catch(const ::IceInternal::LocalExceptionWrapper&) | ||
| 3813 | { | ||
| 3814 | throw; | ||
| 3815 | } | ||
| 3816 | catch(const ::std::exception& __ex) | ||
| 3817 | { | ||
| 3818 | ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); | ||
| 3819 | } | ||
| 3820 | catch(...) | ||
| 3821 | { | ||
| 3822 | throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); | ||
| 3823 | } | ||
| 3824 | return __result; | ||
| 3825 | } | ||
| 3826 | |||
| 3827 | void | ||
| 3828 | IceDelegateD::Ehr::Provider::removePermission(const ::Ehr::RemovePermissionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context* __context) | ||
| 3829 | { | ||
| 3830 | class _DirectI : public ::IceInternal::Direct | ||
| 3831 | { | ||
| 3832 | public: | ||
| 3833 | |||
| 3834 | _DirectI(const ::Ehr::RemovePermissionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Current& __current) : | ||
| 3835 | ::IceInternal::Direct(__current), | ||
| 3836 | _m_request(request), | ||
| 3837 | _m_requestorSignature(requestorSignature) | ||
| 3838 | { | ||
| 3839 | } | ||
| 3840 | |||
| 3841 | virtual ::Ice::DispatchStatus | ||
| 3842 | run(::Ice::Object* object) | ||
| 3843 | { | ||
| 3844 | ::Ehr::Provider* servant = dynamic_cast< ::Ehr::Provider*>(object); | ||
| 3845 | if(!servant) | ||
| 3846 | { | ||
| 3847 | throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); | ||
| 3848 | } | ||
| 3849 | try | ||
| 3850 | { | ||
| 3851 | servant->removePermission(_m_request, _m_requestorSignature, _current); | ||
| 3852 | return ::Ice::DispatchOK; | ||
| 3853 | } | ||
| 3854 | catch(const ::Ice::UserException& __ex) | ||
| 3855 | { | ||
| 3856 | setUserException(__ex); | ||
| 3857 | return ::Ice::DispatchUserException; | ||
| 3858 | } | ||
| 3859 | } | ||
| 3860 | |||
| 3861 | private: | ||
| 3862 | |||
| 3863 | const ::Ehr::RemovePermissionRequestPtr& _m_request; | ||
| 3864 | const ::Ehr::Signature& _m_requestorSignature; | ||
| 3865 | }; | ||
| 3866 | |||
| 3867 | ::Ice::Current __current; | ||
| 3868 | __initCurrent(__current, __Ehr__Provider__removePermission_name, ::Ice::Normal, __context); | ||
| 3869 | try | ||
| 3870 | { | ||
| 3871 | _DirectI __direct(request, requestorSignature, __current); | ||
| 3872 | try | ||
| 3873 | { | ||
| 3874 | __direct.servant()->__collocDispatch(__direct); | ||
| 3875 | } | ||
| 3876 | catch(...) | ||
| 3877 | { | ||
| 3878 | __direct.destroy(); | ||
| 3879 | throw; | ||
| 3880 | } | ||
| 3881 | __direct.destroy(); | ||
| 3882 | } | ||
| 3883 | catch(const ::Ehr::EhrException&) | ||
| 3884 | { | ||
| 3885 | throw; | ||
| 3886 | } | ||
| 3887 | catch(const ::Ice::SystemException&) | ||
| 3888 | { | ||
| 3889 | throw; | ||
| 3890 | } | ||
| 3891 | catch(const ::IceInternal::LocalExceptionWrapper&) | ||
| 3892 | { | ||
| 3893 | throw; | ||
| 3894 | } | ||
| 3895 | catch(const ::std::exception& __ex) | ||
| 3896 | { | ||
| 3897 | ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); | ||
| 3898 | } | ||
| 3899 | catch(...) | ||
| 3900 | { | ||
| 3901 | throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); | ||
| 3902 | } | ||
| 3903 | } | ||
| 3904 | |||
| 3905 | Ehr::Document::Document(::Ehr::DocumentType __ice_type) : | ||
| 3906 | type(__ice_type) | ||
| 3907 | { | ||
| 3908 | } | ||
| 3909 | |||
| 3910 | ::Ice::ObjectPtr | ||
| 3911 | Ehr::Document::ice_clone() const | ||
| 3912 | { | ||
| 3913 | ::Ehr::DocumentPtr __p = new ::Ehr::Document(*this); | ||
| 3914 | return __p; | ||
| 3915 | } | ||
| 3916 | |||
| 3917 | static const ::std::string __Ehr__Document_ids[2] = | ||
| 3918 | { | ||
| 3919 | "::Ehr::Document", | ||
| 3920 | "::Ice::Object" | ||
| 3921 | }; | ||
| 3922 | |||
| 3923 | bool | ||
| 3924 | Ehr::Document::ice_isA(const ::std::string& _s, const ::Ice::Current&) const | ||
| 3925 | { | ||
| 3926 | return ::std::binary_search(__Ehr__Document_ids, __Ehr__Document_ids + 2, _s); | ||
| 3927 | } | ||
| 3928 | |||
| 3929 | ::std::vector< ::std::string> | ||
| 3930 | Ehr::Document::ice_ids(const ::Ice::Current&) const | ||
| 3931 | { | ||
| 3932 | return ::std::vector< ::std::string>(&__Ehr__Document_ids[0], &__Ehr__Document_ids[2]); | ||
| 3933 | } | ||
| 3934 | |||
| 3935 | const ::std::string& | ||
| 3936 | Ehr::Document::ice_id(const ::Ice::Current&) const | ||
| 3937 | { | ||
| 3938 | return __Ehr__Document_ids[0]; | ||
| 3939 | } | ||
| 3940 | |||
| 3941 | const ::std::string& | ||
| 3942 | Ehr::Document::ice_staticId() | ||
| 3943 | { | ||
| 3944 | return __Ehr__Document_ids[0]; | ||
| 3945 | } | ||
| 3946 | |||
| 3947 | void | ||
| 3948 | Ehr::Document::__write(::IceInternal::BasicStream* __os) const | ||
| 3949 | { | ||
| 3950 | __os->writeTypeId(ice_staticId()); | ||
| 3951 | __os->startWriteSlice(); | ||
| 3952 | ::Ehr::__write(__os, type); | ||
| 3953 | __os->endWriteSlice(); | ||
| 3954 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3955 | Object::__write(__os); | ||
| 3956 | #else | ||
| 3957 | ::Ice::Object::__write(__os); | ||
| 3958 | #endif | ||
| 3959 | } | ||
| 3960 | |||
| 3961 | void | ||
| 3962 | Ehr::Document::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 3963 | { | ||
| 3964 | if(__rid) | ||
| 3965 | { | ||
| 3966 | ::std::string myId; | ||
| 3967 | __is->readTypeId(myId); | ||
| 3968 | } | ||
| 3969 | __is->startReadSlice(); | ||
| 3970 | ::Ehr::__read(__is, type); | ||
| 3971 | __is->endReadSlice(); | ||
| 3972 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3973 | Object::__read(__is, true); | ||
| 3974 | #else | ||
| 3975 | ::Ice::Object::__read(__is, true); | ||
| 3976 | #endif | ||
| 3977 | } | ||
| 3978 | |||
| 3979 | void | ||
| 3980 | Ehr::Document::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 3981 | { | ||
| 3982 | __outS->writeTypeId(ice_staticId()); | ||
| 3983 | __outS->startSlice(); | ||
| 3984 | ::Ehr::ice_writeDocumentType(__outS, type); | ||
| 3985 | __outS->endSlice(); | ||
| 3986 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3987 | Object::__write(__outS); | ||
| 3988 | #else | ||
| 3989 | ::Ice::Object::__write(__outS); | ||
| 3990 | #endif | ||
| 3991 | } | ||
| 3992 | |||
| 3993 | void | ||
| 3994 | Ehr::Document::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 3995 | { | ||
| 3996 | if(__rid) | ||
| 3997 | { | ||
| 3998 | __inS->readTypeId(); | ||
| 3999 | } | ||
| 4000 | __inS->startSlice(); | ||
| 4001 | ::Ehr::ice_readDocumentType(__inS, type); | ||
| 4002 | __inS->endSlice(); | ||
| 4003 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4004 | Object::__read(__inS, true); | ||
| 4005 | #else | ||
| 4006 | ::Ice::Object::__read(__inS, true); | ||
| 4007 | #endif | ||
| 4008 | } | ||
| 4009 | |||
| 4010 | class __F__Ehr__Document : public ::Ice::ObjectFactory | ||
| 4011 | { | ||
| 4012 | public: | ||
| 4013 | |||
| 4014 | virtual ::Ice::ObjectPtr | ||
| 4015 | create(const ::std::string& type) | ||
| 4016 | { | ||
| 4017 | assert(type == ::Ehr::Document::ice_staticId()); | ||
| 4018 | return new ::Ehr::Document; | ||
| 4019 | } | ||
| 4020 | |||
| 4021 | virtual void | ||
| 4022 | destroy() | ||
| 4023 | { | ||
| 4024 | } | ||
| 4025 | }; | ||
| 4026 | |||
| 4027 | static ::Ice::ObjectFactoryPtr __F__Ehr__Document_Ptr = new __F__Ehr__Document; | ||
| 4028 | |||
| 4029 | const ::Ice::ObjectFactoryPtr& | ||
| 4030 | Ehr::Document::ice_factory() | ||
| 4031 | { | ||
| 4032 | return __F__Ehr__Document_Ptr; | ||
| 4033 | } | ||
| 4034 | |||
| 4035 | class __F__Ehr__Document__Init | ||
| 4036 | { | ||
| 4037 | public: | ||
| 4038 | |||
| 4039 | __F__Ehr__Document__Init() | ||
| 4040 | { | ||
| 4041 | ::IceInternal::factoryTable->addObjectFactory(::Ehr::Document::ice_staticId(), ::Ehr::Document::ice_factory()); | ||
| 4042 | } | ||
| 4043 | |||
| 4044 | ~__F__Ehr__Document__Init() | ||
| 4045 | { | ||
| 4046 | ::IceInternal::factoryTable->removeObjectFactory(::Ehr::Document::ice_staticId()); | ||
| 4047 | } | ||
| 4048 | }; | ||
| 4049 | |||
| 4050 | static __F__Ehr__Document__Init __F__Ehr__Document__i; | ||
| 4051 | |||
| 4052 | #ifdef __APPLE__ | ||
| 4053 | extern "C" { void __F__Ehr__Document__initializer() {} } | ||
| 4054 | #endif | ||
| 4055 | |||
| 4056 | void | ||
| 4057 | Ehr::__patch__DocumentPtr(void* __addr, ::Ice::ObjectPtr& v) | ||
| 4058 | { | ||
| 4059 | ::Ehr::DocumentPtr* p = static_cast< ::Ehr::DocumentPtr*>(__addr); | ||
| 4060 | assert(p); | ||
| 4061 | *p = ::Ehr::DocumentPtr::dynamicCast(v); | ||
| 4062 | if(v && !*p) | ||
| 4063 | { | ||
| 4064 | IceInternal::Ex::throwUOE(::Ehr::Document::ice_staticId(), v->ice_id()); | ||
| 4065 | } | ||
| 4066 | } | ||
| 4067 | |||
| 4068 | bool | ||
| 4069 | Ehr::operator==(const ::Ehr::Document& l, const ::Ehr::Document& r) | ||
| 4070 | { | ||
| 4071 | return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); | ||
| 4072 | } | ||
| 4073 | |||
| 4074 | bool | ||
| 4075 | Ehr::operator<(const ::Ehr::Document& l, const ::Ehr::Document& r) | ||
| 4076 | { | ||
| 4077 | return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); | ||
| 4078 | } | ||
| 4079 | |||
| 4080 | Ehr::Prescription::Prescription(::Ehr::DocumentType __ice_type, const ::std::string& __ice_originatorName, const ::std::string& __ice_originatorProfession, const ::std::string& __ice_originatorAddress, const ::Ehr::Date& __ice_creationDate, const ::std::string& __ice_consumerName, const ::Ehr::Date& __ice_consumerDateOfBirth, const ::std::string& __ice_drugDescription, const ::std::string& __ice_form, ::Ice::Int __ice_dosage, const ::std::string& __ice_measuringUnit, const ::Ehr::Date& __ice_validFrom, const ::Ehr::Date& __ice_expires) : | ||
| 4081 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4082 | Document(__ice_type) | ||
| 4083 | #else | ||
| 4084 | ::Ehr::Document(__ice_type) | ||
| 4085 | #endif | ||
| 4086 | , | ||
| 4087 | originatorName(__ice_originatorName), | ||
| 4088 | originatorProfession(__ice_originatorProfession), | ||
| 4089 | originatorAddress(__ice_originatorAddress), | ||
| 4090 | creationDate(__ice_creationDate), | ||
| 4091 | consumerName(__ice_consumerName), | ||
| 4092 | consumerDateOfBirth(__ice_consumerDateOfBirth), | ||
| 4093 | drugDescription(__ice_drugDescription), | ||
| 4094 | form(__ice_form), | ||
| 4095 | dosage(__ice_dosage), | ||
| 4096 | measuringUnit(__ice_measuringUnit), | ||
| 4097 | validFrom(__ice_validFrom), | ||
| 4098 | expires(__ice_expires) | ||
| 4099 | { | ||
| 4100 | } | ||
| 4101 | |||
| 4102 | ::Ice::ObjectPtr | ||
| 4103 | Ehr::Prescription::ice_clone() const | ||
| 4104 | { | ||
| 4105 | ::Ehr::PrescriptionPtr __p = new ::Ehr::Prescription(*this); | ||
| 4106 | return __p; | ||
| 4107 | } | ||
| 4108 | |||
| 4109 | static const ::std::string __Ehr__Prescription_ids[3] = | ||
| 4110 | { | ||
| 4111 | "::Ehr::Document", | ||
| 4112 | "::Ehr::Prescription", | ||
| 4113 | "::Ice::Object" | ||
| 4114 | }; | ||
| 4115 | |||
| 4116 | bool | ||
| 4117 | Ehr::Prescription::ice_isA(const ::std::string& _s, const ::Ice::Current&) const | ||
| 4118 | { | ||
| 4119 | return ::std::binary_search(__Ehr__Prescription_ids, __Ehr__Prescription_ids + 3, _s); | ||
| 4120 | } | ||
| 4121 | |||
| 4122 | ::std::vector< ::std::string> | ||
| 4123 | Ehr::Prescription::ice_ids(const ::Ice::Current&) const | ||
| 4124 | { | ||
| 4125 | return ::std::vector< ::std::string>(&__Ehr__Prescription_ids[0], &__Ehr__Prescription_ids[3]); | ||
| 4126 | } | ||
| 4127 | |||
| 4128 | const ::std::string& | ||
| 4129 | Ehr::Prescription::ice_id(const ::Ice::Current&) const | ||
| 4130 | { | ||
| 4131 | return __Ehr__Prescription_ids[1]; | ||
| 4132 | } | ||
| 4133 | |||
| 4134 | const ::std::string& | ||
| 4135 | Ehr::Prescription::ice_staticId() | ||
| 4136 | { | ||
| 4137 | return __Ehr__Prescription_ids[1]; | ||
| 4138 | } | ||
| 4139 | |||
| 4140 | void | ||
| 4141 | Ehr::Prescription::__write(::IceInternal::BasicStream* __os) const | ||
| 4142 | { | ||
| 4143 | __os->writeTypeId(ice_staticId()); | ||
| 4144 | __os->startWriteSlice(); | ||
| 4145 | __os->write(originatorName); | ||
| 4146 | __os->write(originatorProfession); | ||
| 4147 | __os->write(originatorAddress); | ||
| 4148 | creationDate.__write(__os); | ||
| 4149 | __os->write(consumerName); | ||
| 4150 | consumerDateOfBirth.__write(__os); | ||
| 4151 | __os->write(drugDescription); | ||
| 4152 | __os->write(form); | ||
| 4153 | __os->write(dosage); | ||
| 4154 | __os->write(measuringUnit); | ||
| 4155 | validFrom.__write(__os); | ||
| 4156 | expires.__write(__os); | ||
| 4157 | __os->endWriteSlice(); | ||
| 4158 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4159 | Document::__write(__os); | ||
| 4160 | #else | ||
| 4161 | ::Ehr::Document::__write(__os); | ||
| 4162 | #endif | ||
| 4163 | } | ||
| 4164 | |||
| 4165 | void | ||
| 4166 | Ehr::Prescription::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 4167 | { | ||
| 4168 | if(__rid) | ||
| 4169 | { | ||
| 4170 | ::std::string myId; | ||
| 4171 | __is->readTypeId(myId); | ||
| 4172 | } | ||
| 4173 | __is->startReadSlice(); | ||
| 4174 | __is->read(originatorName); | ||
| 4175 | __is->read(originatorProfession); | ||
| 4176 | __is->read(originatorAddress); | ||
| 4177 | creationDate.__read(__is); | ||
| 4178 | __is->read(consumerName); | ||
| 4179 | consumerDateOfBirth.__read(__is); | ||
| 4180 | __is->read(drugDescription); | ||
| 4181 | __is->read(form); | ||
| 4182 | __is->read(dosage); | ||
| 4183 | __is->read(measuringUnit); | ||
| 4184 | validFrom.__read(__is); | ||
| 4185 | expires.__read(__is); | ||
| 4186 | __is->endReadSlice(); | ||
| 4187 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4188 | Document::__read(__is, true); | ||
| 4189 | #else | ||
| 4190 | ::Ehr::Document::__read(__is, true); | ||
| 4191 | #endif | ||
| 4192 | } | ||
| 4193 | |||
| 4194 | void | ||
| 4195 | Ehr::Prescription::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 4196 | { | ||
| 4197 | __outS->writeTypeId(ice_staticId()); | ||
| 4198 | __outS->startSlice(); | ||
| 4199 | __outS->writeString(originatorName); | ||
| 4200 | __outS->writeString(originatorProfession); | ||
| 4201 | __outS->writeString(originatorAddress); | ||
| 4202 | ::Ehr::ice_writeDate(__outS, creationDate); | ||
| 4203 | __outS->writeString(consumerName); | ||
| 4204 | ::Ehr::ice_writeDate(__outS, consumerDateOfBirth); | ||
| 4205 | __outS->writeString(drugDescription); | ||
| 4206 | __outS->writeString(form); | ||
| 4207 | __outS->writeInt(dosage); | ||
| 4208 | __outS->writeString(measuringUnit); | ||
| 4209 | ::Ehr::ice_writeDate(__outS, validFrom); | ||
| 4210 | ::Ehr::ice_writeDate(__outS, expires); | ||
| 4211 | __outS->endSlice(); | ||
| 4212 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4213 | Document::__write(__outS); | ||
| 4214 | #else | ||
| 4215 | ::Ehr::Document::__write(__outS); | ||
| 4216 | #endif | ||
| 4217 | } | ||
| 4218 | |||
| 4219 | void | ||
| 4220 | Ehr::Prescription::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 4221 | { | ||
| 4222 | if(__rid) | ||
| 4223 | { | ||
| 4224 | __inS->readTypeId(); | ||
| 4225 | } | ||
| 4226 | __inS->startSlice(); | ||
| 4227 | originatorName = __inS->readString(); | ||
| 4228 | originatorProfession = __inS->readString(); | ||
| 4229 | originatorAddress = __inS->readString(); | ||
| 4230 | ::Ehr::ice_readDate(__inS, creationDate); | ||
| 4231 | consumerName = __inS->readString(); | ||
| 4232 | ::Ehr::ice_readDate(__inS, consumerDateOfBirth); | ||
| 4233 | drugDescription = __inS->readString(); | ||
| 4234 | form = __inS->readString(); | ||
| 4235 | dosage = __inS->readInt(); | ||
| 4236 | measuringUnit = __inS->readString(); | ||
| 4237 | ::Ehr::ice_readDate(__inS, validFrom); | ||
| 4238 | ::Ehr::ice_readDate(__inS, expires); | ||
| 4239 | __inS->endSlice(); | ||
| 4240 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4241 | Document::__read(__inS, true); | ||
| 4242 | #else | ||
| 4243 | ::Ehr::Document::__read(__inS, true); | ||
| 4244 | #endif | ||
| 4245 | } | ||
| 4246 | |||
| 4247 | class __F__Ehr__Prescription : public ::Ice::ObjectFactory | ||
| 4248 | { | ||
| 4249 | public: | ||
| 4250 | |||
| 4251 | virtual ::Ice::ObjectPtr | ||
| 4252 | create(const ::std::string& type) | ||
| 4253 | { | ||
| 4254 | assert(type == ::Ehr::Prescription::ice_staticId()); | ||
| 4255 | return new ::Ehr::Prescription; | ||
| 4256 | } | ||
| 4257 | |||
| 4258 | virtual void | ||
| 4259 | destroy() | ||
| 4260 | { | ||
| 4261 | } | ||
| 4262 | }; | ||
| 4263 | |||
| 4264 | static ::Ice::ObjectFactoryPtr __F__Ehr__Prescription_Ptr = new __F__Ehr__Prescription; | ||
| 4265 | |||
| 4266 | const ::Ice::ObjectFactoryPtr& | ||
| 4267 | Ehr::Prescription::ice_factory() | ||
| 4268 | { | ||
| 4269 | return __F__Ehr__Prescription_Ptr; | ||
| 4270 | } | ||
| 4271 | |||
| 4272 | class __F__Ehr__Prescription__Init | ||
| 4273 | { | ||
| 4274 | public: | ||
| 4275 | |||
| 4276 | __F__Ehr__Prescription__Init() | ||
| 4277 | { | ||
| 4278 | ::IceInternal::factoryTable->addObjectFactory(::Ehr::Prescription::ice_staticId(), ::Ehr::Prescription::ice_factory()); | ||
| 4279 | } | ||
| 4280 | |||
| 4281 | ~__F__Ehr__Prescription__Init() | ||
| 4282 | { | ||
| 4283 | ::IceInternal::factoryTable->removeObjectFactory(::Ehr::Prescription::ice_staticId()); | ||
| 4284 | } | ||
| 4285 | }; | ||
| 4286 | |||
| 4287 | static __F__Ehr__Prescription__Init __F__Ehr__Prescription__i; | ||
| 4288 | |||
| 4289 | #ifdef __APPLE__ | ||
| 4290 | extern "C" { void __F__Ehr__Prescription__initializer() {} } | ||
| 4291 | #endif | ||
| 4292 | |||
| 4293 | void | ||
| 4294 | Ehr::__patch__PrescriptionPtr(void* __addr, ::Ice::ObjectPtr& v) | ||
| 4295 | { | ||
| 4296 | ::Ehr::PrescriptionPtr* p = static_cast< ::Ehr::PrescriptionPtr*>(__addr); | ||
| 4297 | assert(p); | ||
| 4298 | *p = ::Ehr::PrescriptionPtr::dynamicCast(v); | ||
| 4299 | if(v && !*p) | ||
| 4300 | { | ||
| 4301 | IceInternal::Ex::throwUOE(::Ehr::Prescription::ice_staticId(), v->ice_id()); | ||
| 4302 | } | ||
| 4303 | } | ||
| 4304 | |||
| 4305 | bool | ||
| 4306 | Ehr::operator==(const ::Ehr::Prescription& l, const ::Ehr::Prescription& r) | ||
| 4307 | { | ||
| 4308 | return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); | ||
| 4309 | } | ||
| 4310 | |||
| 4311 | bool | ||
| 4312 | Ehr::operator<(const ::Ehr::Prescription& l, const ::Ehr::Prescription& r) | ||
| 4313 | { | ||
| 4314 | return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); | ||
| 4315 | } | ||
| 4316 | |||
| 4317 | Ehr::ConsumedPrescription::ConsumedPrescription(::Ehr::DocumentType __ice_type, const ::std::string& __ice_originatorName, const ::std::string& __ice_originatorProfession, const ::std::string& __ice_originatorAddress, const ::Ehr::Date& __ice_creationDate, const ::std::string& __ice_consumerName, const ::Ehr::Date& __ice_consumerDateOfBirth, const ::std::string& __ice_drugDescription, const ::std::string& __ice_form, ::Ice::Int __ice_dosage, const ::std::string& __ice_measuringUnit, const ::Ehr::Date& __ice_validFrom, const ::Ehr::Date& __ice_expires, const ::std::string& __ice_dispenserName, const ::std::string& __ice_dispenserProfession, const ::std::string& __ice_dispenserAddress, const ::Ehr::Date& __ice_dispensingDate) : | ||
| 4318 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4319 | Document(__ice_type) | ||
| 4320 | #else | ||
| 4321 | ::Ehr::Document(__ice_type) | ||
| 4322 | #endif | ||
| 4323 | , | ||
| 4324 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4325 | Prescription(__ice_type, __ice_originatorName, __ice_originatorProfession, __ice_originatorAddress, __ice_creationDate, __ice_consumerName, __ice_consumerDateOfBirth, __ice_drugDescription, __ice_form, __ice_dosage, __ice_measuringUnit, __ice_validFrom, __ice_expires) | ||
| 4326 | #else | ||
| 4327 | ::Ehr::Prescription(__ice_type, __ice_originatorName, __ice_originatorProfession, __ice_originatorAddress, __ice_creationDate, __ice_consumerName, __ice_consumerDateOfBirth, __ice_drugDescription, __ice_form, __ice_dosage, __ice_measuringUnit, __ice_validFrom, __ice_expires) | ||
| 4328 | #endif | ||
| 4329 | , | ||
| 4330 | dispenserName(__ice_dispenserName), | ||
| 4331 | dispenserProfession(__ice_dispenserProfession), | ||
| 4332 | dispenserAddress(__ice_dispenserAddress), | ||
| 4333 | dispensingDate(__ice_dispensingDate) | ||
| 4334 | { | ||
| 4335 | } | ||
| 4336 | |||
| 4337 | ::Ice::ObjectPtr | ||
| 4338 | Ehr::ConsumedPrescription::ice_clone() const | ||
| 4339 | { | ||
| 4340 | ::Ehr::ConsumedPrescriptionPtr __p = new ::Ehr::ConsumedPrescription(*this); | ||
| 4341 | return __p; | ||
| 4342 | } | ||
| 4343 | |||
| 4344 | static const ::std::string __Ehr__ConsumedPrescription_ids[4] = | ||
| 4345 | { | ||
| 4346 | "::Ehr::ConsumedPrescription", | ||
| 4347 | "::Ehr::Document", | ||
| 4348 | "::Ehr::Prescription", | ||
| 4349 | "::Ice::Object" | ||
| 4350 | }; | ||
| 4351 | |||
| 4352 | bool | ||
| 4353 | Ehr::ConsumedPrescription::ice_isA(const ::std::string& _s, const ::Ice::Current&) const | ||
| 4354 | { | ||
| 4355 | return ::std::binary_search(__Ehr__ConsumedPrescription_ids, __Ehr__ConsumedPrescription_ids + 4, _s); | ||
| 4356 | } | ||
| 4357 | |||
| 4358 | ::std::vector< ::std::string> | ||
| 4359 | Ehr::ConsumedPrescription::ice_ids(const ::Ice::Current&) const | ||
| 4360 | { | ||
| 4361 | return ::std::vector< ::std::string>(&__Ehr__ConsumedPrescription_ids[0], &__Ehr__ConsumedPrescription_ids[4]); | ||
| 4362 | } | ||
| 4363 | |||
| 4364 | const ::std::string& | ||
| 4365 | Ehr::ConsumedPrescription::ice_id(const ::Ice::Current&) const | ||
| 4366 | { | ||
| 4367 | return __Ehr__ConsumedPrescription_ids[0]; | ||
| 4368 | } | ||
| 4369 | |||
| 4370 | const ::std::string& | ||
| 4371 | Ehr::ConsumedPrescription::ice_staticId() | ||
| 4372 | { | ||
| 4373 | return __Ehr__ConsumedPrescription_ids[0]; | ||
| 4374 | } | ||
| 4375 | |||
| 4376 | void | ||
| 4377 | Ehr::ConsumedPrescription::__write(::IceInternal::BasicStream* __os) const | ||
| 4378 | { | ||
| 4379 | __os->writeTypeId(ice_staticId()); | ||
| 4380 | __os->startWriteSlice(); | ||
| 4381 | __os->write(dispenserName); | ||
| 4382 | __os->write(dispenserProfession); | ||
| 4383 | __os->write(dispenserAddress); | ||
| 4384 | dispensingDate.__write(__os); | ||
| 4385 | __os->endWriteSlice(); | ||
| 4386 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4387 | Prescription::__write(__os); | ||
| 4388 | #else | ||
| 4389 | ::Ehr::Prescription::__write(__os); | ||
| 4390 | #endif | ||
| 4391 | } | ||
| 4392 | |||
| 4393 | void | ||
| 4394 | Ehr::ConsumedPrescription::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 4395 | { | ||
| 4396 | if(__rid) | ||
| 4397 | { | ||
| 4398 | ::std::string myId; | ||
| 4399 | __is->readTypeId(myId); | ||
| 4400 | } | ||
| 4401 | __is->startReadSlice(); | ||
| 4402 | __is->read(dispenserName); | ||
| 4403 | __is->read(dispenserProfession); | ||
| 4404 | __is->read(dispenserAddress); | ||
| 4405 | dispensingDate.__read(__is); | ||
| 4406 | __is->endReadSlice(); | ||
| 4407 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4408 | Prescription::__read(__is, true); | ||
| 4409 | #else | ||
| 4410 | ::Ehr::Prescription::__read(__is, true); | ||
| 4411 | #endif | ||
| 4412 | } | ||
| 4413 | |||
| 4414 | void | ||
| 4415 | Ehr::ConsumedPrescription::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 4416 | { | ||
| 4417 | __outS->writeTypeId(ice_staticId()); | ||
| 4418 | __outS->startSlice(); | ||
| 4419 | __outS->writeString(dispenserName); | ||
| 4420 | __outS->writeString(dispenserProfession); | ||
| 4421 | __outS->writeString(dispenserAddress); | ||
| 4422 | ::Ehr::ice_writeDate(__outS, dispensingDate); | ||
| 4423 | __outS->endSlice(); | ||
| 4424 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4425 | Prescription::__write(__outS); | ||
| 4426 | #else | ||
| 4427 | ::Ehr::Prescription::__write(__outS); | ||
| 4428 | #endif | ||
| 4429 | } | ||
| 4430 | |||
| 4431 | void | ||
| 4432 | Ehr::ConsumedPrescription::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 4433 | { | ||
| 4434 | if(__rid) | ||
| 4435 | { | ||
| 4436 | __inS->readTypeId(); | ||
| 4437 | } | ||
| 4438 | __inS->startSlice(); | ||
| 4439 | dispenserName = __inS->readString(); | ||
| 4440 | dispenserProfession = __inS->readString(); | ||
| 4441 | dispenserAddress = __inS->readString(); | ||
| 4442 | ::Ehr::ice_readDate(__inS, dispensingDate); | ||
| 4443 | __inS->endSlice(); | ||
| 4444 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4445 | Prescription::__read(__inS, true); | ||
| 4446 | #else | ||
| 4447 | ::Ehr::Prescription::__read(__inS, true); | ||
| 4448 | #endif | ||
| 4449 | } | ||
| 4450 | |||
| 4451 | class __F__Ehr__ConsumedPrescription : public ::Ice::ObjectFactory | ||
| 4452 | { | ||
| 4453 | public: | ||
| 4454 | |||
| 4455 | virtual ::Ice::ObjectPtr | ||
| 4456 | create(const ::std::string& type) | ||
| 4457 | { | ||
| 4458 | assert(type == ::Ehr::ConsumedPrescription::ice_staticId()); | ||
| 4459 | return new ::Ehr::ConsumedPrescription; | ||
| 4460 | } | ||
| 4461 | |||
| 4462 | virtual void | ||
| 4463 | destroy() | ||
| 4464 | { | ||
| 4465 | } | ||
| 4466 | }; | ||
| 4467 | |||
| 4468 | static ::Ice::ObjectFactoryPtr __F__Ehr__ConsumedPrescription_Ptr = new __F__Ehr__ConsumedPrescription; | ||
| 4469 | |||
| 4470 | const ::Ice::ObjectFactoryPtr& | ||
| 4471 | Ehr::ConsumedPrescription::ice_factory() | ||
| 4472 | { | ||
| 4473 | return __F__Ehr__ConsumedPrescription_Ptr; | ||
| 4474 | } | ||
| 4475 | |||
| 4476 | class __F__Ehr__ConsumedPrescription__Init | ||
| 4477 | { | ||
| 4478 | public: | ||
| 4479 | |||
| 4480 | __F__Ehr__ConsumedPrescription__Init() | ||
| 4481 | { | ||
| 4482 | ::IceInternal::factoryTable->addObjectFactory(::Ehr::ConsumedPrescription::ice_staticId(), ::Ehr::ConsumedPrescription::ice_factory()); | ||
| 4483 | } | ||
| 4484 | |||
| 4485 | ~__F__Ehr__ConsumedPrescription__Init() | ||
| 4486 | { | ||
| 4487 | ::IceInternal::factoryTable->removeObjectFactory(::Ehr::ConsumedPrescription::ice_staticId()); | ||
| 4488 | } | ||
| 4489 | }; | ||
| 4490 | |||
| 4491 | static __F__Ehr__ConsumedPrescription__Init __F__Ehr__ConsumedPrescription__i; | ||
| 4492 | |||
| 4493 | #ifdef __APPLE__ | ||
| 4494 | extern "C" { void __F__Ehr__ConsumedPrescription__initializer() {} } | ||
| 4495 | #endif | ||
| 4496 | |||
| 4497 | void | ||
| 4498 | Ehr::__patch__ConsumedPrescriptionPtr(void* __addr, ::Ice::ObjectPtr& v) | ||
| 4499 | { | ||
| 4500 | ::Ehr::ConsumedPrescriptionPtr* p = static_cast< ::Ehr::ConsumedPrescriptionPtr*>(__addr); | ||
| 4501 | assert(p); | ||
| 4502 | *p = ::Ehr::ConsumedPrescriptionPtr::dynamicCast(v); | ||
| 4503 | if(v && !*p) | ||
| 4504 | { | ||
| 4505 | IceInternal::Ex::throwUOE(::Ehr::ConsumedPrescription::ice_staticId(), v->ice_id()); | ||
| 4506 | } | ||
| 4507 | } | ||
| 4508 | |||
| 4509 | bool | ||
| 4510 | Ehr::operator==(const ::Ehr::ConsumedPrescription& l, const ::Ehr::ConsumedPrescription& r) | ||
| 4511 | { | ||
| 4512 | return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); | ||
| 4513 | } | ||
| 4514 | |||
| 4515 | bool | ||
| 4516 | Ehr::operator<(const ::Ehr::ConsumedPrescription& l, const ::Ehr::ConsumedPrescription& r) | ||
| 4517 | { | ||
| 4518 | return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); | ||
| 4519 | } | ||
| 4520 | |||
| 4521 | Ehr::Request::Request(const ::Ehr::AccountIdentifier& __ice_requestor, const ::Ehr::Timestamp& __ice_when) : | ||
| 4522 | requestor(__ice_requestor), | ||
| 4523 | when(__ice_when) | ||
| 4524 | { | ||
| 4525 | } | ||
| 4526 | |||
| 4527 | ::Ice::ObjectPtr | ||
| 4528 | Ehr::Request::ice_clone() const | ||
| 4529 | { | ||
| 4530 | ::Ehr::RequestPtr __p = new ::Ehr::Request(*this); | ||
| 4531 | return __p; | ||
| 4532 | } | ||
| 4533 | |||
| 4534 | static const ::std::string __Ehr__Request_ids[2] = | ||
| 4535 | { | ||
| 4536 | "::Ehr::Request", | ||
| 4537 | "::Ice::Object" | ||
| 4538 | }; | ||
| 4539 | |||
| 4540 | bool | ||
| 4541 | Ehr::Request::ice_isA(const ::std::string& _s, const ::Ice::Current&) const | ||
| 4542 | { | ||
| 4543 | return ::std::binary_search(__Ehr__Request_ids, __Ehr__Request_ids + 2, _s); | ||
| 4544 | } | ||
| 4545 | |||
| 4546 | ::std::vector< ::std::string> | ||
| 4547 | Ehr::Request::ice_ids(const ::Ice::Current&) const | ||
| 4548 | { | ||
| 4549 | return ::std::vector< ::std::string>(&__Ehr__Request_ids[0], &__Ehr__Request_ids[2]); | ||
| 4550 | } | ||
| 4551 | |||
| 4552 | const ::std::string& | ||
| 4553 | Ehr::Request::ice_id(const ::Ice::Current&) const | ||
| 4554 | { | ||
| 4555 | return __Ehr__Request_ids[0]; | ||
| 4556 | } | ||
| 4557 | |||
| 4558 | const ::std::string& | ||
| 4559 | Ehr::Request::ice_staticId() | ||
| 4560 | { | ||
| 4561 | return __Ehr__Request_ids[0]; | ||
| 4562 | } | ||
| 4563 | |||
| 4564 | void | ||
| 4565 | Ehr::Request::__write(::IceInternal::BasicStream* __os) const | ||
| 4566 | { | ||
| 4567 | __os->writeTypeId(ice_staticId()); | ||
| 4568 | __os->startWriteSlice(); | ||
| 4569 | requestor.__write(__os); | ||
| 4570 | when.__write(__os); | ||
| 4571 | __os->endWriteSlice(); | ||
| 4572 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4573 | Object::__write(__os); | ||
| 4574 | #else | ||
| 4575 | ::Ice::Object::__write(__os); | ||
| 4576 | #endif | ||
| 4577 | } | ||
| 4578 | |||
| 4579 | void | ||
| 4580 | Ehr::Request::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 4581 | { | ||
| 4582 | if(__rid) | ||
| 4583 | { | ||
| 4584 | ::std::string myId; | ||
| 4585 | __is->readTypeId(myId); | ||
| 4586 | } | ||
| 4587 | __is->startReadSlice(); | ||
| 4588 | requestor.__read(__is); | ||
| 4589 | when.__read(__is); | ||
| 4590 | __is->endReadSlice(); | ||
| 4591 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4592 | Object::__read(__is, true); | ||
| 4593 | #else | ||
| 4594 | ::Ice::Object::__read(__is, true); | ||
| 4595 | #endif | ||
| 4596 | } | ||
| 4597 | |||
| 4598 | void | ||
| 4599 | Ehr::Request::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 4600 | { | ||
| 4601 | __outS->writeTypeId(ice_staticId()); | ||
| 4602 | __outS->startSlice(); | ||
| 4603 | ::Ehr::ice_writeAccountIdentifier(__outS, requestor); | ||
| 4604 | ::Ehr::ice_writeTimestamp(__outS, when); | ||
| 4605 | __outS->endSlice(); | ||
| 4606 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4607 | Object::__write(__outS); | ||
| 4608 | #else | ||
| 4609 | ::Ice::Object::__write(__outS); | ||
| 4610 | #endif | ||
| 4611 | } | ||
| 4612 | |||
| 4613 | void | ||
| 4614 | Ehr::Request::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 4615 | { | ||
| 4616 | if(__rid) | ||
| 4617 | { | ||
| 4618 | __inS->readTypeId(); | ||
| 4619 | } | ||
| 4620 | __inS->startSlice(); | ||
| 4621 | ::Ehr::ice_readAccountIdentifier(__inS, requestor); | ||
| 4622 | ::Ehr::ice_readTimestamp(__inS, when); | ||
| 4623 | __inS->endSlice(); | ||
| 4624 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4625 | Object::__read(__inS, true); | ||
| 4626 | #else | ||
| 4627 | ::Ice::Object::__read(__inS, true); | ||
| 4628 | #endif | ||
| 4629 | } | ||
| 4630 | |||
| 4631 | class __F__Ehr__Request : public ::Ice::ObjectFactory | ||
| 4632 | { | ||
| 4633 | public: | ||
| 4634 | |||
| 4635 | virtual ::Ice::ObjectPtr | ||
| 4636 | create(const ::std::string& type) | ||
| 4637 | { | ||
| 4638 | assert(type == ::Ehr::Request::ice_staticId()); | ||
| 4639 | return new ::Ehr::Request; | ||
| 4640 | } | ||
| 4641 | |||
| 4642 | virtual void | ||
| 4643 | destroy() | ||
| 4644 | { | ||
| 4645 | } | ||
| 4646 | }; | ||
| 4647 | |||
| 4648 | static ::Ice::ObjectFactoryPtr __F__Ehr__Request_Ptr = new __F__Ehr__Request; | ||
| 4649 | |||
| 4650 | const ::Ice::ObjectFactoryPtr& | ||
| 4651 | Ehr::Request::ice_factory() | ||
| 4652 | { | ||
| 4653 | return __F__Ehr__Request_Ptr; | ||
| 4654 | } | ||
| 4655 | |||
| 4656 | class __F__Ehr__Request__Init | ||
| 4657 | { | ||
| 4658 | public: | ||
| 4659 | |||
| 4660 | __F__Ehr__Request__Init() | ||
| 4661 | { | ||
| 4662 | ::IceInternal::factoryTable->addObjectFactory(::Ehr::Request::ice_staticId(), ::Ehr::Request::ice_factory()); | ||
| 4663 | } | ||
| 4664 | |||
| 4665 | ~__F__Ehr__Request__Init() | ||
| 4666 | { | ||
| 4667 | ::IceInternal::factoryTable->removeObjectFactory(::Ehr::Request::ice_staticId()); | ||
| 4668 | } | ||
| 4669 | }; | ||
| 4670 | |||
| 4671 | static __F__Ehr__Request__Init __F__Ehr__Request__i; | ||
| 4672 | |||
| 4673 | #ifdef __APPLE__ | ||
| 4674 | extern "C" { void __F__Ehr__Request__initializer() {} } | ||
| 4675 | #endif | ||
| 4676 | |||
| 4677 | void | ||
| 4678 | Ehr::__patch__RequestPtr(void* __addr, ::Ice::ObjectPtr& v) | ||
| 4679 | { | ||
| 4680 | ::Ehr::RequestPtr* p = static_cast< ::Ehr::RequestPtr*>(__addr); | ||
| 4681 | assert(p); | ||
| 4682 | *p = ::Ehr::RequestPtr::dynamicCast(v); | ||
| 4683 | if(v && !*p) | ||
| 4684 | { | ||
| 4685 | IceInternal::Ex::throwUOE(::Ehr::Request::ice_staticId(), v->ice_id()); | ||
| 4686 | } | ||
| 4687 | } | ||
| 4688 | |||
| 4689 | bool | ||
| 4690 | Ehr::operator==(const ::Ehr::Request& l, const ::Ehr::Request& r) | ||
| 4691 | { | ||
| 4692 | return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); | ||
| 4693 | } | ||
| 4694 | |||
| 4695 | bool | ||
| 4696 | Ehr::operator<(const ::Ehr::Request& l, const ::Ehr::Request& r) | ||
| 4697 | { | ||
| 4698 | return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); | ||
| 4699 | } | ||
| 4700 | |||
| 4701 | Ehr::ThirdPartyRequest::ThirdPartyRequest(const ::Ehr::AccountIdentifier& __ice_requestor, const ::Ehr::Timestamp& __ice_when, const ::Ehr::AccountIdentifier& __ice_owner) : | ||
| 4702 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4703 | Request(__ice_requestor, __ice_when) | ||
| 4704 | #else | ||
| 4705 | ::Ehr::Request(__ice_requestor, __ice_when) | ||
| 4706 | #endif | ||
| 4707 | , | ||
| 4708 | owner(__ice_owner) | ||
| 4709 | { | ||
| 4710 | } | ||
| 4711 | |||
| 4712 | ::Ice::ObjectPtr | ||
| 4713 | Ehr::ThirdPartyRequest::ice_clone() const | ||
| 4714 | { | ||
| 4715 | ::Ehr::ThirdPartyRequestPtr __p = new ::Ehr::ThirdPartyRequest(*this); | ||
| 4716 | return __p; | ||
| 4717 | } | ||
| 4718 | |||
| 4719 | static const ::std::string __Ehr__ThirdPartyRequest_ids[3] = | ||
| 4720 | { | ||
| 4721 | "::Ehr::Request", | ||
| 4722 | "::Ehr::ThirdPartyRequest", | ||
| 4723 | "::Ice::Object" | ||
| 4724 | }; | ||
| 4725 | |||
| 4726 | bool | ||
| 4727 | Ehr::ThirdPartyRequest::ice_isA(const ::std::string& _s, const ::Ice::Current&) const | ||
| 4728 | { | ||
| 4729 | return ::std::binary_search(__Ehr__ThirdPartyRequest_ids, __Ehr__ThirdPartyRequest_ids + 3, _s); | ||
| 4730 | } | ||
| 4731 | |||
| 4732 | ::std::vector< ::std::string> | ||
| 4733 | Ehr::ThirdPartyRequest::ice_ids(const ::Ice::Current&) const | ||
| 4734 | { | ||
| 4735 | return ::std::vector< ::std::string>(&__Ehr__ThirdPartyRequest_ids[0], &__Ehr__ThirdPartyRequest_ids[3]); | ||
| 4736 | } | ||
| 4737 | |||
| 4738 | const ::std::string& | ||
| 4739 | Ehr::ThirdPartyRequest::ice_id(const ::Ice::Current&) const | ||
| 4740 | { | ||
| 4741 | return __Ehr__ThirdPartyRequest_ids[1]; | ||
| 4742 | } | ||
| 4743 | |||
| 4744 | const ::std::string& | ||
| 4745 | Ehr::ThirdPartyRequest::ice_staticId() | ||
| 4746 | { | ||
| 4747 | return __Ehr__ThirdPartyRequest_ids[1]; | ||
| 4748 | } | ||
| 4749 | |||
| 4750 | void | ||
| 4751 | Ehr::ThirdPartyRequest::__write(::IceInternal::BasicStream* __os) const | ||
| 4752 | { | ||
| 4753 | __os->writeTypeId(ice_staticId()); | ||
| 4754 | __os->startWriteSlice(); | ||
| 4755 | owner.__write(__os); | ||
| 4756 | __os->endWriteSlice(); | ||
| 4757 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4758 | Request::__write(__os); | ||
| 4759 | #else | ||
| 4760 | ::Ehr::Request::__write(__os); | ||
| 4761 | #endif | ||
| 4762 | } | ||
| 4763 | |||
| 4764 | void | ||
| 4765 | Ehr::ThirdPartyRequest::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 4766 | { | ||
| 4767 | if(__rid) | ||
| 4768 | { | ||
| 4769 | ::std::string myId; | ||
| 4770 | __is->readTypeId(myId); | ||
| 4771 | } | ||
| 4772 | __is->startReadSlice(); | ||
| 4773 | owner.__read(__is); | ||
| 4774 | __is->endReadSlice(); | ||
| 4775 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4776 | Request::__read(__is, true); | ||
| 4777 | #else | ||
| 4778 | ::Ehr::Request::__read(__is, true); | ||
| 4779 | #endif | ||
| 4780 | } | ||
| 4781 | |||
| 4782 | void | ||
| 4783 | Ehr::ThirdPartyRequest::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 4784 | { | ||
| 4785 | __outS->writeTypeId(ice_staticId()); | ||
| 4786 | __outS->startSlice(); | ||
| 4787 | ::Ehr::ice_writeAccountIdentifier(__outS, owner); | ||
| 4788 | __outS->endSlice(); | ||
| 4789 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4790 | Request::__write(__outS); | ||
| 4791 | #else | ||
| 4792 | ::Ehr::Request::__write(__outS); | ||
| 4793 | #endif | ||
| 4794 | } | ||
| 4795 | |||
| 4796 | void | ||
| 4797 | Ehr::ThirdPartyRequest::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 4798 | { | ||
| 4799 | if(__rid) | ||
| 4800 | { | ||
| 4801 | __inS->readTypeId(); | ||
| 4802 | } | ||
| 4803 | __inS->startSlice(); | ||
| 4804 | ::Ehr::ice_readAccountIdentifier(__inS, owner); | ||
| 4805 | __inS->endSlice(); | ||
| 4806 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4807 | Request::__read(__inS, true); | ||
| 4808 | #else | ||
| 4809 | ::Ehr::Request::__read(__inS, true); | ||
| 4810 | #endif | ||
| 4811 | } | ||
| 4812 | |||
| 4813 | class __F__Ehr__ThirdPartyRequest : public ::Ice::ObjectFactory | ||
| 4814 | { | ||
| 4815 | public: | ||
| 4816 | |||
| 4817 | virtual ::Ice::ObjectPtr | ||
| 4818 | create(const ::std::string& type) | ||
| 4819 | { | ||
| 4820 | assert(type == ::Ehr::ThirdPartyRequest::ice_staticId()); | ||
| 4821 | return new ::Ehr::ThirdPartyRequest; | ||
| 4822 | } | ||
| 4823 | |||
| 4824 | virtual void | ||
| 4825 | destroy() | ||
| 4826 | { | ||
| 4827 | } | ||
| 4828 | }; | ||
| 4829 | |||
| 4830 | static ::Ice::ObjectFactoryPtr __F__Ehr__ThirdPartyRequest_Ptr = new __F__Ehr__ThirdPartyRequest; | ||
| 4831 | |||
| 4832 | const ::Ice::ObjectFactoryPtr& | ||
| 4833 | Ehr::ThirdPartyRequest::ice_factory() | ||
| 4834 | { | ||
| 4835 | return __F__Ehr__ThirdPartyRequest_Ptr; | ||
| 4836 | } | ||
| 4837 | |||
| 4838 | class __F__Ehr__ThirdPartyRequest__Init | ||
| 4839 | { | ||
| 4840 | public: | ||
| 4841 | |||
| 4842 | __F__Ehr__ThirdPartyRequest__Init() | ||
| 4843 | { | ||
| 4844 | ::IceInternal::factoryTable->addObjectFactory(::Ehr::ThirdPartyRequest::ice_staticId(), ::Ehr::ThirdPartyRequest::ice_factory()); | ||
| 4845 | } | ||
| 4846 | |||
| 4847 | ~__F__Ehr__ThirdPartyRequest__Init() | ||
| 4848 | { | ||
| 4849 | ::IceInternal::factoryTable->removeObjectFactory(::Ehr::ThirdPartyRequest::ice_staticId()); | ||
| 4850 | } | ||
| 4851 | }; | ||
| 4852 | |||
| 4853 | static __F__Ehr__ThirdPartyRequest__Init __F__Ehr__ThirdPartyRequest__i; | ||
| 4854 | |||
| 4855 | #ifdef __APPLE__ | ||
| 4856 | extern "C" { void __F__Ehr__ThirdPartyRequest__initializer() {} } | ||
| 4857 | #endif | ||
| 4858 | |||
| 4859 | void | ||
| 4860 | Ehr::__patch__ThirdPartyRequestPtr(void* __addr, ::Ice::ObjectPtr& v) | ||
| 4861 | { | ||
| 4862 | ::Ehr::ThirdPartyRequestPtr* p = static_cast< ::Ehr::ThirdPartyRequestPtr*>(__addr); | ||
| 4863 | assert(p); | ||
| 4864 | *p = ::Ehr::ThirdPartyRequestPtr::dynamicCast(v); | ||
| 4865 | if(v && !*p) | ||
| 4866 | { | ||
| 4867 | IceInternal::Ex::throwUOE(::Ehr::ThirdPartyRequest::ice_staticId(), v->ice_id()); | ||
| 4868 | } | ||
| 4869 | } | ||
| 4870 | |||
| 4871 | bool | ||
| 4872 | Ehr::operator==(const ::Ehr::ThirdPartyRequest& l, const ::Ehr::ThirdPartyRequest& r) | ||
| 4873 | { | ||
| 4874 | return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); | ||
| 4875 | } | ||
| 4876 | |||
| 4877 | bool | ||
| 4878 | Ehr::operator<(const ::Ehr::ThirdPartyRequest& l, const ::Ehr::ThirdPartyRequest& r) | ||
| 4879 | { | ||
| 4880 | return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); | ||
| 4881 | } | ||
| 4882 | |||
| 4883 | Ehr::CreatePrescriptionRequest::CreatePrescriptionRequest(const ::Ehr::AccountIdentifier& __ice_requestor, const ::Ehr::Timestamp& __ice_when, const ::Ehr::AccountIdentifier& __ice_owner, const ::Ehr::EncryptedDocument& __ice_prescription) : | ||
| 4884 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4885 | Request(__ice_requestor, __ice_when) | ||
| 4886 | #else | ||
| 4887 | ::Ehr::Request(__ice_requestor, __ice_when) | ||
| 4888 | #endif | ||
| 4889 | , | ||
| 4890 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4891 | ThirdPartyRequest(__ice_requestor, __ice_when, __ice_owner) | ||
| 4892 | #else | ||
| 4893 | ::Ehr::ThirdPartyRequest(__ice_requestor, __ice_when, __ice_owner) | ||
| 4894 | #endif | ||
| 4895 | , | ||
| 4896 | prescription(__ice_prescription) | ||
| 4897 | { | ||
| 4898 | } | ||
| 4899 | |||
| 4900 | ::Ice::ObjectPtr | ||
| 4901 | Ehr::CreatePrescriptionRequest::ice_clone() const | ||
| 4902 | { | ||
| 4903 | ::Ehr::CreatePrescriptionRequestPtr __p = new ::Ehr::CreatePrescriptionRequest(*this); | ||
| 4904 | return __p; | ||
| 4905 | } | ||
| 4906 | |||
| 4907 | static const ::std::string __Ehr__CreatePrescriptionRequest_ids[4] = | ||
| 4908 | { | ||
| 4909 | "::Ehr::CreatePrescriptionRequest", | ||
| 4910 | "::Ehr::Request", | ||
| 4911 | "::Ehr::ThirdPartyRequest", | ||
| 4912 | "::Ice::Object" | ||
| 4913 | }; | ||
| 4914 | |||
| 4915 | bool | ||
| 4916 | Ehr::CreatePrescriptionRequest::ice_isA(const ::std::string& _s, const ::Ice::Current&) const | ||
| 4917 | { | ||
| 4918 | return ::std::binary_search(__Ehr__CreatePrescriptionRequest_ids, __Ehr__CreatePrescriptionRequest_ids + 4, _s); | ||
| 4919 | } | ||
| 4920 | |||
| 4921 | ::std::vector< ::std::string> | ||
| 4922 | Ehr::CreatePrescriptionRequest::ice_ids(const ::Ice::Current&) const | ||
| 4923 | { | ||
| 4924 | return ::std::vector< ::std::string>(&__Ehr__CreatePrescriptionRequest_ids[0], &__Ehr__CreatePrescriptionRequest_ids[4]); | ||
| 4925 | } | ||
| 4926 | |||
| 4927 | const ::std::string& | ||
| 4928 | Ehr::CreatePrescriptionRequest::ice_id(const ::Ice::Current&) const | ||
| 4929 | { | ||
| 4930 | return __Ehr__CreatePrescriptionRequest_ids[0]; | ||
| 4931 | } | ||
| 4932 | |||
| 4933 | const ::std::string& | ||
| 4934 | Ehr::CreatePrescriptionRequest::ice_staticId() | ||
| 4935 | { | ||
| 4936 | return __Ehr__CreatePrescriptionRequest_ids[0]; | ||
| 4937 | } | ||
| 4938 | |||
| 4939 | void | ||
| 4940 | Ehr::CreatePrescriptionRequest::__write(::IceInternal::BasicStream* __os) const | ||
| 4941 | { | ||
| 4942 | __os->writeTypeId(ice_staticId()); | ||
| 4943 | __os->startWriteSlice(); | ||
| 4944 | prescription.__write(__os); | ||
| 4945 | __os->endWriteSlice(); | ||
| 4946 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4947 | ThirdPartyRequest::__write(__os); | ||
| 4948 | #else | ||
| 4949 | ::Ehr::ThirdPartyRequest::__write(__os); | ||
| 4950 | #endif | ||
| 4951 | } | ||
| 4952 | |||
| 4953 | void | ||
| 4954 | Ehr::CreatePrescriptionRequest::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 4955 | { | ||
| 4956 | if(__rid) | ||
| 4957 | { | ||
| 4958 | ::std::string myId; | ||
| 4959 | __is->readTypeId(myId); | ||
| 4960 | } | ||
| 4961 | __is->startReadSlice(); | ||
| 4962 | prescription.__read(__is); | ||
| 4963 | __is->endReadSlice(); | ||
| 4964 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4965 | ThirdPartyRequest::__read(__is, true); | ||
| 4966 | #else | ||
| 4967 | ::Ehr::ThirdPartyRequest::__read(__is, true); | ||
| 4968 | #endif | ||
| 4969 | } | ||
| 4970 | |||
| 4971 | void | ||
| 4972 | Ehr::CreatePrescriptionRequest::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 4973 | { | ||
| 4974 | __outS->writeTypeId(ice_staticId()); | ||
| 4975 | __outS->startSlice(); | ||
| 4976 | ::Ehr::ice_writeEncryptedDocument(__outS, prescription); | ||
| 4977 | __outS->endSlice(); | ||
| 4978 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4979 | ThirdPartyRequest::__write(__outS); | ||
| 4980 | #else | ||
| 4981 | ::Ehr::ThirdPartyRequest::__write(__outS); | ||
| 4982 | #endif | ||
| 4983 | } | ||
| 4984 | |||
| 4985 | void | ||
| 4986 | Ehr::CreatePrescriptionRequest::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 4987 | { | ||
| 4988 | if(__rid) | ||
| 4989 | { | ||
| 4990 | __inS->readTypeId(); | ||
| 4991 | } | ||
| 4992 | __inS->startSlice(); | ||
| 4993 | ::Ehr::ice_readEncryptedDocument(__inS, prescription); | ||
| 4994 | __inS->endSlice(); | ||
| 4995 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 4996 | ThirdPartyRequest::__read(__inS, true); | ||
| 4997 | #else | ||
| 4998 | ::Ehr::ThirdPartyRequest::__read(__inS, true); | ||
| 4999 | #endif | ||
| 5000 | } | ||
| 5001 | |||
| 5002 | class __F__Ehr__CreatePrescriptionRequest : public ::Ice::ObjectFactory | ||
| 5003 | { | ||
| 5004 | public: | ||
| 5005 | |||
| 5006 | virtual ::Ice::ObjectPtr | ||
| 5007 | create(const ::std::string& type) | ||
| 5008 | { | ||
| 5009 | assert(type == ::Ehr::CreatePrescriptionRequest::ice_staticId()); | ||
| 5010 | return new ::Ehr::CreatePrescriptionRequest; | ||
| 5011 | } | ||
| 5012 | |||
| 5013 | virtual void | ||
| 5014 | destroy() | ||
| 5015 | { | ||
| 5016 | } | ||
| 5017 | }; | ||
| 5018 | |||
| 5019 | static ::Ice::ObjectFactoryPtr __F__Ehr__CreatePrescriptionRequest_Ptr = new __F__Ehr__CreatePrescriptionRequest; | ||
| 5020 | |||
| 5021 | const ::Ice::ObjectFactoryPtr& | ||
| 5022 | Ehr::CreatePrescriptionRequest::ice_factory() | ||
| 5023 | { | ||
| 5024 | return __F__Ehr__CreatePrescriptionRequest_Ptr; | ||
| 5025 | } | ||
| 5026 | |||
| 5027 | class __F__Ehr__CreatePrescriptionRequest__Init | ||
| 5028 | { | ||
| 5029 | public: | ||
| 5030 | |||
| 5031 | __F__Ehr__CreatePrescriptionRequest__Init() | ||
| 5032 | { | ||
| 5033 | ::IceInternal::factoryTable->addObjectFactory(::Ehr::CreatePrescriptionRequest::ice_staticId(), ::Ehr::CreatePrescriptionRequest::ice_factory()); | ||
| 5034 | } | ||
| 5035 | |||
| 5036 | ~__F__Ehr__CreatePrescriptionRequest__Init() | ||
| 5037 | { | ||
| 5038 | ::IceInternal::factoryTable->removeObjectFactory(::Ehr::CreatePrescriptionRequest::ice_staticId()); | ||
| 5039 | } | ||
| 5040 | }; | ||
| 5041 | |||
| 5042 | static __F__Ehr__CreatePrescriptionRequest__Init __F__Ehr__CreatePrescriptionRequest__i; | ||
| 5043 | |||
| 5044 | #ifdef __APPLE__ | ||
| 5045 | extern "C" { void __F__Ehr__CreatePrescriptionRequest__initializer() {} } | ||
| 5046 | #endif | ||
| 5047 | |||
| 5048 | void | ||
| 5049 | Ehr::__patch__CreatePrescriptionRequestPtr(void* __addr, ::Ice::ObjectPtr& v) | ||
| 5050 | { | ||
| 5051 | ::Ehr::CreatePrescriptionRequestPtr* p = static_cast< ::Ehr::CreatePrescriptionRequestPtr*>(__addr); | ||
| 5052 | assert(p); | ||
| 5053 | *p = ::Ehr::CreatePrescriptionRequestPtr::dynamicCast(v); | ||
| 5054 | if(v && !*p) | ||
| 5055 | { | ||
| 5056 | IceInternal::Ex::throwUOE(::Ehr::CreatePrescriptionRequest::ice_staticId(), v->ice_id()); | ||
| 5057 | } | ||
| 5058 | } | ||
| 5059 | |||
| 5060 | bool | ||
| 5061 | Ehr::operator==(const ::Ehr::CreatePrescriptionRequest& l, const ::Ehr::CreatePrescriptionRequest& r) | ||
| 5062 | { | ||
| 5063 | return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); | ||
| 5064 | } | ||
| 5065 | |||
| 5066 | bool | ||
| 5067 | Ehr::operator<(const ::Ehr::CreatePrescriptionRequest& l, const ::Ehr::CreatePrescriptionRequest& r) | ||
| 5068 | { | ||
| 5069 | return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); | ||
| 5070 | } | ||
| 5071 | |||
| 5072 | Ehr::ConsumePrescriptionRequest::ConsumePrescriptionRequest(const ::Ehr::AccountIdentifier& __ice_requestor, const ::Ehr::Timestamp& __ice_when, const ::Ehr::AccountIdentifier& __ice_owner, ::Ice::Long __ice_prescriptionId, const ::Ehr::EncryptedDocument& __ice_consumedPrescription) : | ||
| 5073 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5074 | Request(__ice_requestor, __ice_when) | ||
| 5075 | #else | ||
| 5076 | ::Ehr::Request(__ice_requestor, __ice_when) | ||
| 5077 | #endif | ||
| 5078 | , | ||
| 5079 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5080 | ThirdPartyRequest(__ice_requestor, __ice_when, __ice_owner) | ||
| 5081 | #else | ||
| 5082 | ::Ehr::ThirdPartyRequest(__ice_requestor, __ice_when, __ice_owner) | ||
| 5083 | #endif | ||
| 5084 | , | ||
| 5085 | prescriptionId(__ice_prescriptionId), | ||
| 5086 | consumedPrescription(__ice_consumedPrescription) | ||
| 5087 | { | ||
| 5088 | } | ||
| 5089 | |||
| 5090 | ::Ice::ObjectPtr | ||
| 5091 | Ehr::ConsumePrescriptionRequest::ice_clone() const | ||
| 5092 | { | ||
| 5093 | ::Ehr::ConsumePrescriptionRequestPtr __p = new ::Ehr::ConsumePrescriptionRequest(*this); | ||
| 5094 | return __p; | ||
| 5095 | } | ||
| 5096 | |||
| 5097 | static const ::std::string __Ehr__ConsumePrescriptionRequest_ids[4] = | ||
| 5098 | { | ||
| 5099 | "::Ehr::ConsumePrescriptionRequest", | ||
| 5100 | "::Ehr::Request", | ||
| 5101 | "::Ehr::ThirdPartyRequest", | ||
| 5102 | "::Ice::Object" | ||
| 5103 | }; | ||
| 5104 | |||
| 5105 | bool | ||
| 5106 | Ehr::ConsumePrescriptionRequest::ice_isA(const ::std::string& _s, const ::Ice::Current&) const | ||
| 5107 | { | ||
| 5108 | return ::std::binary_search(__Ehr__ConsumePrescriptionRequest_ids, __Ehr__ConsumePrescriptionRequest_ids + 4, _s); | ||
| 5109 | } | ||
| 5110 | |||
| 5111 | ::std::vector< ::std::string> | ||
| 5112 | Ehr::ConsumePrescriptionRequest::ice_ids(const ::Ice::Current&) const | ||
| 5113 | { | ||
| 5114 | return ::std::vector< ::std::string>(&__Ehr__ConsumePrescriptionRequest_ids[0], &__Ehr__ConsumePrescriptionRequest_ids[4]); | ||
| 5115 | } | ||
| 5116 | |||
| 5117 | const ::std::string& | ||
| 5118 | Ehr::ConsumePrescriptionRequest::ice_id(const ::Ice::Current&) const | ||
| 5119 | { | ||
| 5120 | return __Ehr__ConsumePrescriptionRequest_ids[0]; | ||
| 5121 | } | ||
| 5122 | |||
| 5123 | const ::std::string& | ||
| 5124 | Ehr::ConsumePrescriptionRequest::ice_staticId() | ||
| 5125 | { | ||
| 5126 | return __Ehr__ConsumePrescriptionRequest_ids[0]; | ||
| 5127 | } | ||
| 5128 | |||
| 5129 | void | ||
| 5130 | Ehr::ConsumePrescriptionRequest::__write(::IceInternal::BasicStream* __os) const | ||
| 5131 | { | ||
| 5132 | __os->writeTypeId(ice_staticId()); | ||
| 5133 | __os->startWriteSlice(); | ||
| 5134 | __os->write(prescriptionId); | ||
| 5135 | consumedPrescription.__write(__os); | ||
| 5136 | __os->endWriteSlice(); | ||
| 5137 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5138 | ThirdPartyRequest::__write(__os); | ||
| 5139 | #else | ||
| 5140 | ::Ehr::ThirdPartyRequest::__write(__os); | ||
| 5141 | #endif | ||
| 5142 | } | ||
| 5143 | |||
| 5144 | void | ||
| 5145 | Ehr::ConsumePrescriptionRequest::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 5146 | { | ||
| 5147 | if(__rid) | ||
| 5148 | { | ||
| 5149 | ::std::string myId; | ||
| 5150 | __is->readTypeId(myId); | ||
| 5151 | } | ||
| 5152 | __is->startReadSlice(); | ||
| 5153 | __is->read(prescriptionId); | ||
| 5154 | consumedPrescription.__read(__is); | ||
| 5155 | __is->endReadSlice(); | ||
| 5156 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5157 | ThirdPartyRequest::__read(__is, true); | ||
| 5158 | #else | ||
| 5159 | ::Ehr::ThirdPartyRequest::__read(__is, true); | ||
| 5160 | #endif | ||
| 5161 | } | ||
| 5162 | |||
| 5163 | void | ||
| 5164 | Ehr::ConsumePrescriptionRequest::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 5165 | { | ||
| 5166 | __outS->writeTypeId(ice_staticId()); | ||
| 5167 | __outS->startSlice(); | ||
| 5168 | __outS->writeLong(prescriptionId); | ||
| 5169 | ::Ehr::ice_writeEncryptedDocument(__outS, consumedPrescription); | ||
| 5170 | __outS->endSlice(); | ||
| 5171 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5172 | ThirdPartyRequest::__write(__outS); | ||
| 5173 | #else | ||
| 5174 | ::Ehr::ThirdPartyRequest::__write(__outS); | ||
| 5175 | #endif | ||
| 5176 | } | ||
| 5177 | |||
| 5178 | void | ||
| 5179 | Ehr::ConsumePrescriptionRequest::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 5180 | { | ||
| 5181 | if(__rid) | ||
| 5182 | { | ||
| 5183 | __inS->readTypeId(); | ||
| 5184 | } | ||
| 5185 | __inS->startSlice(); | ||
| 5186 | prescriptionId = __inS->readLong(); | ||
| 5187 | ::Ehr::ice_readEncryptedDocument(__inS, consumedPrescription); | ||
| 5188 | __inS->endSlice(); | ||
| 5189 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5190 | ThirdPartyRequest::__read(__inS, true); | ||
| 5191 | #else | ||
| 5192 | ::Ehr::ThirdPartyRequest::__read(__inS, true); | ||
| 5193 | #endif | ||
| 5194 | } | ||
| 5195 | |||
| 5196 | class __F__Ehr__ConsumePrescriptionRequest : public ::Ice::ObjectFactory | ||
| 5197 | { | ||
| 5198 | public: | ||
| 5199 | |||
| 5200 | virtual ::Ice::ObjectPtr | ||
| 5201 | create(const ::std::string& type) | ||
| 5202 | { | ||
| 5203 | assert(type == ::Ehr::ConsumePrescriptionRequest::ice_staticId()); | ||
| 5204 | return new ::Ehr::ConsumePrescriptionRequest; | ||
| 5205 | } | ||
| 5206 | |||
| 5207 | virtual void | ||
| 5208 | destroy() | ||
| 5209 | { | ||
| 5210 | } | ||
| 5211 | }; | ||
| 5212 | |||
| 5213 | static ::Ice::ObjectFactoryPtr __F__Ehr__ConsumePrescriptionRequest_Ptr = new __F__Ehr__ConsumePrescriptionRequest; | ||
| 5214 | |||
| 5215 | const ::Ice::ObjectFactoryPtr& | ||
| 5216 | Ehr::ConsumePrescriptionRequest::ice_factory() | ||
| 5217 | { | ||
| 5218 | return __F__Ehr__ConsumePrescriptionRequest_Ptr; | ||
| 5219 | } | ||
| 5220 | |||
| 5221 | class __F__Ehr__ConsumePrescriptionRequest__Init | ||
| 5222 | { | ||
| 5223 | public: | ||
| 5224 | |||
| 5225 | __F__Ehr__ConsumePrescriptionRequest__Init() | ||
| 5226 | { | ||
| 5227 | ::IceInternal::factoryTable->addObjectFactory(::Ehr::ConsumePrescriptionRequest::ice_staticId(), ::Ehr::ConsumePrescriptionRequest::ice_factory()); | ||
| 5228 | } | ||
| 5229 | |||
| 5230 | ~__F__Ehr__ConsumePrescriptionRequest__Init() | ||
| 5231 | { | ||
| 5232 | ::IceInternal::factoryTable->removeObjectFactory(::Ehr::ConsumePrescriptionRequest::ice_staticId()); | ||
| 5233 | } | ||
| 5234 | }; | ||
| 5235 | |||
| 5236 | static __F__Ehr__ConsumePrescriptionRequest__Init __F__Ehr__ConsumePrescriptionRequest__i; | ||
| 5237 | |||
| 5238 | #ifdef __APPLE__ | ||
| 5239 | extern "C" { void __F__Ehr__ConsumePrescriptionRequest__initializer() {} } | ||
| 5240 | #endif | ||
| 5241 | |||
| 5242 | void | ||
| 5243 | Ehr::__patch__ConsumePrescriptionRequestPtr(void* __addr, ::Ice::ObjectPtr& v) | ||
| 5244 | { | ||
| 5245 | ::Ehr::ConsumePrescriptionRequestPtr* p = static_cast< ::Ehr::ConsumePrescriptionRequestPtr*>(__addr); | ||
| 5246 | assert(p); | ||
| 5247 | *p = ::Ehr::ConsumePrescriptionRequestPtr::dynamicCast(v); | ||
| 5248 | if(v && !*p) | ||
| 5249 | { | ||
| 5250 | IceInternal::Ex::throwUOE(::Ehr::ConsumePrescriptionRequest::ice_staticId(), v->ice_id()); | ||
| 5251 | } | ||
| 5252 | } | ||
| 5253 | |||
| 5254 | bool | ||
| 5255 | Ehr::operator==(const ::Ehr::ConsumePrescriptionRequest& l, const ::Ehr::ConsumePrescriptionRequest& r) | ||
| 5256 | { | ||
| 5257 | return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); | ||
| 5258 | } | ||
| 5259 | |||
| 5260 | bool | ||
| 5261 | Ehr::operator<(const ::Ehr::ConsumePrescriptionRequest& l, const ::Ehr::ConsumePrescriptionRequest& r) | ||
| 5262 | { | ||
| 5263 | return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); | ||
| 5264 | } | ||
| 5265 | |||
| 5266 | Ehr::ListDocumentsRequest::ListDocumentsRequest(const ::Ehr::AccountIdentifier& __ice_requestor, const ::Ehr::Timestamp& __ice_when, const ::Ehr::AccountIdentifier& __ice_owner) : | ||
| 5267 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5268 | Request(__ice_requestor, __ice_when) | ||
| 5269 | #else | ||
| 5270 | ::Ehr::Request(__ice_requestor, __ice_when) | ||
| 5271 | #endif | ||
| 5272 | , | ||
| 5273 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5274 | ThirdPartyRequest(__ice_requestor, __ice_when, __ice_owner) | ||
| 5275 | #else | ||
| 5276 | ::Ehr::ThirdPartyRequest(__ice_requestor, __ice_when, __ice_owner) | ||
| 5277 | #endif | ||
| 5278 | |||
| 5279 | { | ||
| 5280 | } | ||
| 5281 | |||
| 5282 | ::Ice::ObjectPtr | ||
| 5283 | Ehr::ListDocumentsRequest::ice_clone() const | ||
| 5284 | { | ||
| 5285 | ::Ehr::ListDocumentsRequestPtr __p = new ::Ehr::ListDocumentsRequest(*this); | ||
| 5286 | return __p; | ||
| 5287 | } | ||
| 5288 | |||
| 5289 | static const ::std::string __Ehr__ListDocumentsRequest_ids[4] = | ||
| 5290 | { | ||
| 5291 | "::Ehr::ListDocumentsRequest", | ||
| 5292 | "::Ehr::Request", | ||
| 5293 | "::Ehr::ThirdPartyRequest", | ||
| 5294 | "::Ice::Object" | ||
| 5295 | }; | ||
| 5296 | |||
| 5297 | bool | ||
| 5298 | Ehr::ListDocumentsRequest::ice_isA(const ::std::string& _s, const ::Ice::Current&) const | ||
| 5299 | { | ||
| 5300 | return ::std::binary_search(__Ehr__ListDocumentsRequest_ids, __Ehr__ListDocumentsRequest_ids + 4, _s); | ||
| 5301 | } | ||
| 5302 | |||
| 5303 | ::std::vector< ::std::string> | ||
| 5304 | Ehr::ListDocumentsRequest::ice_ids(const ::Ice::Current&) const | ||
| 5305 | { | ||
| 5306 | return ::std::vector< ::std::string>(&__Ehr__ListDocumentsRequest_ids[0], &__Ehr__ListDocumentsRequest_ids[4]); | ||
| 5307 | } | ||
| 5308 | |||
| 5309 | const ::std::string& | ||
| 5310 | Ehr::ListDocumentsRequest::ice_id(const ::Ice::Current&) const | ||
| 5311 | { | ||
| 5312 | return __Ehr__ListDocumentsRequest_ids[0]; | ||
| 5313 | } | ||
| 5314 | |||
| 5315 | const ::std::string& | ||
| 5316 | Ehr::ListDocumentsRequest::ice_staticId() | ||
| 5317 | { | ||
| 5318 | return __Ehr__ListDocumentsRequest_ids[0]; | ||
| 5319 | } | ||
| 5320 | |||
| 5321 | void | ||
| 5322 | Ehr::ListDocumentsRequest::__write(::IceInternal::BasicStream* __os) const | ||
| 5323 | { | ||
| 5324 | __os->writeTypeId(ice_staticId()); | ||
| 5325 | __os->startWriteSlice(); | ||
| 5326 | __os->endWriteSlice(); | ||
| 5327 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5328 | ThirdPartyRequest::__write(__os); | ||
| 5329 | #else | ||
| 5330 | ::Ehr::ThirdPartyRequest::__write(__os); | ||
| 5331 | #endif | ||
| 5332 | } | ||
| 5333 | |||
| 5334 | void | ||
| 5335 | Ehr::ListDocumentsRequest::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 5336 | { | ||
| 5337 | if(__rid) | ||
| 5338 | { | ||
| 5339 | ::std::string myId; | ||
| 5340 | __is->readTypeId(myId); | ||
| 5341 | } | ||
| 5342 | __is->startReadSlice(); | ||
| 5343 | __is->endReadSlice(); | ||
| 5344 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5345 | ThirdPartyRequest::__read(__is, true); | ||
| 5346 | #else | ||
| 5347 | ::Ehr::ThirdPartyRequest::__read(__is, true); | ||
| 5348 | #endif | ||
| 5349 | } | ||
| 5350 | |||
| 5351 | void | ||
| 5352 | Ehr::ListDocumentsRequest::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 5353 | { | ||
| 5354 | __outS->writeTypeId(ice_staticId()); | ||
| 5355 | __outS->startSlice(); | ||
| 5356 | __outS->endSlice(); | ||
| 5357 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5358 | ThirdPartyRequest::__write(__outS); | ||
| 5359 | #else | ||
| 5360 | ::Ehr::ThirdPartyRequest::__write(__outS); | ||
| 5361 | #endif | ||
| 5362 | } | ||
| 5363 | |||
| 5364 | void | ||
| 5365 | Ehr::ListDocumentsRequest::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 5366 | { | ||
| 5367 | if(__rid) | ||
| 5368 | { | ||
| 5369 | __inS->readTypeId(); | ||
| 5370 | } | ||
| 5371 | __inS->startSlice(); | ||
| 5372 | __inS->endSlice(); | ||
| 5373 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5374 | ThirdPartyRequest::__read(__inS, true); | ||
| 5375 | #else | ||
| 5376 | ::Ehr::ThirdPartyRequest::__read(__inS, true); | ||
| 5377 | #endif | ||
| 5378 | } | ||
| 5379 | |||
| 5380 | class __F__Ehr__ListDocumentsRequest : public ::Ice::ObjectFactory | ||
| 5381 | { | ||
| 5382 | public: | ||
| 5383 | |||
| 5384 | virtual ::Ice::ObjectPtr | ||
| 5385 | create(const ::std::string& type) | ||
| 5386 | { | ||
| 5387 | assert(type == ::Ehr::ListDocumentsRequest::ice_staticId()); | ||
| 5388 | return new ::Ehr::ListDocumentsRequest; | ||
| 5389 | } | ||
| 5390 | |||
| 5391 | virtual void | ||
| 5392 | destroy() | ||
| 5393 | { | ||
| 5394 | } | ||
| 5395 | }; | ||
| 5396 | |||
| 5397 | static ::Ice::ObjectFactoryPtr __F__Ehr__ListDocumentsRequest_Ptr = new __F__Ehr__ListDocumentsRequest; | ||
| 5398 | |||
| 5399 | const ::Ice::ObjectFactoryPtr& | ||
| 5400 | Ehr::ListDocumentsRequest::ice_factory() | ||
| 5401 | { | ||
| 5402 | return __F__Ehr__ListDocumentsRequest_Ptr; | ||
| 5403 | } | ||
| 5404 | |||
| 5405 | class __F__Ehr__ListDocumentsRequest__Init | ||
| 5406 | { | ||
| 5407 | public: | ||
| 5408 | |||
| 5409 | __F__Ehr__ListDocumentsRequest__Init() | ||
| 5410 | { | ||
| 5411 | ::IceInternal::factoryTable->addObjectFactory(::Ehr::ListDocumentsRequest::ice_staticId(), ::Ehr::ListDocumentsRequest::ice_factory()); | ||
| 5412 | } | ||
| 5413 | |||
| 5414 | ~__F__Ehr__ListDocumentsRequest__Init() | ||
| 5415 | { | ||
| 5416 | ::IceInternal::factoryTable->removeObjectFactory(::Ehr::ListDocumentsRequest::ice_staticId()); | ||
| 5417 | } | ||
| 5418 | }; | ||
| 5419 | |||
| 5420 | static __F__Ehr__ListDocumentsRequest__Init __F__Ehr__ListDocumentsRequest__i; | ||
| 5421 | |||
| 5422 | #ifdef __APPLE__ | ||
| 5423 | extern "C" { void __F__Ehr__ListDocumentsRequest__initializer() {} } | ||
| 5424 | #endif | ||
| 5425 | |||
| 5426 | void | ||
| 5427 | Ehr::__patch__ListDocumentsRequestPtr(void* __addr, ::Ice::ObjectPtr& v) | ||
| 5428 | { | ||
| 5429 | ::Ehr::ListDocumentsRequestPtr* p = static_cast< ::Ehr::ListDocumentsRequestPtr*>(__addr); | ||
| 5430 | assert(p); | ||
| 5431 | *p = ::Ehr::ListDocumentsRequestPtr::dynamicCast(v); | ||
| 5432 | if(v && !*p) | ||
| 5433 | { | ||
| 5434 | IceInternal::Ex::throwUOE(::Ehr::ListDocumentsRequest::ice_staticId(), v->ice_id()); | ||
| 5435 | } | ||
| 5436 | } | ||
| 5437 | |||
| 5438 | bool | ||
| 5439 | Ehr::operator==(const ::Ehr::ListDocumentsRequest& l, const ::Ehr::ListDocumentsRequest& r) | ||
| 5440 | { | ||
| 5441 | return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); | ||
| 5442 | } | ||
| 5443 | |||
| 5444 | bool | ||
| 5445 | Ehr::operator<(const ::Ehr::ListDocumentsRequest& l, const ::Ehr::ListDocumentsRequest& r) | ||
| 5446 | { | ||
| 5447 | return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); | ||
| 5448 | } | ||
| 5449 | |||
| 5450 | Ehr::FindDocumentsRequest::FindDocumentsRequest(const ::Ehr::AccountIdentifier& __ice_requestor, const ::Ehr::Timestamp& __ice_when, const ::Ehr::AccountIdentifier& __ice_owner, bool __ice_hasFrom, const ::Ehr::Timestamp& __ice_from, bool __ice_hasTill, const ::Ehr::Timestamp& __ice_till, ::Ehr::DocumentType __ice_type, ::Ice::Long __ice_documentId) : | ||
| 5451 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5452 | Request(__ice_requestor, __ice_when) | ||
| 5453 | #else | ||
| 5454 | ::Ehr::Request(__ice_requestor, __ice_when) | ||
| 5455 | #endif | ||
| 5456 | , | ||
| 5457 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5458 | ThirdPartyRequest(__ice_requestor, __ice_when, __ice_owner) | ||
| 5459 | #else | ||
| 5460 | ::Ehr::ThirdPartyRequest(__ice_requestor, __ice_when, __ice_owner) | ||
| 5461 | #endif | ||
| 5462 | , | ||
| 5463 | hasFrom(__ice_hasFrom), | ||
| 5464 | from(__ice_from), | ||
| 5465 | hasTill(__ice_hasTill), | ||
| 5466 | till(__ice_till), | ||
| 5467 | type(__ice_type), | ||
| 5468 | documentId(__ice_documentId) | ||
| 5469 | { | ||
| 5470 | } | ||
| 5471 | |||
| 5472 | ::Ice::ObjectPtr | ||
| 5473 | Ehr::FindDocumentsRequest::ice_clone() const | ||
| 5474 | { | ||
| 5475 | ::Ehr::FindDocumentsRequestPtr __p = new ::Ehr::FindDocumentsRequest(*this); | ||
| 5476 | return __p; | ||
| 5477 | } | ||
| 5478 | |||
| 5479 | static const ::std::string __Ehr__FindDocumentsRequest_ids[4] = | ||
| 5480 | { | ||
| 5481 | "::Ehr::FindDocumentsRequest", | ||
| 5482 | "::Ehr::Request", | ||
| 5483 | "::Ehr::ThirdPartyRequest", | ||
| 5484 | "::Ice::Object" | ||
| 5485 | }; | ||
| 5486 | |||
| 5487 | bool | ||
| 5488 | Ehr::FindDocumentsRequest::ice_isA(const ::std::string& _s, const ::Ice::Current&) const | ||
| 5489 | { | ||
| 5490 | return ::std::binary_search(__Ehr__FindDocumentsRequest_ids, __Ehr__FindDocumentsRequest_ids + 4, _s); | ||
| 5491 | } | ||
| 5492 | |||
| 5493 | ::std::vector< ::std::string> | ||
| 5494 | Ehr::FindDocumentsRequest::ice_ids(const ::Ice::Current&) const | ||
| 5495 | { | ||
| 5496 | return ::std::vector< ::std::string>(&__Ehr__FindDocumentsRequest_ids[0], &__Ehr__FindDocumentsRequest_ids[4]); | ||
| 5497 | } | ||
| 5498 | |||
| 5499 | const ::std::string& | ||
| 5500 | Ehr::FindDocumentsRequest::ice_id(const ::Ice::Current&) const | ||
| 5501 | { | ||
| 5502 | return __Ehr__FindDocumentsRequest_ids[0]; | ||
| 5503 | } | ||
| 5504 | |||
| 5505 | const ::std::string& | ||
| 5506 | Ehr::FindDocumentsRequest::ice_staticId() | ||
| 5507 | { | ||
| 5508 | return __Ehr__FindDocumentsRequest_ids[0]; | ||
| 5509 | } | ||
| 5510 | |||
| 5511 | void | ||
| 5512 | Ehr::FindDocumentsRequest::__write(::IceInternal::BasicStream* __os) const | ||
| 5513 | { | ||
| 5514 | __os->writeTypeId(ice_staticId()); | ||
| 5515 | __os->startWriteSlice(); | ||
| 5516 | __os->write(hasFrom); | ||
| 5517 | from.__write(__os); | ||
| 5518 | __os->write(hasTill); | ||
| 5519 | till.__write(__os); | ||
| 5520 | ::Ehr::__write(__os, type); | ||
| 5521 | __os->write(documentId); | ||
| 5522 | __os->endWriteSlice(); | ||
| 5523 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5524 | ThirdPartyRequest::__write(__os); | ||
| 5525 | #else | ||
| 5526 | ::Ehr::ThirdPartyRequest::__write(__os); | ||
| 5527 | #endif | ||
| 5528 | } | ||
| 5529 | |||
| 5530 | void | ||
| 5531 | Ehr::FindDocumentsRequest::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 5532 | { | ||
| 5533 | if(__rid) | ||
| 5534 | { | ||
| 5535 | ::std::string myId; | ||
| 5536 | __is->readTypeId(myId); | ||
| 5537 | } | ||
| 5538 | __is->startReadSlice(); | ||
| 5539 | __is->read(hasFrom); | ||
| 5540 | from.__read(__is); | ||
| 5541 | __is->read(hasTill); | ||
| 5542 | till.__read(__is); | ||
| 5543 | ::Ehr::__read(__is, type); | ||
| 5544 | __is->read(documentId); | ||
| 5545 | __is->endReadSlice(); | ||
| 5546 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5547 | ThirdPartyRequest::__read(__is, true); | ||
| 5548 | #else | ||
| 5549 | ::Ehr::ThirdPartyRequest::__read(__is, true); | ||
| 5550 | #endif | ||
| 5551 | } | ||
| 5552 | |||
| 5553 | void | ||
| 5554 | Ehr::FindDocumentsRequest::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 5555 | { | ||
| 5556 | __outS->writeTypeId(ice_staticId()); | ||
| 5557 | __outS->startSlice(); | ||
| 5558 | __outS->writeBool(hasFrom); | ||
| 5559 | ::Ehr::ice_writeTimestamp(__outS, from); | ||
| 5560 | __outS->writeBool(hasTill); | ||
| 5561 | ::Ehr::ice_writeTimestamp(__outS, till); | ||
| 5562 | ::Ehr::ice_writeDocumentType(__outS, type); | ||
| 5563 | __outS->writeLong(documentId); | ||
| 5564 | __outS->endSlice(); | ||
| 5565 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5566 | ThirdPartyRequest::__write(__outS); | ||
| 5567 | #else | ||
| 5568 | ::Ehr::ThirdPartyRequest::__write(__outS); | ||
| 5569 | #endif | ||
| 5570 | } | ||
| 5571 | |||
| 5572 | void | ||
| 5573 | Ehr::FindDocumentsRequest::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 5574 | { | ||
| 5575 | if(__rid) | ||
| 5576 | { | ||
| 5577 | __inS->readTypeId(); | ||
| 5578 | } | ||
| 5579 | __inS->startSlice(); | ||
| 5580 | hasFrom = __inS->readBool(); | ||
| 5581 | ::Ehr::ice_readTimestamp(__inS, from); | ||
| 5582 | hasTill = __inS->readBool(); | ||
| 5583 | ::Ehr::ice_readTimestamp(__inS, till); | ||
| 5584 | ::Ehr::ice_readDocumentType(__inS, type); | ||
| 5585 | documentId = __inS->readLong(); | ||
| 5586 | __inS->endSlice(); | ||
| 5587 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5588 | ThirdPartyRequest::__read(__inS, true); | ||
| 5589 | #else | ||
| 5590 | ::Ehr::ThirdPartyRequest::__read(__inS, true); | ||
| 5591 | #endif | ||
| 5592 | } | ||
| 5593 | |||
| 5594 | class __F__Ehr__FindDocumentsRequest : public ::Ice::ObjectFactory | ||
| 5595 | { | ||
| 5596 | public: | ||
| 5597 | |||
| 5598 | virtual ::Ice::ObjectPtr | ||
| 5599 | create(const ::std::string& type) | ||
| 5600 | { | ||
| 5601 | assert(type == ::Ehr::FindDocumentsRequest::ice_staticId()); | ||
| 5602 | return new ::Ehr::FindDocumentsRequest; | ||
| 5603 | } | ||
| 5604 | |||
| 5605 | virtual void | ||
| 5606 | destroy() | ||
| 5607 | { | ||
| 5608 | } | ||
| 5609 | }; | ||
| 5610 | |||
| 5611 | static ::Ice::ObjectFactoryPtr __F__Ehr__FindDocumentsRequest_Ptr = new __F__Ehr__FindDocumentsRequest; | ||
| 5612 | |||
| 5613 | const ::Ice::ObjectFactoryPtr& | ||
| 5614 | Ehr::FindDocumentsRequest::ice_factory() | ||
| 5615 | { | ||
| 5616 | return __F__Ehr__FindDocumentsRequest_Ptr; | ||
| 5617 | } | ||
| 5618 | |||
| 5619 | class __F__Ehr__FindDocumentsRequest__Init | ||
| 5620 | { | ||
| 5621 | public: | ||
| 5622 | |||
| 5623 | __F__Ehr__FindDocumentsRequest__Init() | ||
| 5624 | { | ||
| 5625 | ::IceInternal::factoryTable->addObjectFactory(::Ehr::FindDocumentsRequest::ice_staticId(), ::Ehr::FindDocumentsRequest::ice_factory()); | ||
| 5626 | } | ||
| 5627 | |||
| 5628 | ~__F__Ehr__FindDocumentsRequest__Init() | ||
| 5629 | { | ||
| 5630 | ::IceInternal::factoryTable->removeObjectFactory(::Ehr::FindDocumentsRequest::ice_staticId()); | ||
| 5631 | } | ||
| 5632 | }; | ||
| 5633 | |||
| 5634 | static __F__Ehr__FindDocumentsRequest__Init __F__Ehr__FindDocumentsRequest__i; | ||
| 5635 | |||
| 5636 | #ifdef __APPLE__ | ||
| 5637 | extern "C" { void __F__Ehr__FindDocumentsRequest__initializer() {} } | ||
| 5638 | #endif | ||
| 5639 | |||
| 5640 | void | ||
| 5641 | Ehr::__patch__FindDocumentsRequestPtr(void* __addr, ::Ice::ObjectPtr& v) | ||
| 5642 | { | ||
| 5643 | ::Ehr::FindDocumentsRequestPtr* p = static_cast< ::Ehr::FindDocumentsRequestPtr*>(__addr); | ||
| 5644 | assert(p); | ||
| 5645 | *p = ::Ehr::FindDocumentsRequestPtr::dynamicCast(v); | ||
| 5646 | if(v && !*p) | ||
| 5647 | { | ||
| 5648 | IceInternal::Ex::throwUOE(::Ehr::FindDocumentsRequest::ice_staticId(), v->ice_id()); | ||
| 5649 | } | ||
| 5650 | } | ||
| 5651 | |||
| 5652 | bool | ||
| 5653 | Ehr::operator==(const ::Ehr::FindDocumentsRequest& l, const ::Ehr::FindDocumentsRequest& r) | ||
| 5654 | { | ||
| 5655 | return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); | ||
| 5656 | } | ||
| 5657 | |||
| 5658 | bool | ||
| 5659 | Ehr::operator<(const ::Ehr::FindDocumentsRequest& l, const ::Ehr::FindDocumentsRequest& r) | ||
| 5660 | { | ||
| 5661 | return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); | ||
| 5662 | } | ||
| 5663 | |||
| 5664 | Ehr::CreatePermissionRequest::CreatePermissionRequest(const ::Ehr::AccountIdentifier& __ice_requestor, const ::Ehr::Timestamp& __ice_when, ::Ice::Long __ice_documentId, const ::Ehr::AccountIdentifier& __ice_account, ::Ehr::AccessType __ice_access) : | ||
| 5665 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5666 | Request(__ice_requestor, __ice_when) | ||
| 5667 | #else | ||
| 5668 | ::Ehr::Request(__ice_requestor, __ice_when) | ||
| 5669 | #endif | ||
| 5670 | , | ||
| 5671 | documentId(__ice_documentId), | ||
| 5672 | account(__ice_account), | ||
| 5673 | access(__ice_access) | ||
| 5674 | { | ||
| 5675 | } | ||
| 5676 | |||
| 5677 | ::Ice::ObjectPtr | ||
| 5678 | Ehr::CreatePermissionRequest::ice_clone() const | ||
| 5679 | { | ||
| 5680 | ::Ehr::CreatePermissionRequestPtr __p = new ::Ehr::CreatePermissionRequest(*this); | ||
| 5681 | return __p; | ||
| 5682 | } | ||
| 5683 | |||
| 5684 | static const ::std::string __Ehr__CreatePermissionRequest_ids[3] = | ||
| 5685 | { | ||
| 5686 | "::Ehr::CreatePermissionRequest", | ||
| 5687 | "::Ehr::Request", | ||
| 5688 | "::Ice::Object" | ||
| 5689 | }; | ||
| 5690 | |||
| 5691 | bool | ||
| 5692 | Ehr::CreatePermissionRequest::ice_isA(const ::std::string& _s, const ::Ice::Current&) const | ||
| 5693 | { | ||
| 5694 | return ::std::binary_search(__Ehr__CreatePermissionRequest_ids, __Ehr__CreatePermissionRequest_ids + 3, _s); | ||
| 5695 | } | ||
| 5696 | |||
| 5697 | ::std::vector< ::std::string> | ||
| 5698 | Ehr::CreatePermissionRequest::ice_ids(const ::Ice::Current&) const | ||
| 5699 | { | ||
| 5700 | return ::std::vector< ::std::string>(&__Ehr__CreatePermissionRequest_ids[0], &__Ehr__CreatePermissionRequest_ids[3]); | ||
| 5701 | } | ||
| 5702 | |||
| 5703 | const ::std::string& | ||
| 5704 | Ehr::CreatePermissionRequest::ice_id(const ::Ice::Current&) const | ||
| 5705 | { | ||
| 5706 | return __Ehr__CreatePermissionRequest_ids[0]; | ||
| 5707 | } | ||
| 5708 | |||
| 5709 | const ::std::string& | ||
| 5710 | Ehr::CreatePermissionRequest::ice_staticId() | ||
| 5711 | { | ||
| 5712 | return __Ehr__CreatePermissionRequest_ids[0]; | ||
| 5713 | } | ||
| 5714 | |||
| 5715 | void | ||
| 5716 | Ehr::CreatePermissionRequest::__write(::IceInternal::BasicStream* __os) const | ||
| 5717 | { | ||
| 5718 | __os->writeTypeId(ice_staticId()); | ||
| 5719 | __os->startWriteSlice(); | ||
| 5720 | __os->write(documentId); | ||
| 5721 | account.__write(__os); | ||
| 5722 | ::Ehr::__write(__os, access); | ||
| 5723 | __os->endWriteSlice(); | ||
| 5724 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5725 | Request::__write(__os); | ||
| 5726 | #else | ||
| 5727 | ::Ehr::Request::__write(__os); | ||
| 5728 | #endif | ||
| 5729 | } | ||
| 5730 | |||
| 5731 | void | ||
| 5732 | Ehr::CreatePermissionRequest::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 5733 | { | ||
| 5734 | if(__rid) | ||
| 5735 | { | ||
| 5736 | ::std::string myId; | ||
| 5737 | __is->readTypeId(myId); | ||
| 5738 | } | ||
| 5739 | __is->startReadSlice(); | ||
| 5740 | __is->read(documentId); | ||
| 5741 | account.__read(__is); | ||
| 5742 | ::Ehr::__read(__is, access); | ||
| 5743 | __is->endReadSlice(); | ||
| 5744 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5745 | Request::__read(__is, true); | ||
| 5746 | #else | ||
| 5747 | ::Ehr::Request::__read(__is, true); | ||
| 5748 | #endif | ||
| 5749 | } | ||
| 5750 | |||
| 5751 | void | ||
| 5752 | Ehr::CreatePermissionRequest::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 5753 | { | ||
| 5754 | __outS->writeTypeId(ice_staticId()); | ||
| 5755 | __outS->startSlice(); | ||
| 5756 | __outS->writeLong(documentId); | ||
| 5757 | ::Ehr::ice_writeAccountIdentifier(__outS, account); | ||
| 5758 | ::Ehr::ice_writeAccessType(__outS, access); | ||
| 5759 | __outS->endSlice(); | ||
| 5760 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5761 | Request::__write(__outS); | ||
| 5762 | #else | ||
| 5763 | ::Ehr::Request::__write(__outS); | ||
| 5764 | #endif | ||
| 5765 | } | ||
| 5766 | |||
| 5767 | void | ||
| 5768 | Ehr::CreatePermissionRequest::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 5769 | { | ||
| 5770 | if(__rid) | ||
| 5771 | { | ||
| 5772 | __inS->readTypeId(); | ||
| 5773 | } | ||
| 5774 | __inS->startSlice(); | ||
| 5775 | documentId = __inS->readLong(); | ||
| 5776 | ::Ehr::ice_readAccountIdentifier(__inS, account); | ||
| 5777 | ::Ehr::ice_readAccessType(__inS, access); | ||
| 5778 | __inS->endSlice(); | ||
| 5779 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5780 | Request::__read(__inS, true); | ||
| 5781 | #else | ||
| 5782 | ::Ehr::Request::__read(__inS, true); | ||
| 5783 | #endif | ||
| 5784 | } | ||
| 5785 | |||
| 5786 | class __F__Ehr__CreatePermissionRequest : public ::Ice::ObjectFactory | ||
| 5787 | { | ||
| 5788 | public: | ||
| 5789 | |||
| 5790 | virtual ::Ice::ObjectPtr | ||
| 5791 | create(const ::std::string& type) | ||
| 5792 | { | ||
| 5793 | assert(type == ::Ehr::CreatePermissionRequest::ice_staticId()); | ||
| 5794 | return new ::Ehr::CreatePermissionRequest; | ||
| 5795 | } | ||
| 5796 | |||
| 5797 | virtual void | ||
| 5798 | destroy() | ||
| 5799 | { | ||
| 5800 | } | ||
| 5801 | }; | ||
| 5802 | |||
| 5803 | static ::Ice::ObjectFactoryPtr __F__Ehr__CreatePermissionRequest_Ptr = new __F__Ehr__CreatePermissionRequest; | ||
| 5804 | |||
| 5805 | const ::Ice::ObjectFactoryPtr& | ||
| 5806 | Ehr::CreatePermissionRequest::ice_factory() | ||
| 5807 | { | ||
| 5808 | return __F__Ehr__CreatePermissionRequest_Ptr; | ||
| 5809 | } | ||
| 5810 | |||
| 5811 | class __F__Ehr__CreatePermissionRequest__Init | ||
| 5812 | { | ||
| 5813 | public: | ||
| 5814 | |||
| 5815 | __F__Ehr__CreatePermissionRequest__Init() | ||
| 5816 | { | ||
| 5817 | ::IceInternal::factoryTable->addObjectFactory(::Ehr::CreatePermissionRequest::ice_staticId(), ::Ehr::CreatePermissionRequest::ice_factory()); | ||
| 5818 | } | ||
| 5819 | |||
| 5820 | ~__F__Ehr__CreatePermissionRequest__Init() | ||
| 5821 | { | ||
| 5822 | ::IceInternal::factoryTable->removeObjectFactory(::Ehr::CreatePermissionRequest::ice_staticId()); | ||
| 5823 | } | ||
| 5824 | }; | ||
| 5825 | |||
| 5826 | static __F__Ehr__CreatePermissionRequest__Init __F__Ehr__CreatePermissionRequest__i; | ||
| 5827 | |||
| 5828 | #ifdef __APPLE__ | ||
| 5829 | extern "C" { void __F__Ehr__CreatePermissionRequest__initializer() {} } | ||
| 5830 | #endif | ||
| 5831 | |||
| 5832 | void | ||
| 5833 | Ehr::__patch__CreatePermissionRequestPtr(void* __addr, ::Ice::ObjectPtr& v) | ||
| 5834 | { | ||
| 5835 | ::Ehr::CreatePermissionRequestPtr* p = static_cast< ::Ehr::CreatePermissionRequestPtr*>(__addr); | ||
| 5836 | assert(p); | ||
| 5837 | *p = ::Ehr::CreatePermissionRequestPtr::dynamicCast(v); | ||
| 5838 | if(v && !*p) | ||
| 5839 | { | ||
| 5840 | IceInternal::Ex::throwUOE(::Ehr::CreatePermissionRequest::ice_staticId(), v->ice_id()); | ||
| 5841 | } | ||
| 5842 | } | ||
| 5843 | |||
| 5844 | bool | ||
| 5845 | Ehr::operator==(const ::Ehr::CreatePermissionRequest& l, const ::Ehr::CreatePermissionRequest& r) | ||
| 5846 | { | ||
| 5847 | return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); | ||
| 5848 | } | ||
| 5849 | |||
| 5850 | bool | ||
| 5851 | Ehr::operator<(const ::Ehr::CreatePermissionRequest& l, const ::Ehr::CreatePermissionRequest& r) | ||
| 5852 | { | ||
| 5853 | return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); | ||
| 5854 | } | ||
| 5855 | |||
| 5856 | Ehr::SetDefaultAccessRequest::SetDefaultAccessRequest(const ::Ehr::AccountIdentifier& __ice_requestor, const ::Ehr::Timestamp& __ice_when, ::Ice::Long __ice_documentId, ::Ehr::AccessType __ice_access) : | ||
| 5857 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5858 | Request(__ice_requestor, __ice_when) | ||
| 5859 | #else | ||
| 5860 | ::Ehr::Request(__ice_requestor, __ice_when) | ||
| 5861 | #endif | ||
| 5862 | , | ||
| 5863 | documentId(__ice_documentId), | ||
| 5864 | access(__ice_access) | ||
| 5865 | { | ||
| 5866 | } | ||
| 5867 | |||
| 5868 | ::Ice::ObjectPtr | ||
| 5869 | Ehr::SetDefaultAccessRequest::ice_clone() const | ||
| 5870 | { | ||
| 5871 | ::Ehr::SetDefaultAccessRequestPtr __p = new ::Ehr::SetDefaultAccessRequest(*this); | ||
| 5872 | return __p; | ||
| 5873 | } | ||
| 5874 | |||
| 5875 | static const ::std::string __Ehr__SetDefaultAccessRequest_ids[3] = | ||
| 5876 | { | ||
| 5877 | "::Ehr::Request", | ||
| 5878 | "::Ehr::SetDefaultAccessRequest", | ||
| 5879 | "::Ice::Object" | ||
| 5880 | }; | ||
| 5881 | |||
| 5882 | bool | ||
| 5883 | Ehr::SetDefaultAccessRequest::ice_isA(const ::std::string& _s, const ::Ice::Current&) const | ||
| 5884 | { | ||
| 5885 | return ::std::binary_search(__Ehr__SetDefaultAccessRequest_ids, __Ehr__SetDefaultAccessRequest_ids + 3, _s); | ||
| 5886 | } | ||
| 5887 | |||
| 5888 | ::std::vector< ::std::string> | ||
| 5889 | Ehr::SetDefaultAccessRequest::ice_ids(const ::Ice::Current&) const | ||
| 5890 | { | ||
| 5891 | return ::std::vector< ::std::string>(&__Ehr__SetDefaultAccessRequest_ids[0], &__Ehr__SetDefaultAccessRequest_ids[3]); | ||
| 5892 | } | ||
| 5893 | |||
| 5894 | const ::std::string& | ||
| 5895 | Ehr::SetDefaultAccessRequest::ice_id(const ::Ice::Current&) const | ||
| 5896 | { | ||
| 5897 | return __Ehr__SetDefaultAccessRequest_ids[1]; | ||
| 5898 | } | ||
| 5899 | |||
| 5900 | const ::std::string& | ||
| 5901 | Ehr::SetDefaultAccessRequest::ice_staticId() | ||
| 5902 | { | ||
| 5903 | return __Ehr__SetDefaultAccessRequest_ids[1]; | ||
| 5904 | } | ||
| 5905 | |||
| 5906 | void | ||
| 5907 | Ehr::SetDefaultAccessRequest::__write(::IceInternal::BasicStream* __os) const | ||
| 5908 | { | ||
| 5909 | __os->writeTypeId(ice_staticId()); | ||
| 5910 | __os->startWriteSlice(); | ||
| 5911 | __os->write(documentId); | ||
| 5912 | ::Ehr::__write(__os, access); | ||
| 5913 | __os->endWriteSlice(); | ||
| 5914 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5915 | Request::__write(__os); | ||
| 5916 | #else | ||
| 5917 | ::Ehr::Request::__write(__os); | ||
| 5918 | #endif | ||
| 5919 | } | ||
| 5920 | |||
| 5921 | void | ||
| 5922 | Ehr::SetDefaultAccessRequest::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 5923 | { | ||
| 5924 | if(__rid) | ||
| 5925 | { | ||
| 5926 | ::std::string myId; | ||
| 5927 | __is->readTypeId(myId); | ||
| 5928 | } | ||
| 5929 | __is->startReadSlice(); | ||
| 5930 | __is->read(documentId); | ||
| 5931 | ::Ehr::__read(__is, access); | ||
| 5932 | __is->endReadSlice(); | ||
| 5933 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5934 | Request::__read(__is, true); | ||
| 5935 | #else | ||
| 5936 | ::Ehr::Request::__read(__is, true); | ||
| 5937 | #endif | ||
| 5938 | } | ||
| 5939 | |||
| 5940 | void | ||
| 5941 | Ehr::SetDefaultAccessRequest::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 5942 | { | ||
| 5943 | __outS->writeTypeId(ice_staticId()); | ||
| 5944 | __outS->startSlice(); | ||
| 5945 | __outS->writeLong(documentId); | ||
| 5946 | ::Ehr::ice_writeAccessType(__outS, access); | ||
| 5947 | __outS->endSlice(); | ||
| 5948 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5949 | Request::__write(__outS); | ||
| 5950 | #else | ||
| 5951 | ::Ehr::Request::__write(__outS); | ||
| 5952 | #endif | ||
| 5953 | } | ||
| 5954 | |||
| 5955 | void | ||
| 5956 | Ehr::SetDefaultAccessRequest::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 5957 | { | ||
| 5958 | if(__rid) | ||
| 5959 | { | ||
| 5960 | __inS->readTypeId(); | ||
| 5961 | } | ||
| 5962 | __inS->startSlice(); | ||
| 5963 | documentId = __inS->readLong(); | ||
| 5964 | ::Ehr::ice_readAccessType(__inS, access); | ||
| 5965 | __inS->endSlice(); | ||
| 5966 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 5967 | Request::__read(__inS, true); | ||
| 5968 | #else | ||
| 5969 | ::Ehr::Request::__read(__inS, true); | ||
| 5970 | #endif | ||
| 5971 | } | ||
| 5972 | |||
| 5973 | class __F__Ehr__SetDefaultAccessRequest : public ::Ice::ObjectFactory | ||
| 5974 | { | ||
| 5975 | public: | ||
| 5976 | |||
| 5977 | virtual ::Ice::ObjectPtr | ||
| 5978 | create(const ::std::string& type) | ||
| 5979 | { | ||
| 5980 | assert(type == ::Ehr::SetDefaultAccessRequest::ice_staticId()); | ||
| 5981 | return new ::Ehr::SetDefaultAccessRequest; | ||
| 5982 | } | ||
| 5983 | |||
| 5984 | virtual void | ||
| 5985 | destroy() | ||
| 5986 | { | ||
| 5987 | } | ||
| 5988 | }; | ||
| 5989 | |||
| 5990 | static ::Ice::ObjectFactoryPtr __F__Ehr__SetDefaultAccessRequest_Ptr = new __F__Ehr__SetDefaultAccessRequest; | ||
| 5991 | |||
| 5992 | const ::Ice::ObjectFactoryPtr& | ||
| 5993 | Ehr::SetDefaultAccessRequest::ice_factory() | ||
| 5994 | { | ||
| 5995 | return __F__Ehr__SetDefaultAccessRequest_Ptr; | ||
| 5996 | } | ||
| 5997 | |||
| 5998 | class __F__Ehr__SetDefaultAccessRequest__Init | ||
| 5999 | { | ||
| 6000 | public: | ||
| 6001 | |||
| 6002 | __F__Ehr__SetDefaultAccessRequest__Init() | ||
| 6003 | { | ||
| 6004 | ::IceInternal::factoryTable->addObjectFactory(::Ehr::SetDefaultAccessRequest::ice_staticId(), ::Ehr::SetDefaultAccessRequest::ice_factory()); | ||
| 6005 | } | ||
| 6006 | |||
| 6007 | ~__F__Ehr__SetDefaultAccessRequest__Init() | ||
| 6008 | { | ||
| 6009 | ::IceInternal::factoryTable->removeObjectFactory(::Ehr::SetDefaultAccessRequest::ice_staticId()); | ||
| 6010 | } | ||
| 6011 | }; | ||
| 6012 | |||
| 6013 | static __F__Ehr__SetDefaultAccessRequest__Init __F__Ehr__SetDefaultAccessRequest__i; | ||
| 6014 | |||
| 6015 | #ifdef __APPLE__ | ||
| 6016 | extern "C" { void __F__Ehr__SetDefaultAccessRequest__initializer() {} } | ||
| 6017 | #endif | ||
| 6018 | |||
| 6019 | void | ||
| 6020 | Ehr::__patch__SetDefaultAccessRequestPtr(void* __addr, ::Ice::ObjectPtr& v) | ||
| 6021 | { | ||
| 6022 | ::Ehr::SetDefaultAccessRequestPtr* p = static_cast< ::Ehr::SetDefaultAccessRequestPtr*>(__addr); | ||
| 6023 | assert(p); | ||
| 6024 | *p = ::Ehr::SetDefaultAccessRequestPtr::dynamicCast(v); | ||
| 6025 | if(v && !*p) | ||
| 6026 | { | ||
| 6027 | IceInternal::Ex::throwUOE(::Ehr::SetDefaultAccessRequest::ice_staticId(), v->ice_id()); | ||
| 6028 | } | ||
| 6029 | } | ||
| 6030 | |||
| 6031 | bool | ||
| 6032 | Ehr::operator==(const ::Ehr::SetDefaultAccessRequest& l, const ::Ehr::SetDefaultAccessRequest& r) | ||
| 6033 | { | ||
| 6034 | return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); | ||
| 6035 | } | ||
| 6036 | |||
| 6037 | bool | ||
| 6038 | Ehr::operator<(const ::Ehr::SetDefaultAccessRequest& l, const ::Ehr::SetDefaultAccessRequest& r) | ||
| 6039 | { | ||
| 6040 | return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); | ||
| 6041 | } | ||
| 6042 | |||
| 6043 | Ehr::ListPermissionsRequest::ListPermissionsRequest(const ::Ehr::AccountIdentifier& __ice_requestor, const ::Ehr::Timestamp& __ice_when, ::Ice::Long __ice_documentId) : | ||
| 6044 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 6045 | Request(__ice_requestor, __ice_when) | ||
| 6046 | #else | ||
| 6047 | ::Ehr::Request(__ice_requestor, __ice_when) | ||
| 6048 | #endif | ||
| 6049 | , | ||
| 6050 | documentId(__ice_documentId) | ||
| 6051 | { | ||
| 6052 | } | ||
| 6053 | |||
| 6054 | ::Ice::ObjectPtr | ||
| 6055 | Ehr::ListPermissionsRequest::ice_clone() const | ||
| 6056 | { | ||
| 6057 | ::Ehr::ListPermissionsRequestPtr __p = new ::Ehr::ListPermissionsRequest(*this); | ||
| 6058 | return __p; | ||
| 6059 | } | ||
| 6060 | |||
| 6061 | static const ::std::string __Ehr__ListPermissionsRequest_ids[3] = | ||
| 6062 | { | ||
| 6063 | "::Ehr::ListPermissionsRequest", | ||
| 6064 | "::Ehr::Request", | ||
| 6065 | "::Ice::Object" | ||
| 6066 | }; | ||
| 6067 | |||
| 6068 | bool | ||
| 6069 | Ehr::ListPermissionsRequest::ice_isA(const ::std::string& _s, const ::Ice::Current&) const | ||
| 6070 | { | ||
| 6071 | return ::std::binary_search(__Ehr__ListPermissionsRequest_ids, __Ehr__ListPermissionsRequest_ids + 3, _s); | ||
| 6072 | } | ||
| 6073 | |||
| 6074 | ::std::vector< ::std::string> | ||
| 6075 | Ehr::ListPermissionsRequest::ice_ids(const ::Ice::Current&) const | ||
| 6076 | { | ||
| 6077 | return ::std::vector< ::std::string>(&__Ehr__ListPermissionsRequest_ids[0], &__Ehr__ListPermissionsRequest_ids[3]); | ||
| 6078 | } | ||
| 6079 | |||
| 6080 | const ::std::string& | ||
| 6081 | Ehr::ListPermissionsRequest::ice_id(const ::Ice::Current&) const | ||
| 6082 | { | ||
| 6083 | return __Ehr__ListPermissionsRequest_ids[0]; | ||
| 6084 | } | ||
| 6085 | |||
| 6086 | const ::std::string& | ||
| 6087 | Ehr::ListPermissionsRequest::ice_staticId() | ||
| 6088 | { | ||
| 6089 | return __Ehr__ListPermissionsRequest_ids[0]; | ||
| 6090 | } | ||
| 6091 | |||
| 6092 | void | ||
| 6093 | Ehr::ListPermissionsRequest::__write(::IceInternal::BasicStream* __os) const | ||
| 6094 | { | ||
| 6095 | __os->writeTypeId(ice_staticId()); | ||
| 6096 | __os->startWriteSlice(); | ||
| 6097 | __os->write(documentId); | ||
| 6098 | __os->endWriteSlice(); | ||
| 6099 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 6100 | Request::__write(__os); | ||
| 6101 | #else | ||
| 6102 | ::Ehr::Request::__write(__os); | ||
| 6103 | #endif | ||
| 6104 | } | ||
| 6105 | |||
| 6106 | void | ||
| 6107 | Ehr::ListPermissionsRequest::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 6108 | { | ||
| 6109 | if(__rid) | ||
| 6110 | { | ||
| 6111 | ::std::string myId; | ||
| 6112 | __is->readTypeId(myId); | ||
| 6113 | } | ||
| 6114 | __is->startReadSlice(); | ||
| 6115 | __is->read(documentId); | ||
| 6116 | __is->endReadSlice(); | ||
| 6117 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 6118 | Request::__read(__is, true); | ||
| 6119 | #else | ||
| 6120 | ::Ehr::Request::__read(__is, true); | ||
| 6121 | #endif | ||
| 6122 | } | ||
| 6123 | |||
| 6124 | void | ||
| 6125 | Ehr::ListPermissionsRequest::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 6126 | { | ||
| 6127 | __outS->writeTypeId(ice_staticId()); | ||
| 6128 | __outS->startSlice(); | ||
| 6129 | __outS->writeLong(documentId); | ||
| 6130 | __outS->endSlice(); | ||
| 6131 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 6132 | Request::__write(__outS); | ||
| 6133 | #else | ||
| 6134 | ::Ehr::Request::__write(__outS); | ||
| 6135 | #endif | ||
| 6136 | } | ||
| 6137 | |||
| 6138 | void | ||
| 6139 | Ehr::ListPermissionsRequest::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 6140 | { | ||
| 6141 | if(__rid) | ||
| 6142 | { | ||
| 6143 | __inS->readTypeId(); | ||
| 6144 | } | ||
| 6145 | __inS->startSlice(); | ||
| 6146 | documentId = __inS->readLong(); | ||
| 6147 | __inS->endSlice(); | ||
| 6148 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 6149 | Request::__read(__inS, true); | ||
| 6150 | #else | ||
| 6151 | ::Ehr::Request::__read(__inS, true); | ||
| 6152 | #endif | ||
| 6153 | } | ||
| 6154 | |||
| 6155 | class __F__Ehr__ListPermissionsRequest : public ::Ice::ObjectFactory | ||
| 6156 | { | ||
| 6157 | public: | ||
| 6158 | |||
| 6159 | virtual ::Ice::ObjectPtr | ||
| 6160 | create(const ::std::string& type) | ||
| 6161 | { | ||
| 6162 | assert(type == ::Ehr::ListPermissionsRequest::ice_staticId()); | ||
| 6163 | return new ::Ehr::ListPermissionsRequest; | ||
| 6164 | } | ||
| 6165 | |||
| 6166 | virtual void | ||
| 6167 | destroy() | ||
| 6168 | { | ||
| 6169 | } | ||
| 6170 | }; | ||
| 6171 | |||
| 6172 | static ::Ice::ObjectFactoryPtr __F__Ehr__ListPermissionsRequest_Ptr = new __F__Ehr__ListPermissionsRequest; | ||
| 6173 | |||
| 6174 | const ::Ice::ObjectFactoryPtr& | ||
| 6175 | Ehr::ListPermissionsRequest::ice_factory() | ||
| 6176 | { | ||
| 6177 | return __F__Ehr__ListPermissionsRequest_Ptr; | ||
| 6178 | } | ||
| 6179 | |||
| 6180 | class __F__Ehr__ListPermissionsRequest__Init | ||
| 6181 | { | ||
| 6182 | public: | ||
| 6183 | |||
| 6184 | __F__Ehr__ListPermissionsRequest__Init() | ||
| 6185 | { | ||
| 6186 | ::IceInternal::factoryTable->addObjectFactory(::Ehr::ListPermissionsRequest::ice_staticId(), ::Ehr::ListPermissionsRequest::ice_factory()); | ||
| 6187 | } | ||
| 6188 | |||
| 6189 | ~__F__Ehr__ListPermissionsRequest__Init() | ||
| 6190 | { | ||
| 6191 | ::IceInternal::factoryTable->removeObjectFactory(::Ehr::ListPermissionsRequest::ice_staticId()); | ||
| 6192 | } | ||
| 6193 | }; | ||
| 6194 | |||
| 6195 | static __F__Ehr__ListPermissionsRequest__Init __F__Ehr__ListPermissionsRequest__i; | ||
| 6196 | |||
| 6197 | #ifdef __APPLE__ | ||
| 6198 | extern "C" { void __F__Ehr__ListPermissionsRequest__initializer() {} } | ||
| 6199 | #endif | ||
| 6200 | |||
| 6201 | void | ||
| 6202 | Ehr::__patch__ListPermissionsRequestPtr(void* __addr, ::Ice::ObjectPtr& v) | ||
| 6203 | { | ||
| 6204 | ::Ehr::ListPermissionsRequestPtr* p = static_cast< ::Ehr::ListPermissionsRequestPtr*>(__addr); | ||
| 6205 | assert(p); | ||
| 6206 | *p = ::Ehr::ListPermissionsRequestPtr::dynamicCast(v); | ||
| 6207 | if(v && !*p) | ||
| 6208 | { | ||
| 6209 | IceInternal::Ex::throwUOE(::Ehr::ListPermissionsRequest::ice_staticId(), v->ice_id()); | ||
| 6210 | } | ||
| 6211 | } | ||
| 6212 | |||
| 6213 | bool | ||
| 6214 | Ehr::operator==(const ::Ehr::ListPermissionsRequest& l, const ::Ehr::ListPermissionsRequest& r) | ||
| 6215 | { | ||
| 6216 | return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); | ||
| 6217 | } | ||
| 6218 | |||
| 6219 | bool | ||
| 6220 | Ehr::operator<(const ::Ehr::ListPermissionsRequest& l, const ::Ehr::ListPermissionsRequest& r) | ||
| 6221 | { | ||
| 6222 | return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); | ||
| 6223 | } | ||
| 6224 | |||
| 6225 | Ehr::RemovePermissionRequest::RemovePermissionRequest(const ::Ehr::AccountIdentifier& __ice_requestor, const ::Ehr::Timestamp& __ice_when, ::Ice::Long __ice_documentId, ::Ice::Long __ice_permissionId) : | ||
| 6226 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 6227 | Request(__ice_requestor, __ice_when) | ||
| 6228 | #else | ||
| 6229 | ::Ehr::Request(__ice_requestor, __ice_when) | ||
| 6230 | #endif | ||
| 6231 | , | ||
| 6232 | documentId(__ice_documentId), | ||
| 6233 | permissionId(__ice_permissionId) | ||
| 6234 | { | ||
| 6235 | } | ||
| 6236 | |||
| 6237 | ::Ice::ObjectPtr | ||
| 6238 | Ehr::RemovePermissionRequest::ice_clone() const | ||
| 6239 | { | ||
| 6240 | ::Ehr::RemovePermissionRequestPtr __p = new ::Ehr::RemovePermissionRequest(*this); | ||
| 6241 | return __p; | ||
| 6242 | } | ||
| 6243 | |||
| 6244 | static const ::std::string __Ehr__RemovePermissionRequest_ids[3] = | ||
| 6245 | { | ||
| 6246 | "::Ehr::RemovePermissionRequest", | ||
| 6247 | "::Ehr::Request", | ||
| 6248 | "::Ice::Object" | ||
| 6249 | }; | ||
| 6250 | |||
| 6251 | bool | ||
| 6252 | Ehr::RemovePermissionRequest::ice_isA(const ::std::string& _s, const ::Ice::Current&) const | ||
| 6253 | { | ||
| 6254 | return ::std::binary_search(__Ehr__RemovePermissionRequest_ids, __Ehr__RemovePermissionRequest_ids + 3, _s); | ||
| 6255 | } | ||
| 6256 | |||
| 6257 | ::std::vector< ::std::string> | ||
| 6258 | Ehr::RemovePermissionRequest::ice_ids(const ::Ice::Current&) const | ||
| 6259 | { | ||
| 6260 | return ::std::vector< ::std::string>(&__Ehr__RemovePermissionRequest_ids[0], &__Ehr__RemovePermissionRequest_ids[3]); | ||
| 6261 | } | ||
| 6262 | |||
| 6263 | const ::std::string& | ||
| 6264 | Ehr::RemovePermissionRequest::ice_id(const ::Ice::Current&) const | ||
| 6265 | { | ||
| 6266 | return __Ehr__RemovePermissionRequest_ids[0]; | ||
| 6267 | } | ||
| 6268 | |||
| 6269 | const ::std::string& | ||
| 6270 | Ehr::RemovePermissionRequest::ice_staticId() | ||
| 6271 | { | ||
| 6272 | return __Ehr__RemovePermissionRequest_ids[0]; | ||
| 6273 | } | ||
| 6274 | |||
| 6275 | void | ||
| 6276 | Ehr::RemovePermissionRequest::__write(::IceInternal::BasicStream* __os) const | ||
| 6277 | { | ||
| 6278 | __os->writeTypeId(ice_staticId()); | ||
| 6279 | __os->startWriteSlice(); | ||
| 6280 | __os->write(documentId); | ||
| 6281 | __os->write(permissionId); | ||
| 6282 | __os->endWriteSlice(); | ||
| 6283 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 6284 | Request::__write(__os); | ||
| 6285 | #else | ||
| 6286 | ::Ehr::Request::__write(__os); | ||
| 6287 | #endif | ||
| 6288 | } | ||
| 6289 | |||
| 6290 | void | ||
| 6291 | Ehr::RemovePermissionRequest::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 6292 | { | ||
| 6293 | if(__rid) | ||
| 6294 | { | ||
| 6295 | ::std::string myId; | ||
| 6296 | __is->readTypeId(myId); | ||
| 6297 | } | ||
| 6298 | __is->startReadSlice(); | ||
| 6299 | __is->read(documentId); | ||
| 6300 | __is->read(permissionId); | ||
| 6301 | __is->endReadSlice(); | ||
| 6302 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 6303 | Request::__read(__is, true); | ||
| 6304 | #else | ||
| 6305 | ::Ehr::Request::__read(__is, true); | ||
| 6306 | #endif | ||
| 6307 | } | ||
| 6308 | |||
| 6309 | void | ||
| 6310 | Ehr::RemovePermissionRequest::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 6311 | { | ||
| 6312 | __outS->writeTypeId(ice_staticId()); | ||
| 6313 | __outS->startSlice(); | ||
| 6314 | __outS->writeLong(documentId); | ||
| 6315 | __outS->writeLong(permissionId); | ||
| 6316 | __outS->endSlice(); | ||
| 6317 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 6318 | Request::__write(__outS); | ||
| 6319 | #else | ||
| 6320 | ::Ehr::Request::__write(__outS); | ||
| 6321 | #endif | ||
| 6322 | } | ||
| 6323 | |||
| 6324 | void | ||
| 6325 | Ehr::RemovePermissionRequest::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 6326 | { | ||
| 6327 | if(__rid) | ||
| 6328 | { | ||
| 6329 | __inS->readTypeId(); | ||
| 6330 | } | ||
| 6331 | __inS->startSlice(); | ||
| 6332 | documentId = __inS->readLong(); | ||
| 6333 | permissionId = __inS->readLong(); | ||
| 6334 | __inS->endSlice(); | ||
| 6335 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 6336 | Request::__read(__inS, true); | ||
| 6337 | #else | ||
| 6338 | ::Ehr::Request::__read(__inS, true); | ||
| 6339 | #endif | ||
| 6340 | } | ||
| 6341 | |||
| 6342 | class __F__Ehr__RemovePermissionRequest : public ::Ice::ObjectFactory | ||
| 6343 | { | ||
| 6344 | public: | ||
| 6345 | |||
| 6346 | virtual ::Ice::ObjectPtr | ||
| 6347 | create(const ::std::string& type) | ||
| 6348 | { | ||
| 6349 | assert(type == ::Ehr::RemovePermissionRequest::ice_staticId()); | ||
| 6350 | return new ::Ehr::RemovePermissionRequest; | ||
| 6351 | } | ||
| 6352 | |||
| 6353 | virtual void | ||
| 6354 | destroy() | ||
| 6355 | { | ||
| 6356 | } | ||
| 6357 | }; | ||
| 6358 | |||
| 6359 | static ::Ice::ObjectFactoryPtr __F__Ehr__RemovePermissionRequest_Ptr = new __F__Ehr__RemovePermissionRequest; | ||
| 6360 | |||
| 6361 | const ::Ice::ObjectFactoryPtr& | ||
| 6362 | Ehr::RemovePermissionRequest::ice_factory() | ||
| 6363 | { | ||
| 6364 | return __F__Ehr__RemovePermissionRequest_Ptr; | ||
| 6365 | } | ||
| 6366 | |||
| 6367 | class __F__Ehr__RemovePermissionRequest__Init | ||
| 6368 | { | ||
| 6369 | public: | ||
| 6370 | |||
| 6371 | __F__Ehr__RemovePermissionRequest__Init() | ||
| 6372 | { | ||
| 6373 | ::IceInternal::factoryTable->addObjectFactory(::Ehr::RemovePermissionRequest::ice_staticId(), ::Ehr::RemovePermissionRequest::ice_factory()); | ||
| 6374 | } | ||
| 6375 | |||
| 6376 | ~__F__Ehr__RemovePermissionRequest__Init() | ||
| 6377 | { | ||
| 6378 | ::IceInternal::factoryTable->removeObjectFactory(::Ehr::RemovePermissionRequest::ice_staticId()); | ||
| 6379 | } | ||
| 6380 | }; | ||
| 6381 | |||
| 6382 | static __F__Ehr__RemovePermissionRequest__Init __F__Ehr__RemovePermissionRequest__i; | ||
| 6383 | |||
| 6384 | #ifdef __APPLE__ | ||
| 6385 | extern "C" { void __F__Ehr__RemovePermissionRequest__initializer() {} } | ||
| 6386 | #endif | ||
| 6387 | |||
| 6388 | void | ||
| 6389 | Ehr::__patch__RemovePermissionRequestPtr(void* __addr, ::Ice::ObjectPtr& v) | ||
| 6390 | { | ||
| 6391 | ::Ehr::RemovePermissionRequestPtr* p = static_cast< ::Ehr::RemovePermissionRequestPtr*>(__addr); | ||
| 6392 | assert(p); | ||
| 6393 | *p = ::Ehr::RemovePermissionRequestPtr::dynamicCast(v); | ||
| 6394 | if(v && !*p) | ||
| 6395 | { | ||
| 6396 | IceInternal::Ex::throwUOE(::Ehr::RemovePermissionRequest::ice_staticId(), v->ice_id()); | ||
| 6397 | } | ||
| 6398 | } | ||
| 6399 | |||
| 6400 | bool | ||
| 6401 | Ehr::operator==(const ::Ehr::RemovePermissionRequest& l, const ::Ehr::RemovePermissionRequest& r) | ||
| 6402 | { | ||
| 6403 | return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); | ||
| 6404 | } | ||
| 6405 | |||
| 6406 | bool | ||
| 6407 | Ehr::operator<(const ::Ehr::RemovePermissionRequest& l, const ::Ehr::RemovePermissionRequest& r) | ||
| 6408 | { | ||
| 6409 | return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); | ||
| 6410 | } | ||
| 6411 | |||
| 6412 | ::Ice::ObjectPtr | ||
| 6413 | Ehr::Provider::ice_clone() const | ||
| 6414 | { | ||
| 6415 | throw ::Ice::CloneNotImplementedException(__FILE__, __LINE__); | ||
| 6416 | return 0; // to avoid a warning with some compilers | ||
| 6417 | } | ||
| 6418 | |||
| 6419 | static const ::std::string __Ehr__Provider_ids[2] = | ||
| 6420 | { | ||
| 6421 | "::Ehr::Provider", | ||
| 6422 | "::Ice::Object" | ||
| 6423 | }; | ||
| 6424 | |||
| 6425 | bool | ||
| 6426 | Ehr::Provider::ice_isA(const ::std::string& _s, const ::Ice::Current&) const | ||
| 6427 | { | ||
| 6428 | return ::std::binary_search(__Ehr__Provider_ids, __Ehr__Provider_ids + 2, _s); | ||
| 6429 | } | ||
| 6430 | |||
| 6431 | ::std::vector< ::std::string> | ||
| 6432 | Ehr::Provider::ice_ids(const ::Ice::Current&) const | ||
| 6433 | { | ||
| 6434 | return ::std::vector< ::std::string>(&__Ehr__Provider_ids[0], &__Ehr__Provider_ids[2]); | ||
| 6435 | } | ||
| 6436 | |||
| 6437 | const ::std::string& | ||
| 6438 | Ehr::Provider::ice_id(const ::Ice::Current&) const | ||
| 6439 | { | ||
| 6440 | return __Ehr__Provider_ids[0]; | ||
| 6441 | } | ||
| 6442 | |||
| 6443 | const ::std::string& | ||
| 6444 | Ehr::Provider::ice_staticId() | ||
| 6445 | { | ||
| 6446 | return __Ehr__Provider_ids[0]; | ||
| 6447 | } | ||
| 6448 | |||
| 6449 | ::Ice::DispatchStatus | ||
| 6450 | Ehr::Provider::___createPrescription(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) | ||
| 6451 | { | ||
| 6452 | __checkMode(::Ice::Normal, __current.mode); | ||
| 6453 | ::IceInternal::BasicStream* __is = __inS.is(); | ||
| 6454 | __is->startReadEncaps(); | ||
| 6455 | ::Ehr::CreatePrescriptionRequestPtr request; | ||
| 6456 | ::Ehr::Signature requestorSignature; | ||
| 6457 | ::Ehr::Signature ownerSignature; | ||
| 6458 | __is->read(::Ehr::__patch__CreatePrescriptionRequestPtr, &request); | ||
| 6459 | requestorSignature.__read(__is); | ||
| 6460 | ownerSignature.__read(__is); | ||
| 6461 | __is->readPendingObjects(); | ||
| 6462 | __is->endReadEncaps(); | ||
| 6463 | ::IceInternal::BasicStream* __os = __inS.os(); | ||
| 6464 | try | ||
| 6465 | { | ||
| 6466 | createPrescription(request, requestorSignature, ownerSignature, __current); | ||
| 6467 | } | ||
| 6468 | catch(const ::Ehr::EhrException& __ex) | ||
| 6469 | { | ||
| 6470 | __os->write(__ex); | ||
| 6471 | return ::Ice::DispatchUserException; | ||
| 6472 | } | ||
| 6473 | return ::Ice::DispatchOK; | ||
| 6474 | } | ||
| 6475 | |||
| 6476 | ::Ice::DispatchStatus | ||
| 6477 | Ehr::Provider::___consumePrescription(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) | ||
| 6478 | { | ||
| 6479 | __checkMode(::Ice::Normal, __current.mode); | ||
| 6480 | ::IceInternal::BasicStream* __is = __inS.is(); | ||
| 6481 | __is->startReadEncaps(); | ||
| 6482 | ::Ehr::ConsumePrescriptionRequestPtr request; | ||
| 6483 | ::Ehr::Signature requestorSignature; | ||
| 6484 | ::Ehr::Signature ownerSignature; | ||
| 6485 | __is->read(::Ehr::__patch__ConsumePrescriptionRequestPtr, &request); | ||
| 6486 | requestorSignature.__read(__is); | ||
| 6487 | ownerSignature.__read(__is); | ||
| 6488 | __is->readPendingObjects(); | ||
| 6489 | __is->endReadEncaps(); | ||
| 6490 | ::IceInternal::BasicStream* __os = __inS.os(); | ||
| 6491 | try | ||
| 6492 | { | ||
| 6493 | consumePrescription(request, requestorSignature, ownerSignature, __current); | ||
| 6494 | } | ||
| 6495 | catch(const ::Ehr::EhrException& __ex) | ||
| 6496 | { | ||
| 6497 | __os->write(__ex); | ||
| 6498 | return ::Ice::DispatchUserException; | ||
| 6499 | } | ||
| 6500 | return ::Ice::DispatchOK; | ||
| 6501 | } | ||
| 6502 | |||
| 6503 | ::Ice::DispatchStatus | ||
| 6504 | Ehr::Provider::___listDocuments(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) | ||
| 6505 | { | ||
| 6506 | __checkMode(::Ice::Normal, __current.mode); | ||
| 6507 | ::IceInternal::BasicStream* __is = __inS.is(); | ||
| 6508 | __is->startReadEncaps(); | ||
| 6509 | ::Ehr::ListDocumentsRequestPtr request; | ||
| 6510 | ::Ehr::Signature requestorSignature; | ||
| 6511 | ::Ehr::Signature ownerSignature; | ||
| 6512 | __is->read(::Ehr::__patch__ListDocumentsRequestPtr, &request); | ||
| 6513 | requestorSignature.__read(__is); | ||
| 6514 | ownerSignature.__read(__is); | ||
| 6515 | __is->readPendingObjects(); | ||
| 6516 | __is->endReadEncaps(); | ||
| 6517 | ::IceInternal::BasicStream* __os = __inS.os(); | ||
| 6518 | try | ||
| 6519 | { | ||
| 6520 | ::Ehr::DocumentList __ret = listDocuments(request, requestorSignature, ownerSignature, __current); | ||
| 6521 | if(__ret.size() == 0) | ||
| 6522 | { | ||
| 6523 | __os->writeSize(0); | ||
| 6524 | } | ||
| 6525 | else | ||
| 6526 | { | ||
| 6527 | ::Ehr::__writeDocumentList(__os, &__ret[0], &__ret[0] + __ret.size()); | ||
| 6528 | } | ||
| 6529 | } | ||
| 6530 | catch(const ::Ehr::EhrException& __ex) | ||
| 6531 | { | ||
| 6532 | __os->write(__ex); | ||
| 6533 | return ::Ice::DispatchUserException; | ||
| 6534 | } | ||
| 6535 | return ::Ice::DispatchOK; | ||
| 6536 | } | ||
| 6537 | |||
| 6538 | ::Ice::DispatchStatus | ||
| 6539 | Ehr::Provider::___findDocuments(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) | ||
| 6540 | { | ||
| 6541 | __checkMode(::Ice::Normal, __current.mode); | ||
| 6542 | ::IceInternal::BasicStream* __is = __inS.is(); | ||
| 6543 | __is->startReadEncaps(); | ||
| 6544 | ::Ehr::FindDocumentsRequestPtr request; | ||
| 6545 | ::Ehr::Signature requestorSignature; | ||
| 6546 | ::Ehr::Signature ownerSignature; | ||
| 6547 | __is->read(::Ehr::__patch__FindDocumentsRequestPtr, &request); | ||
| 6548 | requestorSignature.__read(__is); | ||
| 6549 | ownerSignature.__read(__is); | ||
| 6550 | __is->readPendingObjects(); | ||
| 6551 | __is->endReadEncaps(); | ||
| 6552 | ::IceInternal::BasicStream* __os = __inS.os(); | ||
| 6553 | try | ||
| 6554 | { | ||
| 6555 | ::Ehr::DocumentList __ret = findDocuments(request, requestorSignature, ownerSignature, __current); | ||
| 6556 | if(__ret.size() == 0) | ||
| 6557 | { | ||
| 6558 | __os->writeSize(0); | ||
| 6559 | } | ||
| 6560 | else | ||
| 6561 | { | ||
| 6562 | ::Ehr::__writeDocumentList(__os, &__ret[0], &__ret[0] + __ret.size()); | ||
| 6563 | } | ||
| 6564 | } | ||
| 6565 | catch(const ::Ehr::EhrException& __ex) | ||
| 6566 | { | ||
| 6567 | __os->write(__ex); | ||
| 6568 | return ::Ice::DispatchUserException; | ||
| 6569 | } | ||
| 6570 | return ::Ice::DispatchOK; | ||
| 6571 | } | ||
| 6572 | |||
| 6573 | ::Ice::DispatchStatus | ||
| 6574 | Ehr::Provider::___setDefaultAccess(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) | ||
| 6575 | { | ||
| 6576 | __checkMode(::Ice::Normal, __current.mode); | ||
| 6577 | ::IceInternal::BasicStream* __is = __inS.is(); | ||
| 6578 | __is->startReadEncaps(); | ||
| 6579 | ::Ehr::SetDefaultAccessRequestPtr request; | ||
| 6580 | ::Ehr::Signature requestorSignature; | ||
| 6581 | __is->read(::Ehr::__patch__SetDefaultAccessRequestPtr, &request); | ||
| 6582 | requestorSignature.__read(__is); | ||
| 6583 | __is->readPendingObjects(); | ||
| 6584 | __is->endReadEncaps(); | ||
| 6585 | ::IceInternal::BasicStream* __os = __inS.os(); | ||
| 6586 | try | ||
| 6587 | { | ||
| 6588 | setDefaultAccess(request, requestorSignature, __current); | ||
| 6589 | } | ||
| 6590 | catch(const ::Ehr::EhrException& __ex) | ||
| 6591 | { | ||
| 6592 | __os->write(__ex); | ||
| 6593 | return ::Ice::DispatchUserException; | ||
| 6594 | } | ||
| 6595 | return ::Ice::DispatchOK; | ||
| 6596 | } | ||
| 6597 | |||
| 6598 | ::Ice::DispatchStatus | ||
| 6599 | Ehr::Provider::___createPermission(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) | ||
| 6600 | { | ||
| 6601 | __checkMode(::Ice::Normal, __current.mode); | ||
| 6602 | ::IceInternal::BasicStream* __is = __inS.is(); | ||
| 6603 | __is->startReadEncaps(); | ||
| 6604 | ::Ehr::CreatePermissionRequestPtr request; | ||
| 6605 | ::Ehr::Signature requestorSignature; | ||
| 6606 | __is->read(::Ehr::__patch__CreatePermissionRequestPtr, &request); | ||
| 6607 | requestorSignature.__read(__is); | ||
| 6608 | __is->readPendingObjects(); | ||
| 6609 | __is->endReadEncaps(); | ||
| 6610 | ::IceInternal::BasicStream* __os = __inS.os(); | ||
| 6611 | try | ||
| 6612 | { | ||
| 6613 | createPermission(request, requestorSignature, __current); | ||
| 6614 | } | ||
| 6615 | catch(const ::Ehr::EhrException& __ex) | ||
| 6616 | { | ||
| 6617 | __os->write(__ex); | ||
| 6618 | return ::Ice::DispatchUserException; | ||
| 6619 | } | ||
| 6620 | return ::Ice::DispatchOK; | ||
| 6621 | } | ||
| 6622 | |||
| 6623 | ::Ice::DispatchStatus | ||
| 6624 | Ehr::Provider::___listPermissions(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) | ||
| 6625 | { | ||
| 6626 | __checkMode(::Ice::Normal, __current.mode); | ||
| 6627 | ::IceInternal::BasicStream* __is = __inS.is(); | ||
| 6628 | __is->startReadEncaps(); | ||
| 6629 | ::Ehr::ListPermissionsRequestPtr request; | ||
| 6630 | ::Ehr::Signature requestorSignature; | ||
| 6631 | __is->read(::Ehr::__patch__ListPermissionsRequestPtr, &request); | ||
| 6632 | requestorSignature.__read(__is); | ||
| 6633 | __is->readPendingObjects(); | ||
| 6634 | __is->endReadEncaps(); | ||
| 6635 | ::IceInternal::BasicStream* __os = __inS.os(); | ||
| 6636 | try | ||
| 6637 | { | ||
| 6638 | ::Ehr::Permissions __ret = listPermissions(request, requestorSignature, __current); | ||
| 6639 | __ret.__write(__os); | ||
| 6640 | } | ||
| 6641 | catch(const ::Ehr::EhrException& __ex) | ||
| 6642 | { | ||
| 6643 | __os->write(__ex); | ||
| 6644 | return ::Ice::DispatchUserException; | ||
| 6645 | } | ||
| 6646 | return ::Ice::DispatchOK; | ||
| 6647 | } | ||
| 6648 | |||
| 6649 | ::Ice::DispatchStatus | ||
| 6650 | Ehr::Provider::___removePermission(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) | ||
| 6651 | { | ||
| 6652 | __checkMode(::Ice::Normal, __current.mode); | ||
| 6653 | ::IceInternal::BasicStream* __is = __inS.is(); | ||
| 6654 | __is->startReadEncaps(); | ||
| 6655 | ::Ehr::RemovePermissionRequestPtr request; | ||
| 6656 | ::Ehr::Signature requestorSignature; | ||
| 6657 | __is->read(::Ehr::__patch__RemovePermissionRequestPtr, &request); | ||
| 6658 | requestorSignature.__read(__is); | ||
| 6659 | __is->readPendingObjects(); | ||
| 6660 | __is->endReadEncaps(); | ||
| 6661 | ::IceInternal::BasicStream* __os = __inS.os(); | ||
| 6662 | try | ||
| 6663 | { | ||
| 6664 | removePermission(request, requestorSignature, __current); | ||
| 6665 | } | ||
| 6666 | catch(const ::Ehr::EhrException& __ex) | ||
| 6667 | { | ||
| 6668 | __os->write(__ex); | ||
| 6669 | return ::Ice::DispatchUserException; | ||
| 6670 | } | ||
| 6671 | return ::Ice::DispatchOK; | ||
| 6672 | } | ||
| 6673 | |||
| 6674 | static ::std::string __Ehr__Provider_all[] = | ||
| 6675 | { | ||
| 6676 | "consumePrescription", | ||
| 6677 | "createPermission", | ||
| 6678 | "createPrescription", | ||
| 6679 | "findDocuments", | ||
| 6680 | "ice_id", | ||
| 6681 | "ice_ids", | ||
| 6682 | "ice_isA", | ||
| 6683 | "ice_ping", | ||
| 6684 | "listDocuments", | ||
| 6685 | "listPermissions", | ||
| 6686 | "removePermission", | ||
| 6687 | "setDefaultAccess" | ||
| 6688 | }; | ||
| 6689 | |||
| 6690 | ::Ice::DispatchStatus | ||
| 6691 | Ehr::Provider::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current) | ||
| 6692 | { | ||
| 6693 | ::std::pair< ::std::string*, ::std::string*> r = ::std::equal_range(__Ehr__Provider_all, __Ehr__Provider_all + 12, current.operation); | ||
| 6694 | if(r.first == r.second) | ||
| 6695 | { | ||
| 6696 | throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation); | ||
| 6697 | } | ||
| 6698 | |||
| 6699 | switch(r.first - __Ehr__Provider_all) | ||
| 6700 | { | ||
| 6701 | case 0: | ||
| 6702 | { | ||
| 6703 | return ___consumePrescription(in, current); | ||
| 6704 | } | ||
| 6705 | case 1: | ||
| 6706 | { | ||
| 6707 | return ___createPermission(in, current); | ||
| 6708 | } | ||
| 6709 | case 2: | ||
| 6710 | { | ||
| 6711 | return ___createPrescription(in, current); | ||
| 6712 | } | ||
| 6713 | case 3: | ||
| 6714 | { | ||
| 6715 | return ___findDocuments(in, current); | ||
| 6716 | } | ||
| 6717 | case 4: | ||
| 6718 | { | ||
| 6719 | return ___ice_id(in, current); | ||
| 6720 | } | ||
| 6721 | case 5: | ||
| 6722 | { | ||
| 6723 | return ___ice_ids(in, current); | ||
| 6724 | } | ||
| 6725 | case 6: | ||
| 6726 | { | ||
| 6727 | return ___ice_isA(in, current); | ||
| 6728 | } | ||
| 6729 | case 7: | ||
| 6730 | { | ||
| 6731 | return ___ice_ping(in, current); | ||
| 6732 | } | ||
| 6733 | case 8: | ||
| 6734 | { | ||
| 6735 | return ___listDocuments(in, current); | ||
| 6736 | } | ||
| 6737 | case 9: | ||
| 6738 | { | ||
| 6739 | return ___listPermissions(in, current); | ||
| 6740 | } | ||
| 6741 | case 10: | ||
| 6742 | { | ||
| 6743 | return ___removePermission(in, current); | ||
| 6744 | } | ||
| 6745 | case 11: | ||
| 6746 | { | ||
| 6747 | return ___setDefaultAccess(in, current); | ||
| 6748 | } | ||
| 6749 | } | ||
| 6750 | |||
| 6751 | assert(false); | ||
| 6752 | throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation); | ||
| 6753 | } | ||
| 6754 | |||
| 6755 | void | ||
| 6756 | Ehr::Provider::__write(::IceInternal::BasicStream* __os) const | ||
| 6757 | { | ||
| 6758 | __os->writeTypeId(ice_staticId()); | ||
| 6759 | __os->startWriteSlice(); | ||
| 6760 | __os->endWriteSlice(); | ||
| 6761 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 6762 | Object::__write(__os); | ||
| 6763 | #else | ||
| 6764 | ::Ice::Object::__write(__os); | ||
| 6765 | #endif | ||
| 6766 | } | ||
| 6767 | |||
| 6768 | void | ||
| 6769 | Ehr::Provider::__read(::IceInternal::BasicStream* __is, bool __rid) | ||
| 6770 | { | ||
| 6771 | if(__rid) | ||
| 6772 | { | ||
| 6773 | ::std::string myId; | ||
| 6774 | __is->readTypeId(myId); | ||
| 6775 | } | ||
| 6776 | __is->startReadSlice(); | ||
| 6777 | __is->endReadSlice(); | ||
| 6778 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 6779 | Object::__read(__is, true); | ||
| 6780 | #else | ||
| 6781 | ::Ice::Object::__read(__is, true); | ||
| 6782 | #endif | ||
| 6783 | } | ||
| 6784 | |||
| 6785 | void | ||
| 6786 | Ehr::Provider::__write(const ::Ice::OutputStreamPtr& __outS) const | ||
| 6787 | { | ||
| 6788 | __outS->writeTypeId(ice_staticId()); | ||
| 6789 | __outS->startSlice(); | ||
| 6790 | __outS->endSlice(); | ||
| 6791 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 6792 | Object::__write(__outS); | ||
| 6793 | #else | ||
| 6794 | ::Ice::Object::__write(__outS); | ||
| 6795 | #endif | ||
| 6796 | } | ||
| 6797 | |||
| 6798 | void | ||
| 6799 | Ehr::Provider::__read(const ::Ice::InputStreamPtr& __inS, bool __rid) | ||
| 6800 | { | ||
| 6801 | if(__rid) | ||
| 6802 | { | ||
| 6803 | __inS->readTypeId(); | ||
| 6804 | } | ||
| 6805 | __inS->startSlice(); | ||
| 6806 | __inS->endSlice(); | ||
| 6807 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 6808 | Object::__read(__inS, true); | ||
| 6809 | #else | ||
| 6810 | ::Ice::Object::__read(__inS, true); | ||
| 6811 | #endif | ||
| 6812 | } | ||
| 6813 | |||
| 6814 | void | ||
| 6815 | Ehr::__patch__ProviderPtr(void* __addr, ::Ice::ObjectPtr& v) | ||
| 6816 | { | ||
| 6817 | ::Ehr::ProviderPtr* p = static_cast< ::Ehr::ProviderPtr*>(__addr); | ||
| 6818 | assert(p); | ||
| 6819 | *p = ::Ehr::ProviderPtr::dynamicCast(v); | ||
| 6820 | if(v && !*p) | ||
| 6821 | { | ||
| 6822 | IceInternal::Ex::throwUOE(::Ehr::Provider::ice_staticId(), v->ice_id()); | ||
| 6823 | } | ||
| 6824 | } | ||
| 6825 | |||
| 6826 | bool | ||
| 6827 | Ehr::operator==(const ::Ehr::Provider& l, const ::Ehr::Provider& r) | ||
| 6828 | { | ||
| 6829 | return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); | ||
| 6830 | } | ||
| 6831 | |||
| 6832 | bool | ||
| 6833 | Ehr::operator<(const ::Ehr::Provider& l, const ::Ehr::Provider& r) | ||
| 6834 | { | ||
| 6835 | return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); | ||
| 6836 | } | ||
diff --git a/task1/ehr.h b/task1/ehr.h new file mode 100644 index 0000000..7473373 --- /dev/null +++ b/task1/ehr.h | |||
| @@ -0,0 +1,4594 @@ | |||
| 1 | // ********************************************************************** | ||
| 2 | // | ||
| 3 | // Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. | ||
| 4 | // | ||
| 5 | // This copy of Ice is licensed to you under the terms described in the | ||
| 6 | // ICE_LICENSE file included in this distribution. | ||
| 7 | // | ||
| 8 | // ********************************************************************** | ||
| 9 | |||
| 10 | // Ice version 3.3.1 | ||
| 11 | // Generated from file `ehr.ice' | ||
| 12 | |||
| 13 | #ifndef __ehr_h__ | ||
| 14 | #define __ehr_h__ | ||
| 15 | |||
| 16 | #include <Ice/LocalObjectF.h> | ||
| 17 | #include <Ice/ProxyF.h> | ||
| 18 | #include <Ice/ObjectF.h> | ||
| 19 | #include <Ice/Exception.h> | ||
| 20 | #include <Ice/LocalObject.h> | ||
| 21 | #include <Ice/Proxy.h> | ||
| 22 | #include <Ice/Object.h> | ||
| 23 | #include <Ice/Outgoing.h> | ||
| 24 | #include <Ice/Incoming.h> | ||
| 25 | #include <Ice/Direct.h> | ||
| 26 | #include <Ice/UserExceptionFactory.h> | ||
| 27 | #include <Ice/FactoryTable.h> | ||
| 28 | #include <Ice/StreamF.h> | ||
| 29 | #include <Ice/UndefSysMacros.h> | ||
| 30 | |||
| 31 | #ifndef ICE_IGNORE_VERSION | ||
| 32 | # if ICE_INT_VERSION / 100 != 303 | ||
| 33 | # error Ice version mismatch! | ||
| 34 | # endif | ||
| 35 | # if ICE_INT_VERSION % 100 > 50 | ||
| 36 | # error Beta header file detected | ||
| 37 | # endif | ||
| 38 | # if ICE_INT_VERSION % 100 < 1 | ||
| 39 | # error Ice patch level mismatch! | ||
| 40 | # endif | ||
| 41 | #endif | ||
| 42 | |||
| 43 | namespace IceProxy | ||
| 44 | { | ||
| 45 | |||
| 46 | namespace Ehr | ||
| 47 | { | ||
| 48 | |||
| 49 | class Document; | ||
| 50 | |||
| 51 | class Prescription; | ||
| 52 | |||
| 53 | class ConsumedPrescription; | ||
| 54 | |||
| 55 | class Request; | ||
| 56 | |||
| 57 | class ThirdPartyRequest; | ||
| 58 | |||
| 59 | class CreatePrescriptionRequest; | ||
| 60 | |||
| 61 | class ConsumePrescriptionRequest; | ||
| 62 | |||
| 63 | class ListDocumentsRequest; | ||
| 64 | |||
| 65 | class FindDocumentsRequest; | ||
| 66 | |||
| 67 | class CreatePermissionRequest; | ||
| 68 | |||
| 69 | class SetDefaultAccessRequest; | ||
| 70 | |||
| 71 | class ListPermissionsRequest; | ||
| 72 | |||
| 73 | class RemovePermissionRequest; | ||
| 74 | |||
| 75 | class Provider; | ||
| 76 | |||
| 77 | } | ||
| 78 | |||
| 79 | } | ||
| 80 | |||
| 81 | namespace Ehr | ||
| 82 | { | ||
| 83 | |||
| 84 | class Document; | ||
| 85 | bool operator==(const Document&, const Document&); | ||
| 86 | bool operator<(const Document&, const Document&); | ||
| 87 | |||
| 88 | class Prescription; | ||
| 89 | bool operator==(const Prescription&, const Prescription&); | ||
| 90 | bool operator<(const Prescription&, const Prescription&); | ||
| 91 | |||
| 92 | class ConsumedPrescription; | ||
| 93 | bool operator==(const ConsumedPrescription&, const ConsumedPrescription&); | ||
| 94 | bool operator<(const ConsumedPrescription&, const ConsumedPrescription&); | ||
| 95 | |||
| 96 | class Request; | ||
| 97 | bool operator==(const Request&, const Request&); | ||
| 98 | bool operator<(const Request&, const Request&); | ||
| 99 | |||
| 100 | class ThirdPartyRequest; | ||
| 101 | bool operator==(const ThirdPartyRequest&, const ThirdPartyRequest&); | ||
| 102 | bool operator<(const ThirdPartyRequest&, const ThirdPartyRequest&); | ||
| 103 | |||
| 104 | class CreatePrescriptionRequest; | ||
| 105 | bool operator==(const CreatePrescriptionRequest&, const CreatePrescriptionRequest&); | ||
| 106 | bool operator<(const CreatePrescriptionRequest&, const CreatePrescriptionRequest&); | ||
| 107 | |||
| 108 | class ConsumePrescriptionRequest; | ||
| 109 | bool operator==(const ConsumePrescriptionRequest&, const ConsumePrescriptionRequest&); | ||
| 110 | bool operator<(const ConsumePrescriptionRequest&, const ConsumePrescriptionRequest&); | ||
| 111 | |||
| 112 | class ListDocumentsRequest; | ||
| 113 | bool operator==(const ListDocumentsRequest&, const ListDocumentsRequest&); | ||
| 114 | bool operator<(const ListDocumentsRequest&, const ListDocumentsRequest&); | ||
| 115 | |||
| 116 | class FindDocumentsRequest; | ||
| 117 | bool operator==(const FindDocumentsRequest&, const FindDocumentsRequest&); | ||
| 118 | bool operator<(const FindDocumentsRequest&, const FindDocumentsRequest&); | ||
| 119 | |||
| 120 | class CreatePermissionRequest; | ||
| 121 | bool operator==(const CreatePermissionRequest&, const CreatePermissionRequest&); | ||
| 122 | bool operator<(const CreatePermissionRequest&, const CreatePermissionRequest&); | ||
| 123 | |||
| 124 | class SetDefaultAccessRequest; | ||
| 125 | bool operator==(const SetDefaultAccessRequest&, const SetDefaultAccessRequest&); | ||
| 126 | bool operator<(const SetDefaultAccessRequest&, const SetDefaultAccessRequest&); | ||
| 127 | |||
| 128 | class ListPermissionsRequest; | ||
| 129 | bool operator==(const ListPermissionsRequest&, const ListPermissionsRequest&); | ||
| 130 | bool operator<(const ListPermissionsRequest&, const ListPermissionsRequest&); | ||
| 131 | |||
| 132 | class RemovePermissionRequest; | ||
| 133 | bool operator==(const RemovePermissionRequest&, const RemovePermissionRequest&); | ||
| 134 | bool operator<(const RemovePermissionRequest&, const RemovePermissionRequest&); | ||
| 135 | |||
| 136 | class Provider; | ||
| 137 | bool operator==(const Provider&, const Provider&); | ||
| 138 | bool operator<(const Provider&, const Provider&); | ||
| 139 | |||
| 140 | } | ||
| 141 | |||
| 142 | namespace IceInternal | ||
| 143 | { | ||
| 144 | |||
| 145 | ::Ice::Object* upCast(::Ehr::Document*); | ||
| 146 | ::IceProxy::Ice::Object* upCast(::IceProxy::Ehr::Document*); | ||
| 147 | |||
| 148 | ::Ice::Object* upCast(::Ehr::Prescription*); | ||
| 149 | ::IceProxy::Ice::Object* upCast(::IceProxy::Ehr::Prescription*); | ||
| 150 | |||
| 151 | ::Ice::Object* upCast(::Ehr::ConsumedPrescription*); | ||
| 152 | ::IceProxy::Ice::Object* upCast(::IceProxy::Ehr::ConsumedPrescription*); | ||
| 153 | |||
| 154 | ::Ice::Object* upCast(::Ehr::Request*); | ||
| 155 | ::IceProxy::Ice::Object* upCast(::IceProxy::Ehr::Request*); | ||
| 156 | |||
| 157 | ::Ice::Object* upCast(::Ehr::ThirdPartyRequest*); | ||
| 158 | ::IceProxy::Ice::Object* upCast(::IceProxy::Ehr::ThirdPartyRequest*); | ||
| 159 | |||
| 160 | ::Ice::Object* upCast(::Ehr::CreatePrescriptionRequest*); | ||
| 161 | ::IceProxy::Ice::Object* upCast(::IceProxy::Ehr::CreatePrescriptionRequest*); | ||
| 162 | |||
| 163 | ::Ice::Object* upCast(::Ehr::ConsumePrescriptionRequest*); | ||
| 164 | ::IceProxy::Ice::Object* upCast(::IceProxy::Ehr::ConsumePrescriptionRequest*); | ||
| 165 | |||
| 166 | ::Ice::Object* upCast(::Ehr::ListDocumentsRequest*); | ||
| 167 | ::IceProxy::Ice::Object* upCast(::IceProxy::Ehr::ListDocumentsRequest*); | ||
| 168 | |||
| 169 | ::Ice::Object* upCast(::Ehr::FindDocumentsRequest*); | ||
| 170 | ::IceProxy::Ice::Object* upCast(::IceProxy::Ehr::FindDocumentsRequest*); | ||
| 171 | |||
| 172 | ::Ice::Object* upCast(::Ehr::CreatePermissionRequest*); | ||
| 173 | ::IceProxy::Ice::Object* upCast(::IceProxy::Ehr::CreatePermissionRequest*); | ||
| 174 | |||
| 175 | ::Ice::Object* upCast(::Ehr::SetDefaultAccessRequest*); | ||
| 176 | ::IceProxy::Ice::Object* upCast(::IceProxy::Ehr::SetDefaultAccessRequest*); | ||
| 177 | |||
| 178 | ::Ice::Object* upCast(::Ehr::ListPermissionsRequest*); | ||
| 179 | ::IceProxy::Ice::Object* upCast(::IceProxy::Ehr::ListPermissionsRequest*); | ||
| 180 | |||
| 181 | ::Ice::Object* upCast(::Ehr::RemovePermissionRequest*); | ||
| 182 | ::IceProxy::Ice::Object* upCast(::IceProxy::Ehr::RemovePermissionRequest*); | ||
| 183 | |||
| 184 | ::Ice::Object* upCast(::Ehr::Provider*); | ||
| 185 | ::IceProxy::Ice::Object* upCast(::IceProxy::Ehr::Provider*); | ||
| 186 | |||
| 187 | } | ||
| 188 | |||
| 189 | namespace Ehr | ||
| 190 | { | ||
| 191 | |||
| 192 | typedef ::IceInternal::Handle< ::Ehr::Document> DocumentPtr; | ||
| 193 | typedef ::IceInternal::ProxyHandle< ::IceProxy::Ehr::Document> DocumentPrx; | ||
| 194 | |||
| 195 | void __read(::IceInternal::BasicStream*, DocumentPrx&); | ||
| 196 | void __patch__DocumentPtr(void*, ::Ice::ObjectPtr&); | ||
| 197 | |||
| 198 | void ice_writeDocumentPrx(const ::Ice::OutputStreamPtr&, const DocumentPrx&); | ||
| 199 | void ice_readDocumentPrx(const ::Ice::InputStreamPtr&, DocumentPrx&); | ||
| 200 | void ice_writeDocument(const ::Ice::OutputStreamPtr&, const DocumentPtr&); | ||
| 201 | void ice_readDocument(const ::Ice::InputStreamPtr&, DocumentPtr&); | ||
| 202 | |||
| 203 | typedef ::IceInternal::Handle< ::Ehr::Prescription> PrescriptionPtr; | ||
| 204 | typedef ::IceInternal::ProxyHandle< ::IceProxy::Ehr::Prescription> PrescriptionPrx; | ||
| 205 | |||
| 206 | void __read(::IceInternal::BasicStream*, PrescriptionPrx&); | ||
| 207 | void __patch__PrescriptionPtr(void*, ::Ice::ObjectPtr&); | ||
| 208 | |||
| 209 | void ice_writePrescriptionPrx(const ::Ice::OutputStreamPtr&, const PrescriptionPrx&); | ||
| 210 | void ice_readPrescriptionPrx(const ::Ice::InputStreamPtr&, PrescriptionPrx&); | ||
| 211 | void ice_writePrescription(const ::Ice::OutputStreamPtr&, const PrescriptionPtr&); | ||
| 212 | void ice_readPrescription(const ::Ice::InputStreamPtr&, PrescriptionPtr&); | ||
| 213 | |||
| 214 | typedef ::IceInternal::Handle< ::Ehr::ConsumedPrescription> ConsumedPrescriptionPtr; | ||
| 215 | typedef ::IceInternal::ProxyHandle< ::IceProxy::Ehr::ConsumedPrescription> ConsumedPrescriptionPrx; | ||
| 216 | |||
| 217 | void __read(::IceInternal::BasicStream*, ConsumedPrescriptionPrx&); | ||
| 218 | void __patch__ConsumedPrescriptionPtr(void*, ::Ice::ObjectPtr&); | ||
| 219 | |||
| 220 | void ice_writeConsumedPrescriptionPrx(const ::Ice::OutputStreamPtr&, const ConsumedPrescriptionPrx&); | ||
| 221 | void ice_readConsumedPrescriptionPrx(const ::Ice::InputStreamPtr&, ConsumedPrescriptionPrx&); | ||
| 222 | void ice_writeConsumedPrescription(const ::Ice::OutputStreamPtr&, const ConsumedPrescriptionPtr&); | ||
| 223 | void ice_readConsumedPrescription(const ::Ice::InputStreamPtr&, ConsumedPrescriptionPtr&); | ||
| 224 | |||
| 225 | typedef ::IceInternal::Handle< ::Ehr::Request> RequestPtr; | ||
| 226 | typedef ::IceInternal::ProxyHandle< ::IceProxy::Ehr::Request> RequestPrx; | ||
| 227 | |||
| 228 | void __read(::IceInternal::BasicStream*, RequestPrx&); | ||
| 229 | void __patch__RequestPtr(void*, ::Ice::ObjectPtr&); | ||
| 230 | |||
| 231 | void ice_writeRequestPrx(const ::Ice::OutputStreamPtr&, const RequestPrx&); | ||
| 232 | void ice_readRequestPrx(const ::Ice::InputStreamPtr&, RequestPrx&); | ||
| 233 | void ice_writeRequest(const ::Ice::OutputStreamPtr&, const RequestPtr&); | ||
| 234 | void ice_readRequest(const ::Ice::InputStreamPtr&, RequestPtr&); | ||
| 235 | |||
| 236 | typedef ::IceInternal::Handle< ::Ehr::ThirdPartyRequest> ThirdPartyRequestPtr; | ||
| 237 | typedef ::IceInternal::ProxyHandle< ::IceProxy::Ehr::ThirdPartyRequest> ThirdPartyRequestPrx; | ||
| 238 | |||
| 239 | void __read(::IceInternal::BasicStream*, ThirdPartyRequestPrx&); | ||
| 240 | void __patch__ThirdPartyRequestPtr(void*, ::Ice::ObjectPtr&); | ||
| 241 | |||
| 242 | void ice_writeThirdPartyRequestPrx(const ::Ice::OutputStreamPtr&, const ThirdPartyRequestPrx&); | ||
| 243 | void ice_readThirdPartyRequestPrx(const ::Ice::InputStreamPtr&, ThirdPartyRequestPrx&); | ||
| 244 | void ice_writeThirdPartyRequest(const ::Ice::OutputStreamPtr&, const ThirdPartyRequestPtr&); | ||
| 245 | void ice_readThirdPartyRequest(const ::Ice::InputStreamPtr&, ThirdPartyRequestPtr&); | ||
| 246 | |||
| 247 | typedef ::IceInternal::Handle< ::Ehr::CreatePrescriptionRequest> CreatePrescriptionRequestPtr; | ||
| 248 | typedef ::IceInternal::ProxyHandle< ::IceProxy::Ehr::CreatePrescriptionRequest> CreatePrescriptionRequestPrx; | ||
| 249 | |||
| 250 | void __read(::IceInternal::BasicStream*, CreatePrescriptionRequestPrx&); | ||
| 251 | void __patch__CreatePrescriptionRequestPtr(void*, ::Ice::ObjectPtr&); | ||
| 252 | |||
| 253 | void ice_writeCreatePrescriptionRequestPrx(const ::Ice::OutputStreamPtr&, const CreatePrescriptionRequestPrx&); | ||
| 254 | void ice_readCreatePrescriptionRequestPrx(const ::Ice::InputStreamPtr&, CreatePrescriptionRequestPrx&); | ||
| 255 | void ice_writeCreatePrescriptionRequest(const ::Ice::OutputStreamPtr&, const CreatePrescriptionRequestPtr&); | ||
| 256 | void ice_readCreatePrescriptionRequest(const ::Ice::InputStreamPtr&, CreatePrescriptionRequestPtr&); | ||
| 257 | |||
| 258 | typedef ::IceInternal::Handle< ::Ehr::ConsumePrescriptionRequest> ConsumePrescriptionRequestPtr; | ||
| 259 | typedef ::IceInternal::ProxyHandle< ::IceProxy::Ehr::ConsumePrescriptionRequest> ConsumePrescriptionRequestPrx; | ||
| 260 | |||
| 261 | void __read(::IceInternal::BasicStream*, ConsumePrescriptionRequestPrx&); | ||
| 262 | void __patch__ConsumePrescriptionRequestPtr(void*, ::Ice::ObjectPtr&); | ||
| 263 | |||
| 264 | void ice_writeConsumePrescriptionRequestPrx(const ::Ice::OutputStreamPtr&, const ConsumePrescriptionRequestPrx&); | ||
| 265 | void ice_readConsumePrescriptionRequestPrx(const ::Ice::InputStreamPtr&, ConsumePrescriptionRequestPrx&); | ||
| 266 | void ice_writeConsumePrescriptionRequest(const ::Ice::OutputStreamPtr&, const ConsumePrescriptionRequestPtr&); | ||
| 267 | void ice_readConsumePrescriptionRequest(const ::Ice::InputStreamPtr&, ConsumePrescriptionRequestPtr&); | ||
| 268 | |||
| 269 | typedef ::IceInternal::Handle< ::Ehr::ListDocumentsRequest> ListDocumentsRequestPtr; | ||
| 270 | typedef ::IceInternal::ProxyHandle< ::IceProxy::Ehr::ListDocumentsRequest> ListDocumentsRequestPrx; | ||
| 271 | |||
| 272 | void __read(::IceInternal::BasicStream*, ListDocumentsRequestPrx&); | ||
| 273 | void __patch__ListDocumentsRequestPtr(void*, ::Ice::ObjectPtr&); | ||
| 274 | |||
| 275 | void ice_writeListDocumentsRequestPrx(const ::Ice::OutputStreamPtr&, const ListDocumentsRequestPrx&); | ||
| 276 | void ice_readListDocumentsRequestPrx(const ::Ice::InputStreamPtr&, ListDocumentsRequestPrx&); | ||
| 277 | void ice_writeListDocumentsRequest(const ::Ice::OutputStreamPtr&, const ListDocumentsRequestPtr&); | ||
| 278 | void ice_readListDocumentsRequest(const ::Ice::InputStreamPtr&, ListDocumentsRequestPtr&); | ||
| 279 | |||
| 280 | typedef ::IceInternal::Handle< ::Ehr::FindDocumentsRequest> FindDocumentsRequestPtr; | ||
| 281 | typedef ::IceInternal::ProxyHandle< ::IceProxy::Ehr::FindDocumentsRequest> FindDocumentsRequestPrx; | ||
| 282 | |||
| 283 | void __read(::IceInternal::BasicStream*, FindDocumentsRequestPrx&); | ||
| 284 | void __patch__FindDocumentsRequestPtr(void*, ::Ice::ObjectPtr&); | ||
| 285 | |||
| 286 | void ice_writeFindDocumentsRequestPrx(const ::Ice::OutputStreamPtr&, const FindDocumentsRequestPrx&); | ||
| 287 | void ice_readFindDocumentsRequestPrx(const ::Ice::InputStreamPtr&, FindDocumentsRequestPrx&); | ||
| 288 | void ice_writeFindDocumentsRequest(const ::Ice::OutputStreamPtr&, const FindDocumentsRequestPtr&); | ||
| 289 | void ice_readFindDocumentsRequest(const ::Ice::InputStreamPtr&, FindDocumentsRequestPtr&); | ||
| 290 | |||
| 291 | typedef ::IceInternal::Handle< ::Ehr::CreatePermissionRequest> CreatePermissionRequestPtr; | ||
| 292 | typedef ::IceInternal::ProxyHandle< ::IceProxy::Ehr::CreatePermissionRequest> CreatePermissionRequestPrx; | ||
| 293 | |||
| 294 | void __read(::IceInternal::BasicStream*, CreatePermissionRequestPrx&); | ||
| 295 | void __patch__CreatePermissionRequestPtr(void*, ::Ice::ObjectPtr&); | ||
| 296 | |||
| 297 | void ice_writeCreatePermissionRequestPrx(const ::Ice::OutputStreamPtr&, const CreatePermissionRequestPrx&); | ||
| 298 | void ice_readCreatePermissionRequestPrx(const ::Ice::InputStreamPtr&, CreatePermissionRequestPrx&); | ||
| 299 | void ice_writeCreatePermissionRequest(const ::Ice::OutputStreamPtr&, const CreatePermissionRequestPtr&); | ||
| 300 | void ice_readCreatePermissionRequest(const ::Ice::InputStreamPtr&, CreatePermissionRequestPtr&); | ||
| 301 | |||
| 302 | typedef ::IceInternal::Handle< ::Ehr::SetDefaultAccessRequest> SetDefaultAccessRequestPtr; | ||
| 303 | typedef ::IceInternal::ProxyHandle< ::IceProxy::Ehr::SetDefaultAccessRequest> SetDefaultAccessRequestPrx; | ||
| 304 | |||
| 305 | void __read(::IceInternal::BasicStream*, SetDefaultAccessRequestPrx&); | ||
| 306 | void __patch__SetDefaultAccessRequestPtr(void*, ::Ice::ObjectPtr&); | ||
| 307 | |||
| 308 | void ice_writeSetDefaultAccessRequestPrx(const ::Ice::OutputStreamPtr&, const SetDefaultAccessRequestPrx&); | ||
| 309 | void ice_readSetDefaultAccessRequestPrx(const ::Ice::InputStreamPtr&, SetDefaultAccessRequestPrx&); | ||
| 310 | void ice_writeSetDefaultAccessRequest(const ::Ice::OutputStreamPtr&, const SetDefaultAccessRequestPtr&); | ||
| 311 | void ice_readSetDefaultAccessRequest(const ::Ice::InputStreamPtr&, SetDefaultAccessRequestPtr&); | ||
| 312 | |||
| 313 | typedef ::IceInternal::Handle< ::Ehr::ListPermissionsRequest> ListPermissionsRequestPtr; | ||
| 314 | typedef ::IceInternal::ProxyHandle< ::IceProxy::Ehr::ListPermissionsRequest> ListPermissionsRequestPrx; | ||
| 315 | |||
| 316 | void __read(::IceInternal::BasicStream*, ListPermissionsRequestPrx&); | ||
| 317 | void __patch__ListPermissionsRequestPtr(void*, ::Ice::ObjectPtr&); | ||
| 318 | |||
| 319 | void ice_writeListPermissionsRequestPrx(const ::Ice::OutputStreamPtr&, const ListPermissionsRequestPrx&); | ||
| 320 | void ice_readListPermissionsRequestPrx(const ::Ice::InputStreamPtr&, ListPermissionsRequestPrx&); | ||
| 321 | void ice_writeListPermissionsRequest(const ::Ice::OutputStreamPtr&, const ListPermissionsRequestPtr&); | ||
| 322 | void ice_readListPermissionsRequest(const ::Ice::InputStreamPtr&, ListPermissionsRequestPtr&); | ||
| 323 | |||
| 324 | typedef ::IceInternal::Handle< ::Ehr::RemovePermissionRequest> RemovePermissionRequestPtr; | ||
| 325 | typedef ::IceInternal::ProxyHandle< ::IceProxy::Ehr::RemovePermissionRequest> RemovePermissionRequestPrx; | ||
| 326 | |||
| 327 | void __read(::IceInternal::BasicStream*, RemovePermissionRequestPrx&); | ||
| 328 | void __patch__RemovePermissionRequestPtr(void*, ::Ice::ObjectPtr&); | ||
| 329 | |||
| 330 | void ice_writeRemovePermissionRequestPrx(const ::Ice::OutputStreamPtr&, const RemovePermissionRequestPrx&); | ||
| 331 | void ice_readRemovePermissionRequestPrx(const ::Ice::InputStreamPtr&, RemovePermissionRequestPrx&); | ||
| 332 | void ice_writeRemovePermissionRequest(const ::Ice::OutputStreamPtr&, const RemovePermissionRequestPtr&); | ||
| 333 | void ice_readRemovePermissionRequest(const ::Ice::InputStreamPtr&, RemovePermissionRequestPtr&); | ||
| 334 | |||
| 335 | typedef ::IceInternal::Handle< ::Ehr::Provider> ProviderPtr; | ||
| 336 | typedef ::IceInternal::ProxyHandle< ::IceProxy::Ehr::Provider> ProviderPrx; | ||
| 337 | |||
| 338 | void __read(::IceInternal::BasicStream*, ProviderPrx&); | ||
| 339 | void __patch__ProviderPtr(void*, ::Ice::ObjectPtr&); | ||
| 340 | |||
| 341 | void ice_writeProviderPrx(const ::Ice::OutputStreamPtr&, const ProviderPrx&); | ||
| 342 | void ice_readProviderPrx(const ::Ice::InputStreamPtr&, ProviderPrx&); | ||
| 343 | void ice_writeProvider(const ::Ice::OutputStreamPtr&, const ProviderPtr&); | ||
| 344 | void ice_readProvider(const ::Ice::InputStreamPtr&, ProviderPtr&); | ||
| 345 | |||
| 346 | } | ||
| 347 | |||
| 348 | namespace Ehr | ||
| 349 | { | ||
| 350 | |||
| 351 | typedef ::std::vector< ::Ice::Byte> ByteSeq; | ||
| 352 | |||
| 353 | class EhrException : public ::Ice::UserException | ||
| 354 | { | ||
| 355 | public: | ||
| 356 | |||
| 357 | EhrException() {} | ||
| 358 | explicit EhrException(const ::std::string&); | ||
| 359 | virtual ~EhrException() throw(); | ||
| 360 | |||
| 361 | virtual ::std::string ice_name() const; | ||
| 362 | virtual ::Ice::Exception* ice_clone() const; | ||
| 363 | virtual void ice_throw() const; | ||
| 364 | |||
| 365 | static const ::IceInternal::UserExceptionFactoryPtr& ice_factory(); | ||
| 366 | |||
| 367 | ::std::string what; | ||
| 368 | |||
| 369 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 370 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 371 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 372 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 373 | }; | ||
| 374 | |||
| 375 | static EhrException __EhrException_init; | ||
| 376 | |||
| 377 | class InvalidRequestException : public ::Ehr::EhrException | ||
| 378 | { | ||
| 379 | public: | ||
| 380 | |||
| 381 | InvalidRequestException() {} | ||
| 382 | explicit InvalidRequestException(const ::std::string&); | ||
| 383 | virtual ~InvalidRequestException() throw(); | ||
| 384 | |||
| 385 | virtual ::std::string ice_name() const; | ||
| 386 | virtual ::Ice::Exception* ice_clone() const; | ||
| 387 | virtual void ice_throw() const; | ||
| 388 | |||
| 389 | static const ::IceInternal::UserExceptionFactoryPtr& ice_factory(); | ||
| 390 | |||
| 391 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 392 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 393 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 394 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 395 | }; | ||
| 396 | |||
| 397 | class InvalidAccountException : public ::Ehr::InvalidRequestException | ||
| 398 | { | ||
| 399 | public: | ||
| 400 | |||
| 401 | InvalidAccountException() {} | ||
| 402 | explicit InvalidAccountException(const ::std::string&); | ||
| 403 | virtual ~InvalidAccountException() throw(); | ||
| 404 | |||
| 405 | virtual ::std::string ice_name() const; | ||
| 406 | virtual ::Ice::Exception* ice_clone() const; | ||
| 407 | virtual void ice_throw() const; | ||
| 408 | |||
| 409 | static const ::IceInternal::UserExceptionFactoryPtr& ice_factory(); | ||
| 410 | |||
| 411 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 412 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 413 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 414 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 415 | }; | ||
| 416 | |||
| 417 | class SignatureException : public ::Ehr::EhrException | ||
| 418 | { | ||
| 419 | public: | ||
| 420 | |||
| 421 | SignatureException() {} | ||
| 422 | explicit SignatureException(const ::std::string&); | ||
| 423 | virtual ~SignatureException() throw(); | ||
| 424 | |||
| 425 | virtual ::std::string ice_name() const; | ||
| 426 | virtual ::Ice::Exception* ice_clone() const; | ||
| 427 | virtual void ice_throw() const; | ||
| 428 | |||
| 429 | static const ::IceInternal::UserExceptionFactoryPtr& ice_factory(); | ||
| 430 | |||
| 431 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 432 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 433 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 434 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 435 | }; | ||
| 436 | |||
| 437 | class PermissionDeniedException : public ::Ehr::EhrException | ||
| 438 | { | ||
| 439 | public: | ||
| 440 | |||
| 441 | PermissionDeniedException() {} | ||
| 442 | explicit PermissionDeniedException(const ::std::string&); | ||
| 443 | virtual ~PermissionDeniedException() throw(); | ||
| 444 | |||
| 445 | virtual ::std::string ice_name() const; | ||
| 446 | virtual ::Ice::Exception* ice_clone() const; | ||
| 447 | virtual void ice_throw() const; | ||
| 448 | |||
| 449 | static const ::IceInternal::UserExceptionFactoryPtr& ice_factory(); | ||
| 450 | |||
| 451 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 452 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 453 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 454 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 455 | }; | ||
| 456 | |||
| 457 | struct AccountIdentifier | ||
| 458 | { | ||
| 459 | ::std::string user; | ||
| 460 | ::std::string provider; | ||
| 461 | |||
| 462 | bool operator==(const AccountIdentifier&) const; | ||
| 463 | bool operator<(const AccountIdentifier&) const; | ||
| 464 | bool operator!=(const AccountIdentifier& __rhs) const | ||
| 465 | { | ||
| 466 | return !operator==(__rhs); | ||
| 467 | } | ||
| 468 | bool operator<=(const AccountIdentifier& __rhs) const | ||
| 469 | { | ||
| 470 | return operator<(__rhs) || operator==(__rhs); | ||
| 471 | } | ||
| 472 | bool operator>(const AccountIdentifier& __rhs) const | ||
| 473 | { | ||
| 474 | return !operator<(__rhs) && !operator==(__rhs); | ||
| 475 | } | ||
| 476 | bool operator>=(const AccountIdentifier& __rhs) const | ||
| 477 | { | ||
| 478 | return !operator<(__rhs); | ||
| 479 | } | ||
| 480 | |||
| 481 | void __write(::IceInternal::BasicStream*) const; | ||
| 482 | void __read(::IceInternal::BasicStream*); | ||
| 483 | |||
| 484 | void ice_write(const ::Ice::OutputStreamPtr&) const; | ||
| 485 | void ice_read(const ::Ice::InputStreamPtr&); | ||
| 486 | }; | ||
| 487 | |||
| 488 | void ice_writeAccountIdentifier(const ::Ice::OutputStreamPtr&, const AccountIdentifier&); | ||
| 489 | void ice_readAccountIdentifier(const ::Ice::InputStreamPtr&, AccountIdentifier&); | ||
| 490 | |||
| 491 | enum DocumentType | ||
| 492 | { | ||
| 493 | DOCANY, | ||
| 494 | DOCPRESCRIPTION, | ||
| 495 | DOCCONSUMEDPRESCRIPTION | ||
| 496 | }; | ||
| 497 | |||
| 498 | void __write(::IceInternal::BasicStream*, DocumentType); | ||
| 499 | void __read(::IceInternal::BasicStream*, DocumentType&); | ||
| 500 | |||
| 501 | void ice_writeDocumentType(const ::Ice::OutputStreamPtr&, DocumentType); | ||
| 502 | void ice_readDocumentType(const ::Ice::InputStreamPtr&, DocumentType&); | ||
| 503 | |||
| 504 | struct Signature | ||
| 505 | { | ||
| 506 | ::Ehr::ByteSeq data; | ||
| 507 | |||
| 508 | bool operator==(const Signature&) const; | ||
| 509 | bool operator<(const Signature&) const; | ||
| 510 | bool operator!=(const Signature& __rhs) const | ||
| 511 | { | ||
| 512 | return !operator==(__rhs); | ||
| 513 | } | ||
| 514 | bool operator<=(const Signature& __rhs) const | ||
| 515 | { | ||
| 516 | return operator<(__rhs) || operator==(__rhs); | ||
| 517 | } | ||
| 518 | bool operator>(const Signature& __rhs) const | ||
| 519 | { | ||
| 520 | return !operator<(__rhs) && !operator==(__rhs); | ||
| 521 | } | ||
| 522 | bool operator>=(const Signature& __rhs) const | ||
| 523 | { | ||
| 524 | return !operator<(__rhs); | ||
| 525 | } | ||
| 526 | |||
| 527 | void __write(::IceInternal::BasicStream*) const; | ||
| 528 | void __read(::IceInternal::BasicStream*); | ||
| 529 | |||
| 530 | void ice_write(const ::Ice::OutputStreamPtr&) const; | ||
| 531 | void ice_read(const ::Ice::InputStreamPtr&); | ||
| 532 | }; | ||
| 533 | |||
| 534 | void ice_writeSignature(const ::Ice::OutputStreamPtr&, const Signature&); | ||
| 535 | void ice_readSignature(const ::Ice::InputStreamPtr&, Signature&); | ||
| 536 | |||
| 537 | struct Timestamp | ||
| 538 | { | ||
| 539 | ::Ice::Long msecs; | ||
| 540 | |||
| 541 | bool operator==(const Timestamp&) const; | ||
| 542 | bool operator<(const Timestamp&) const; | ||
| 543 | bool operator!=(const Timestamp& __rhs) const | ||
| 544 | { | ||
| 545 | return !operator==(__rhs); | ||
| 546 | } | ||
| 547 | bool operator<=(const Timestamp& __rhs) const | ||
| 548 | { | ||
| 549 | return operator<(__rhs) || operator==(__rhs); | ||
| 550 | } | ||
| 551 | bool operator>(const Timestamp& __rhs) const | ||
| 552 | { | ||
| 553 | return !operator<(__rhs) && !operator==(__rhs); | ||
| 554 | } | ||
| 555 | bool operator>=(const Timestamp& __rhs) const | ||
| 556 | { | ||
| 557 | return !operator<(__rhs); | ||
| 558 | } | ||
| 559 | |||
| 560 | void __write(::IceInternal::BasicStream*) const; | ||
| 561 | void __read(::IceInternal::BasicStream*); | ||
| 562 | |||
| 563 | void ice_write(const ::Ice::OutputStreamPtr&) const; | ||
| 564 | void ice_read(const ::Ice::InputStreamPtr&); | ||
| 565 | }; | ||
| 566 | |||
| 567 | void ice_writeTimestamp(const ::Ice::OutputStreamPtr&, const Timestamp&); | ||
| 568 | void ice_readTimestamp(const ::Ice::InputStreamPtr&, Timestamp&); | ||
| 569 | |||
| 570 | struct Date | ||
| 571 | { | ||
| 572 | ::Ice::Byte day; | ||
| 573 | ::Ice::Byte month; | ||
| 574 | ::Ice::Short year; | ||
| 575 | |||
| 576 | bool operator==(const Date&) const; | ||
| 577 | bool operator<(const Date&) const; | ||
| 578 | bool operator!=(const Date& __rhs) const | ||
| 579 | { | ||
| 580 | return !operator==(__rhs); | ||
| 581 | } | ||
| 582 | bool operator<=(const Date& __rhs) const | ||
| 583 | { | ||
| 584 | return operator<(__rhs) || operator==(__rhs); | ||
| 585 | } | ||
| 586 | bool operator>(const Date& __rhs) const | ||
| 587 | { | ||
| 588 | return !operator<(__rhs) && !operator==(__rhs); | ||
| 589 | } | ||
| 590 | bool operator>=(const Date& __rhs) const | ||
| 591 | { | ||
| 592 | return !operator<(__rhs); | ||
| 593 | } | ||
| 594 | |||
| 595 | void __write(::IceInternal::BasicStream*) const; | ||
| 596 | void __read(::IceInternal::BasicStream*); | ||
| 597 | |||
| 598 | void ice_write(const ::Ice::OutputStreamPtr&) const; | ||
| 599 | void ice_read(const ::Ice::InputStreamPtr&); | ||
| 600 | }; | ||
| 601 | |||
| 602 | void ice_writeDate(const ::Ice::OutputStreamPtr&, const Date&); | ||
| 603 | void ice_readDate(const ::Ice::InputStreamPtr&, Date&); | ||
| 604 | |||
| 605 | enum AccessType | ||
| 606 | { | ||
| 607 | ALLOW, | ||
| 608 | DENY | ||
| 609 | }; | ||
| 610 | |||
| 611 | void __write(::IceInternal::BasicStream*, AccessType); | ||
| 612 | void __read(::IceInternal::BasicStream*, AccessType&); | ||
| 613 | |||
| 614 | void ice_writeAccessType(const ::Ice::OutputStreamPtr&, AccessType); | ||
| 615 | void ice_readAccessType(const ::Ice::InputStreamPtr&, AccessType&); | ||
| 616 | |||
| 617 | struct EncryptedDocument | ||
| 618 | { | ||
| 619 | ::Ehr::ByteSeq encryptedKey; | ||
| 620 | ::Ehr::ByteSeq initialVector; | ||
| 621 | ::Ehr::ByteSeq encryptedData; | ||
| 622 | |||
| 623 | bool operator==(const EncryptedDocument&) const; | ||
| 624 | bool operator<(const EncryptedDocument&) const; | ||
| 625 | bool operator!=(const EncryptedDocument& __rhs) const | ||
| 626 | { | ||
| 627 | return !operator==(__rhs); | ||
| 628 | } | ||
| 629 | bool operator<=(const EncryptedDocument& __rhs) const | ||
| 630 | { | ||
| 631 | return operator<(__rhs) || operator==(__rhs); | ||
| 632 | } | ||
| 633 | bool operator>(const EncryptedDocument& __rhs) const | ||
| 634 | { | ||
| 635 | return !operator<(__rhs) && !operator==(__rhs); | ||
| 636 | } | ||
| 637 | bool operator>=(const EncryptedDocument& __rhs) const | ||
| 638 | { | ||
| 639 | return !operator<(__rhs); | ||
| 640 | } | ||
| 641 | |||
| 642 | void __write(::IceInternal::BasicStream*) const; | ||
| 643 | void __read(::IceInternal::BasicStream*); | ||
| 644 | |||
| 645 | void ice_write(const ::Ice::OutputStreamPtr&) const; | ||
| 646 | void ice_read(const ::Ice::InputStreamPtr&); | ||
| 647 | }; | ||
| 648 | |||
| 649 | void ice_writeEncryptedDocument(const ::Ice::OutputStreamPtr&, const EncryptedDocument&); | ||
| 650 | void ice_readEncryptedDocument(const ::Ice::InputStreamPtr&, EncryptedDocument&); | ||
| 651 | |||
| 652 | struct DocumentListItem | ||
| 653 | { | ||
| 654 | ::Ice::Long id; | ||
| 655 | ::Ehr::Timestamp created; | ||
| 656 | ::Ehr::EncryptedDocument document; | ||
| 657 | |||
| 658 | bool operator==(const DocumentListItem&) const; | ||
| 659 | bool operator<(const DocumentListItem&) const; | ||
| 660 | bool operator!=(const DocumentListItem& __rhs) const | ||
| 661 | { | ||
| 662 | return !operator==(__rhs); | ||
| 663 | } | ||
| 664 | bool operator<=(const DocumentListItem& __rhs) const | ||
| 665 | { | ||
| 666 | return operator<(__rhs) || operator==(__rhs); | ||
| 667 | } | ||
| 668 | bool operator>(const DocumentListItem& __rhs) const | ||
| 669 | { | ||
| 670 | return !operator<(__rhs) && !operator==(__rhs); | ||
| 671 | } | ||
| 672 | bool operator>=(const DocumentListItem& __rhs) const | ||
| 673 | { | ||
| 674 | return !operator<(__rhs); | ||
| 675 | } | ||
| 676 | |||
| 677 | void __write(::IceInternal::BasicStream*) const; | ||
| 678 | void __read(::IceInternal::BasicStream*); | ||
| 679 | |||
| 680 | void ice_write(const ::Ice::OutputStreamPtr&) const; | ||
| 681 | void ice_read(const ::Ice::InputStreamPtr&); | ||
| 682 | }; | ||
| 683 | |||
| 684 | void ice_writeDocumentListItem(const ::Ice::OutputStreamPtr&, const DocumentListItem&); | ||
| 685 | void ice_readDocumentListItem(const ::Ice::InputStreamPtr&, DocumentListItem&); | ||
| 686 | |||
| 687 | typedef ::std::vector< ::Ehr::DocumentListItem> DocumentList; | ||
| 688 | void __writeDocumentList(::IceInternal::BasicStream*, const ::Ehr::DocumentListItem*, const ::Ehr::DocumentListItem*); | ||
| 689 | void __readDocumentList(::IceInternal::BasicStream*, DocumentList&); | ||
| 690 | void ice_writeDocumentList(const ::Ice::OutputStreamPtr&, const DocumentList&); | ||
| 691 | void ice_readDocumentList(const ::Ice::InputStreamPtr&, DocumentList&); | ||
| 692 | |||
| 693 | struct AccessControlListItem | ||
| 694 | { | ||
| 695 | ::Ice::Long id; | ||
| 696 | ::Ehr::AccountIdentifier account; | ||
| 697 | ::Ehr::AccessType access; | ||
| 698 | |||
| 699 | bool operator==(const AccessControlListItem&) const; | ||
| 700 | bool operator<(const AccessControlListItem&) const; | ||
| 701 | bool operator!=(const AccessControlListItem& __rhs) const | ||
| 702 | { | ||
| 703 | return !operator==(__rhs); | ||
| 704 | } | ||
| 705 | bool operator<=(const AccessControlListItem& __rhs) const | ||
| 706 | { | ||
| 707 | return operator<(__rhs) || operator==(__rhs); | ||
| 708 | } | ||
| 709 | bool operator>(const AccessControlListItem& __rhs) const | ||
| 710 | { | ||
| 711 | return !operator<(__rhs) && !operator==(__rhs); | ||
| 712 | } | ||
| 713 | bool operator>=(const AccessControlListItem& __rhs) const | ||
| 714 | { | ||
| 715 | return !operator<(__rhs); | ||
| 716 | } | ||
| 717 | |||
| 718 | void __write(::IceInternal::BasicStream*) const; | ||
| 719 | void __read(::IceInternal::BasicStream*); | ||
| 720 | |||
| 721 | void ice_write(const ::Ice::OutputStreamPtr&) const; | ||
| 722 | void ice_read(const ::Ice::InputStreamPtr&); | ||
| 723 | }; | ||
| 724 | |||
| 725 | void ice_writeAccessControlListItem(const ::Ice::OutputStreamPtr&, const AccessControlListItem&); | ||
| 726 | void ice_readAccessControlListItem(const ::Ice::InputStreamPtr&, AccessControlListItem&); | ||
| 727 | |||
| 728 | typedef ::std::vector< ::Ehr::AccessControlListItem> AccessControlList; | ||
| 729 | void __writeAccessControlList(::IceInternal::BasicStream*, const ::Ehr::AccessControlListItem*, const ::Ehr::AccessControlListItem*); | ||
| 730 | void __readAccessControlList(::IceInternal::BasicStream*, AccessControlList&); | ||
| 731 | void ice_writeAccessControlList(const ::Ice::OutputStreamPtr&, const AccessControlList&); | ||
| 732 | void ice_readAccessControlList(const ::Ice::InputStreamPtr&, AccessControlList&); | ||
| 733 | |||
| 734 | struct Permissions | ||
| 735 | { | ||
| 736 | ::Ehr::AccessType defaultAccess; | ||
| 737 | ::Ehr::AccessControlList acl; | ||
| 738 | |||
| 739 | bool operator==(const Permissions&) const; | ||
| 740 | bool operator<(const Permissions&) const; | ||
| 741 | bool operator!=(const Permissions& __rhs) const | ||
| 742 | { | ||
| 743 | return !operator==(__rhs); | ||
| 744 | } | ||
| 745 | bool operator<=(const Permissions& __rhs) const | ||
| 746 | { | ||
| 747 | return operator<(__rhs) || operator==(__rhs); | ||
| 748 | } | ||
| 749 | bool operator>(const Permissions& __rhs) const | ||
| 750 | { | ||
| 751 | return !operator<(__rhs) && !operator==(__rhs); | ||
| 752 | } | ||
| 753 | bool operator>=(const Permissions& __rhs) const | ||
| 754 | { | ||
| 755 | return !operator<(__rhs); | ||
| 756 | } | ||
| 757 | |||
| 758 | void __write(::IceInternal::BasicStream*) const; | ||
| 759 | void __read(::IceInternal::BasicStream*); | ||
| 760 | |||
| 761 | void ice_write(const ::Ice::OutputStreamPtr&) const; | ||
| 762 | void ice_read(const ::Ice::InputStreamPtr&); | ||
| 763 | }; | ||
| 764 | |||
| 765 | void ice_writePermissions(const ::Ice::OutputStreamPtr&, const Permissions&); | ||
| 766 | void ice_readPermissions(const ::Ice::InputStreamPtr&, Permissions&); | ||
| 767 | |||
| 768 | } | ||
| 769 | |||
| 770 | namespace IceProxy | ||
| 771 | { | ||
| 772 | |||
| 773 | namespace Ehr | ||
| 774 | { | ||
| 775 | |||
| 776 | class Document : virtual public ::IceProxy::Ice::Object | ||
| 777 | { | ||
| 778 | public: | ||
| 779 | |||
| 780 | ::IceInternal::ProxyHandle<Document> ice_context(const ::Ice::Context& __context) const | ||
| 781 | { | ||
| 782 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 783 | typedef ::IceProxy::Ice::Object _Base; | ||
| 784 | return dynamic_cast<Document*>(_Base::ice_context(__context).get()); | ||
| 785 | #else | ||
| 786 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_context(__context).get()); | ||
| 787 | #endif | ||
| 788 | } | ||
| 789 | |||
| 790 | ::IceInternal::ProxyHandle<Document> ice_adapterId(const std::string& __id) const | ||
| 791 | { | ||
| 792 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 793 | typedef ::IceProxy::Ice::Object _Base; | ||
| 794 | return dynamic_cast<Document*>(_Base::ice_adapterId(__id).get()); | ||
| 795 | #else | ||
| 796 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); | ||
| 797 | #endif | ||
| 798 | } | ||
| 799 | |||
| 800 | ::IceInternal::ProxyHandle<Document> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const | ||
| 801 | { | ||
| 802 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 803 | typedef ::IceProxy::Ice::Object _Base; | ||
| 804 | return dynamic_cast<Document*>(_Base::ice_endpoints(__endpoints).get()); | ||
| 805 | #else | ||
| 806 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); | ||
| 807 | #endif | ||
| 808 | } | ||
| 809 | |||
| 810 | ::IceInternal::ProxyHandle<Document> ice_locatorCacheTimeout(int __timeout) const | ||
| 811 | { | ||
| 812 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 813 | typedef ::IceProxy::Ice::Object _Base; | ||
| 814 | return dynamic_cast<Document*>(_Base::ice_locatorCacheTimeout(__timeout).get()); | ||
| 815 | #else | ||
| 816 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); | ||
| 817 | #endif | ||
| 818 | } | ||
| 819 | |||
| 820 | ::IceInternal::ProxyHandle<Document> ice_connectionCached(bool __cached) const | ||
| 821 | { | ||
| 822 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 823 | typedef ::IceProxy::Ice::Object _Base; | ||
| 824 | return dynamic_cast<Document*>(_Base::ice_connectionCached(__cached).get()); | ||
| 825 | #else | ||
| 826 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); | ||
| 827 | #endif | ||
| 828 | } | ||
| 829 | |||
| 830 | ::IceInternal::ProxyHandle<Document> ice_endpointSelection(::Ice::EndpointSelectionType __est) const | ||
| 831 | { | ||
| 832 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 833 | typedef ::IceProxy::Ice::Object _Base; | ||
| 834 | return dynamic_cast<Document*>(_Base::ice_endpointSelection(__est).get()); | ||
| 835 | #else | ||
| 836 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); | ||
| 837 | #endif | ||
| 838 | } | ||
| 839 | |||
| 840 | ::IceInternal::ProxyHandle<Document> ice_secure(bool __secure) const | ||
| 841 | { | ||
| 842 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 843 | typedef ::IceProxy::Ice::Object _Base; | ||
| 844 | return dynamic_cast<Document*>(_Base::ice_secure(__secure).get()); | ||
| 845 | #else | ||
| 846 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); | ||
| 847 | #endif | ||
| 848 | } | ||
| 849 | |||
| 850 | ::IceInternal::ProxyHandle<Document> ice_preferSecure(bool __preferSecure) const | ||
| 851 | { | ||
| 852 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 853 | typedef ::IceProxy::Ice::Object _Base; | ||
| 854 | return dynamic_cast<Document*>(_Base::ice_preferSecure(__preferSecure).get()); | ||
| 855 | #else | ||
| 856 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); | ||
| 857 | #endif | ||
| 858 | } | ||
| 859 | |||
| 860 | ::IceInternal::ProxyHandle<Document> ice_router(const ::Ice::RouterPrx& __router) const | ||
| 861 | { | ||
| 862 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 863 | typedef ::IceProxy::Ice::Object _Base; | ||
| 864 | return dynamic_cast<Document*>(_Base::ice_router(__router).get()); | ||
| 865 | #else | ||
| 866 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_router(__router).get()); | ||
| 867 | #endif | ||
| 868 | } | ||
| 869 | |||
| 870 | ::IceInternal::ProxyHandle<Document> ice_locator(const ::Ice::LocatorPrx& __locator) const | ||
| 871 | { | ||
| 872 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 873 | typedef ::IceProxy::Ice::Object _Base; | ||
| 874 | return dynamic_cast<Document*>(_Base::ice_locator(__locator).get()); | ||
| 875 | #else | ||
| 876 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); | ||
| 877 | #endif | ||
| 878 | } | ||
| 879 | |||
| 880 | ::IceInternal::ProxyHandle<Document> ice_collocationOptimized(bool __co) const | ||
| 881 | { | ||
| 882 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 883 | typedef ::IceProxy::Ice::Object _Base; | ||
| 884 | return dynamic_cast<Document*>(_Base::ice_collocationOptimized(__co).get()); | ||
| 885 | #else | ||
| 886 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); | ||
| 887 | #endif | ||
| 888 | } | ||
| 889 | |||
| 890 | ::IceInternal::ProxyHandle<Document> ice_twoway() const | ||
| 891 | { | ||
| 892 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 893 | typedef ::IceProxy::Ice::Object _Base; | ||
| 894 | return dynamic_cast<Document*>(_Base::ice_twoway().get()); | ||
| 895 | #else | ||
| 896 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_twoway().get()); | ||
| 897 | #endif | ||
| 898 | } | ||
| 899 | |||
| 900 | ::IceInternal::ProxyHandle<Document> ice_oneway() const | ||
| 901 | { | ||
| 902 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 903 | typedef ::IceProxy::Ice::Object _Base; | ||
| 904 | return dynamic_cast<Document*>(_Base::ice_oneway().get()); | ||
| 905 | #else | ||
| 906 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_oneway().get()); | ||
| 907 | #endif | ||
| 908 | } | ||
| 909 | |||
| 910 | ::IceInternal::ProxyHandle<Document> ice_batchOneway() const | ||
| 911 | { | ||
| 912 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 913 | typedef ::IceProxy::Ice::Object _Base; | ||
| 914 | return dynamic_cast<Document*>(_Base::ice_batchOneway().get()); | ||
| 915 | #else | ||
| 916 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_batchOneway().get()); | ||
| 917 | #endif | ||
| 918 | } | ||
| 919 | |||
| 920 | ::IceInternal::ProxyHandle<Document> ice_datagram() const | ||
| 921 | { | ||
| 922 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 923 | typedef ::IceProxy::Ice::Object _Base; | ||
| 924 | return dynamic_cast<Document*>(_Base::ice_datagram().get()); | ||
| 925 | #else | ||
| 926 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_datagram().get()); | ||
| 927 | #endif | ||
| 928 | } | ||
| 929 | |||
| 930 | ::IceInternal::ProxyHandle<Document> ice_batchDatagram() const | ||
| 931 | { | ||
| 932 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 933 | typedef ::IceProxy::Ice::Object _Base; | ||
| 934 | return dynamic_cast<Document*>(_Base::ice_batchDatagram().get()); | ||
| 935 | #else | ||
| 936 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); | ||
| 937 | #endif | ||
| 938 | } | ||
| 939 | |||
| 940 | ::IceInternal::ProxyHandle<Document> ice_compress(bool __compress) const | ||
| 941 | { | ||
| 942 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 943 | typedef ::IceProxy::Ice::Object _Base; | ||
| 944 | return dynamic_cast<Document*>(_Base::ice_compress(__compress).get()); | ||
| 945 | #else | ||
| 946 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); | ||
| 947 | #endif | ||
| 948 | } | ||
| 949 | |||
| 950 | ::IceInternal::ProxyHandle<Document> ice_timeout(int __timeout) const | ||
| 951 | { | ||
| 952 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 953 | typedef ::IceProxy::Ice::Object _Base; | ||
| 954 | return dynamic_cast<Document*>(_Base::ice_timeout(__timeout).get()); | ||
| 955 | #else | ||
| 956 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); | ||
| 957 | #endif | ||
| 958 | } | ||
| 959 | |||
| 960 | ::IceInternal::ProxyHandle<Document> ice_connectionId(const std::string& __id) const | ||
| 961 | { | ||
| 962 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 963 | typedef ::IceProxy::Ice::Object _Base; | ||
| 964 | return dynamic_cast<Document*>(_Base::ice_connectionId(__id).get()); | ||
| 965 | #else | ||
| 966 | return dynamic_cast<Document*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); | ||
| 967 | #endif | ||
| 968 | } | ||
| 969 | |||
| 970 | static const ::std::string& ice_staticId(); | ||
| 971 | |||
| 972 | private: | ||
| 973 | |||
| 974 | virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); | ||
| 975 | virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); | ||
| 976 | virtual ::IceProxy::Ice::Object* __newInstance() const; | ||
| 977 | }; | ||
| 978 | |||
| 979 | class Prescription : virtual public ::IceProxy::Ehr::Document | ||
| 980 | { | ||
| 981 | public: | ||
| 982 | |||
| 983 | ::IceInternal::ProxyHandle<Prescription> ice_context(const ::Ice::Context& __context) const | ||
| 984 | { | ||
| 985 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 986 | typedef ::IceProxy::Ice::Object _Base; | ||
| 987 | return dynamic_cast<Prescription*>(_Base::ice_context(__context).get()); | ||
| 988 | #else | ||
| 989 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_context(__context).get()); | ||
| 990 | #endif | ||
| 991 | } | ||
| 992 | |||
| 993 | ::IceInternal::ProxyHandle<Prescription> ice_adapterId(const std::string& __id) const | ||
| 994 | { | ||
| 995 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 996 | typedef ::IceProxy::Ice::Object _Base; | ||
| 997 | return dynamic_cast<Prescription*>(_Base::ice_adapterId(__id).get()); | ||
| 998 | #else | ||
| 999 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); | ||
| 1000 | #endif | ||
| 1001 | } | ||
| 1002 | |||
| 1003 | ::IceInternal::ProxyHandle<Prescription> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const | ||
| 1004 | { | ||
| 1005 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1006 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1007 | return dynamic_cast<Prescription*>(_Base::ice_endpoints(__endpoints).get()); | ||
| 1008 | #else | ||
| 1009 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); | ||
| 1010 | #endif | ||
| 1011 | } | ||
| 1012 | |||
| 1013 | ::IceInternal::ProxyHandle<Prescription> ice_locatorCacheTimeout(int __timeout) const | ||
| 1014 | { | ||
| 1015 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1016 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1017 | return dynamic_cast<Prescription*>(_Base::ice_locatorCacheTimeout(__timeout).get()); | ||
| 1018 | #else | ||
| 1019 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); | ||
| 1020 | #endif | ||
| 1021 | } | ||
| 1022 | |||
| 1023 | ::IceInternal::ProxyHandle<Prescription> ice_connectionCached(bool __cached) const | ||
| 1024 | { | ||
| 1025 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1026 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1027 | return dynamic_cast<Prescription*>(_Base::ice_connectionCached(__cached).get()); | ||
| 1028 | #else | ||
| 1029 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); | ||
| 1030 | #endif | ||
| 1031 | } | ||
| 1032 | |||
| 1033 | ::IceInternal::ProxyHandle<Prescription> ice_endpointSelection(::Ice::EndpointSelectionType __est) const | ||
| 1034 | { | ||
| 1035 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1036 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1037 | return dynamic_cast<Prescription*>(_Base::ice_endpointSelection(__est).get()); | ||
| 1038 | #else | ||
| 1039 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); | ||
| 1040 | #endif | ||
| 1041 | } | ||
| 1042 | |||
| 1043 | ::IceInternal::ProxyHandle<Prescription> ice_secure(bool __secure) const | ||
| 1044 | { | ||
| 1045 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1046 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1047 | return dynamic_cast<Prescription*>(_Base::ice_secure(__secure).get()); | ||
| 1048 | #else | ||
| 1049 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); | ||
| 1050 | #endif | ||
| 1051 | } | ||
| 1052 | |||
| 1053 | ::IceInternal::ProxyHandle<Prescription> ice_preferSecure(bool __preferSecure) const | ||
| 1054 | { | ||
| 1055 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1056 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1057 | return dynamic_cast<Prescription*>(_Base::ice_preferSecure(__preferSecure).get()); | ||
| 1058 | #else | ||
| 1059 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); | ||
| 1060 | #endif | ||
| 1061 | } | ||
| 1062 | |||
| 1063 | ::IceInternal::ProxyHandle<Prescription> ice_router(const ::Ice::RouterPrx& __router) const | ||
| 1064 | { | ||
| 1065 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1066 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1067 | return dynamic_cast<Prescription*>(_Base::ice_router(__router).get()); | ||
| 1068 | #else | ||
| 1069 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_router(__router).get()); | ||
| 1070 | #endif | ||
| 1071 | } | ||
| 1072 | |||
| 1073 | ::IceInternal::ProxyHandle<Prescription> ice_locator(const ::Ice::LocatorPrx& __locator) const | ||
| 1074 | { | ||
| 1075 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1076 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1077 | return dynamic_cast<Prescription*>(_Base::ice_locator(__locator).get()); | ||
| 1078 | #else | ||
| 1079 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); | ||
| 1080 | #endif | ||
| 1081 | } | ||
| 1082 | |||
| 1083 | ::IceInternal::ProxyHandle<Prescription> ice_collocationOptimized(bool __co) const | ||
| 1084 | { | ||
| 1085 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1086 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1087 | return dynamic_cast<Prescription*>(_Base::ice_collocationOptimized(__co).get()); | ||
| 1088 | #else | ||
| 1089 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); | ||
| 1090 | #endif | ||
| 1091 | } | ||
| 1092 | |||
| 1093 | ::IceInternal::ProxyHandle<Prescription> ice_twoway() const | ||
| 1094 | { | ||
| 1095 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1096 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1097 | return dynamic_cast<Prescription*>(_Base::ice_twoway().get()); | ||
| 1098 | #else | ||
| 1099 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_twoway().get()); | ||
| 1100 | #endif | ||
| 1101 | } | ||
| 1102 | |||
| 1103 | ::IceInternal::ProxyHandle<Prescription> ice_oneway() const | ||
| 1104 | { | ||
| 1105 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1106 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1107 | return dynamic_cast<Prescription*>(_Base::ice_oneway().get()); | ||
| 1108 | #else | ||
| 1109 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_oneway().get()); | ||
| 1110 | #endif | ||
| 1111 | } | ||
| 1112 | |||
| 1113 | ::IceInternal::ProxyHandle<Prescription> ice_batchOneway() const | ||
| 1114 | { | ||
| 1115 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1116 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1117 | return dynamic_cast<Prescription*>(_Base::ice_batchOneway().get()); | ||
| 1118 | #else | ||
| 1119 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_batchOneway().get()); | ||
| 1120 | #endif | ||
| 1121 | } | ||
| 1122 | |||
| 1123 | ::IceInternal::ProxyHandle<Prescription> ice_datagram() const | ||
| 1124 | { | ||
| 1125 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1126 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1127 | return dynamic_cast<Prescription*>(_Base::ice_datagram().get()); | ||
| 1128 | #else | ||
| 1129 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_datagram().get()); | ||
| 1130 | #endif | ||
| 1131 | } | ||
| 1132 | |||
| 1133 | ::IceInternal::ProxyHandle<Prescription> ice_batchDatagram() const | ||
| 1134 | { | ||
| 1135 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1136 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1137 | return dynamic_cast<Prescription*>(_Base::ice_batchDatagram().get()); | ||
| 1138 | #else | ||
| 1139 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); | ||
| 1140 | #endif | ||
| 1141 | } | ||
| 1142 | |||
| 1143 | ::IceInternal::ProxyHandle<Prescription> ice_compress(bool __compress) const | ||
| 1144 | { | ||
| 1145 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1146 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1147 | return dynamic_cast<Prescription*>(_Base::ice_compress(__compress).get()); | ||
| 1148 | #else | ||
| 1149 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); | ||
| 1150 | #endif | ||
| 1151 | } | ||
| 1152 | |||
| 1153 | ::IceInternal::ProxyHandle<Prescription> ice_timeout(int __timeout) const | ||
| 1154 | { | ||
| 1155 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1156 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1157 | return dynamic_cast<Prescription*>(_Base::ice_timeout(__timeout).get()); | ||
| 1158 | #else | ||
| 1159 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); | ||
| 1160 | #endif | ||
| 1161 | } | ||
| 1162 | |||
| 1163 | ::IceInternal::ProxyHandle<Prescription> ice_connectionId(const std::string& __id) const | ||
| 1164 | { | ||
| 1165 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1166 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1167 | return dynamic_cast<Prescription*>(_Base::ice_connectionId(__id).get()); | ||
| 1168 | #else | ||
| 1169 | return dynamic_cast<Prescription*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); | ||
| 1170 | #endif | ||
| 1171 | } | ||
| 1172 | |||
| 1173 | static const ::std::string& ice_staticId(); | ||
| 1174 | |||
| 1175 | private: | ||
| 1176 | |||
| 1177 | virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); | ||
| 1178 | virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); | ||
| 1179 | virtual ::IceProxy::Ice::Object* __newInstance() const; | ||
| 1180 | }; | ||
| 1181 | |||
| 1182 | class ConsumedPrescription : virtual public ::IceProxy::Ehr::Prescription | ||
| 1183 | { | ||
| 1184 | public: | ||
| 1185 | |||
| 1186 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_context(const ::Ice::Context& __context) const | ||
| 1187 | { | ||
| 1188 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1189 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1190 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_context(__context).get()); | ||
| 1191 | #else | ||
| 1192 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_context(__context).get()); | ||
| 1193 | #endif | ||
| 1194 | } | ||
| 1195 | |||
| 1196 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_adapterId(const std::string& __id) const | ||
| 1197 | { | ||
| 1198 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1199 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1200 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_adapterId(__id).get()); | ||
| 1201 | #else | ||
| 1202 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); | ||
| 1203 | #endif | ||
| 1204 | } | ||
| 1205 | |||
| 1206 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const | ||
| 1207 | { | ||
| 1208 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1209 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1210 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_endpoints(__endpoints).get()); | ||
| 1211 | #else | ||
| 1212 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); | ||
| 1213 | #endif | ||
| 1214 | } | ||
| 1215 | |||
| 1216 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_locatorCacheTimeout(int __timeout) const | ||
| 1217 | { | ||
| 1218 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1219 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1220 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_locatorCacheTimeout(__timeout).get()); | ||
| 1221 | #else | ||
| 1222 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); | ||
| 1223 | #endif | ||
| 1224 | } | ||
| 1225 | |||
| 1226 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_connectionCached(bool __cached) const | ||
| 1227 | { | ||
| 1228 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1229 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1230 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_connectionCached(__cached).get()); | ||
| 1231 | #else | ||
| 1232 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); | ||
| 1233 | #endif | ||
| 1234 | } | ||
| 1235 | |||
| 1236 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_endpointSelection(::Ice::EndpointSelectionType __est) const | ||
| 1237 | { | ||
| 1238 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1239 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1240 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_endpointSelection(__est).get()); | ||
| 1241 | #else | ||
| 1242 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); | ||
| 1243 | #endif | ||
| 1244 | } | ||
| 1245 | |||
| 1246 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_secure(bool __secure) const | ||
| 1247 | { | ||
| 1248 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1249 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1250 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_secure(__secure).get()); | ||
| 1251 | #else | ||
| 1252 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); | ||
| 1253 | #endif | ||
| 1254 | } | ||
| 1255 | |||
| 1256 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_preferSecure(bool __preferSecure) const | ||
| 1257 | { | ||
| 1258 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1259 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1260 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_preferSecure(__preferSecure).get()); | ||
| 1261 | #else | ||
| 1262 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); | ||
| 1263 | #endif | ||
| 1264 | } | ||
| 1265 | |||
| 1266 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_router(const ::Ice::RouterPrx& __router) const | ||
| 1267 | { | ||
| 1268 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1269 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1270 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_router(__router).get()); | ||
| 1271 | #else | ||
| 1272 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_router(__router).get()); | ||
| 1273 | #endif | ||
| 1274 | } | ||
| 1275 | |||
| 1276 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_locator(const ::Ice::LocatorPrx& __locator) const | ||
| 1277 | { | ||
| 1278 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1279 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1280 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_locator(__locator).get()); | ||
| 1281 | #else | ||
| 1282 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); | ||
| 1283 | #endif | ||
| 1284 | } | ||
| 1285 | |||
| 1286 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_collocationOptimized(bool __co) const | ||
| 1287 | { | ||
| 1288 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1289 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1290 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_collocationOptimized(__co).get()); | ||
| 1291 | #else | ||
| 1292 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); | ||
| 1293 | #endif | ||
| 1294 | } | ||
| 1295 | |||
| 1296 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_twoway() const | ||
| 1297 | { | ||
| 1298 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1299 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1300 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_twoway().get()); | ||
| 1301 | #else | ||
| 1302 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_twoway().get()); | ||
| 1303 | #endif | ||
| 1304 | } | ||
| 1305 | |||
| 1306 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_oneway() const | ||
| 1307 | { | ||
| 1308 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1309 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1310 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_oneway().get()); | ||
| 1311 | #else | ||
| 1312 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_oneway().get()); | ||
| 1313 | #endif | ||
| 1314 | } | ||
| 1315 | |||
| 1316 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_batchOneway() const | ||
| 1317 | { | ||
| 1318 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1319 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1320 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_batchOneway().get()); | ||
| 1321 | #else | ||
| 1322 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_batchOneway().get()); | ||
| 1323 | #endif | ||
| 1324 | } | ||
| 1325 | |||
| 1326 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_datagram() const | ||
| 1327 | { | ||
| 1328 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1329 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1330 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_datagram().get()); | ||
| 1331 | #else | ||
| 1332 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_datagram().get()); | ||
| 1333 | #endif | ||
| 1334 | } | ||
| 1335 | |||
| 1336 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_batchDatagram() const | ||
| 1337 | { | ||
| 1338 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1339 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1340 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_batchDatagram().get()); | ||
| 1341 | #else | ||
| 1342 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); | ||
| 1343 | #endif | ||
| 1344 | } | ||
| 1345 | |||
| 1346 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_compress(bool __compress) const | ||
| 1347 | { | ||
| 1348 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1349 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1350 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_compress(__compress).get()); | ||
| 1351 | #else | ||
| 1352 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); | ||
| 1353 | #endif | ||
| 1354 | } | ||
| 1355 | |||
| 1356 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_timeout(int __timeout) const | ||
| 1357 | { | ||
| 1358 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1359 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1360 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_timeout(__timeout).get()); | ||
| 1361 | #else | ||
| 1362 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); | ||
| 1363 | #endif | ||
| 1364 | } | ||
| 1365 | |||
| 1366 | ::IceInternal::ProxyHandle<ConsumedPrescription> ice_connectionId(const std::string& __id) const | ||
| 1367 | { | ||
| 1368 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1369 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1370 | return dynamic_cast<ConsumedPrescription*>(_Base::ice_connectionId(__id).get()); | ||
| 1371 | #else | ||
| 1372 | return dynamic_cast<ConsumedPrescription*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); | ||
| 1373 | #endif | ||
| 1374 | } | ||
| 1375 | |||
| 1376 | static const ::std::string& ice_staticId(); | ||
| 1377 | |||
| 1378 | private: | ||
| 1379 | |||
| 1380 | virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); | ||
| 1381 | virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); | ||
| 1382 | virtual ::IceProxy::Ice::Object* __newInstance() const; | ||
| 1383 | }; | ||
| 1384 | |||
| 1385 | class Request : virtual public ::IceProxy::Ice::Object | ||
| 1386 | { | ||
| 1387 | public: | ||
| 1388 | |||
| 1389 | ::IceInternal::ProxyHandle<Request> ice_context(const ::Ice::Context& __context) const | ||
| 1390 | { | ||
| 1391 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1392 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1393 | return dynamic_cast<Request*>(_Base::ice_context(__context).get()); | ||
| 1394 | #else | ||
| 1395 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_context(__context).get()); | ||
| 1396 | #endif | ||
| 1397 | } | ||
| 1398 | |||
| 1399 | ::IceInternal::ProxyHandle<Request> ice_adapterId(const std::string& __id) const | ||
| 1400 | { | ||
| 1401 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1402 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1403 | return dynamic_cast<Request*>(_Base::ice_adapterId(__id).get()); | ||
| 1404 | #else | ||
| 1405 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); | ||
| 1406 | #endif | ||
| 1407 | } | ||
| 1408 | |||
| 1409 | ::IceInternal::ProxyHandle<Request> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const | ||
| 1410 | { | ||
| 1411 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1412 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1413 | return dynamic_cast<Request*>(_Base::ice_endpoints(__endpoints).get()); | ||
| 1414 | #else | ||
| 1415 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); | ||
| 1416 | #endif | ||
| 1417 | } | ||
| 1418 | |||
| 1419 | ::IceInternal::ProxyHandle<Request> ice_locatorCacheTimeout(int __timeout) const | ||
| 1420 | { | ||
| 1421 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1422 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1423 | return dynamic_cast<Request*>(_Base::ice_locatorCacheTimeout(__timeout).get()); | ||
| 1424 | #else | ||
| 1425 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); | ||
| 1426 | #endif | ||
| 1427 | } | ||
| 1428 | |||
| 1429 | ::IceInternal::ProxyHandle<Request> ice_connectionCached(bool __cached) const | ||
| 1430 | { | ||
| 1431 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1432 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1433 | return dynamic_cast<Request*>(_Base::ice_connectionCached(__cached).get()); | ||
| 1434 | #else | ||
| 1435 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); | ||
| 1436 | #endif | ||
| 1437 | } | ||
| 1438 | |||
| 1439 | ::IceInternal::ProxyHandle<Request> ice_endpointSelection(::Ice::EndpointSelectionType __est) const | ||
| 1440 | { | ||
| 1441 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1442 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1443 | return dynamic_cast<Request*>(_Base::ice_endpointSelection(__est).get()); | ||
| 1444 | #else | ||
| 1445 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); | ||
| 1446 | #endif | ||
| 1447 | } | ||
| 1448 | |||
| 1449 | ::IceInternal::ProxyHandle<Request> ice_secure(bool __secure) const | ||
| 1450 | { | ||
| 1451 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1452 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1453 | return dynamic_cast<Request*>(_Base::ice_secure(__secure).get()); | ||
| 1454 | #else | ||
| 1455 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); | ||
| 1456 | #endif | ||
| 1457 | } | ||
| 1458 | |||
| 1459 | ::IceInternal::ProxyHandle<Request> ice_preferSecure(bool __preferSecure) const | ||
| 1460 | { | ||
| 1461 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1462 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1463 | return dynamic_cast<Request*>(_Base::ice_preferSecure(__preferSecure).get()); | ||
| 1464 | #else | ||
| 1465 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); | ||
| 1466 | #endif | ||
| 1467 | } | ||
| 1468 | |||
| 1469 | ::IceInternal::ProxyHandle<Request> ice_router(const ::Ice::RouterPrx& __router) const | ||
| 1470 | { | ||
| 1471 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1472 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1473 | return dynamic_cast<Request*>(_Base::ice_router(__router).get()); | ||
| 1474 | #else | ||
| 1475 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_router(__router).get()); | ||
| 1476 | #endif | ||
| 1477 | } | ||
| 1478 | |||
| 1479 | ::IceInternal::ProxyHandle<Request> ice_locator(const ::Ice::LocatorPrx& __locator) const | ||
| 1480 | { | ||
| 1481 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1482 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1483 | return dynamic_cast<Request*>(_Base::ice_locator(__locator).get()); | ||
| 1484 | #else | ||
| 1485 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); | ||
| 1486 | #endif | ||
| 1487 | } | ||
| 1488 | |||
| 1489 | ::IceInternal::ProxyHandle<Request> ice_collocationOptimized(bool __co) const | ||
| 1490 | { | ||
| 1491 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1492 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1493 | return dynamic_cast<Request*>(_Base::ice_collocationOptimized(__co).get()); | ||
| 1494 | #else | ||
| 1495 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); | ||
| 1496 | #endif | ||
| 1497 | } | ||
| 1498 | |||
| 1499 | ::IceInternal::ProxyHandle<Request> ice_twoway() const | ||
| 1500 | { | ||
| 1501 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1502 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1503 | return dynamic_cast<Request*>(_Base::ice_twoway().get()); | ||
| 1504 | #else | ||
| 1505 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_twoway().get()); | ||
| 1506 | #endif | ||
| 1507 | } | ||
| 1508 | |||
| 1509 | ::IceInternal::ProxyHandle<Request> ice_oneway() const | ||
| 1510 | { | ||
| 1511 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1512 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1513 | return dynamic_cast<Request*>(_Base::ice_oneway().get()); | ||
| 1514 | #else | ||
| 1515 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_oneway().get()); | ||
| 1516 | #endif | ||
| 1517 | } | ||
| 1518 | |||
| 1519 | ::IceInternal::ProxyHandle<Request> ice_batchOneway() const | ||
| 1520 | { | ||
| 1521 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1522 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1523 | return dynamic_cast<Request*>(_Base::ice_batchOneway().get()); | ||
| 1524 | #else | ||
| 1525 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_batchOneway().get()); | ||
| 1526 | #endif | ||
| 1527 | } | ||
| 1528 | |||
| 1529 | ::IceInternal::ProxyHandle<Request> ice_datagram() const | ||
| 1530 | { | ||
| 1531 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1532 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1533 | return dynamic_cast<Request*>(_Base::ice_datagram().get()); | ||
| 1534 | #else | ||
| 1535 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_datagram().get()); | ||
| 1536 | #endif | ||
| 1537 | } | ||
| 1538 | |||
| 1539 | ::IceInternal::ProxyHandle<Request> ice_batchDatagram() const | ||
| 1540 | { | ||
| 1541 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1542 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1543 | return dynamic_cast<Request*>(_Base::ice_batchDatagram().get()); | ||
| 1544 | #else | ||
| 1545 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); | ||
| 1546 | #endif | ||
| 1547 | } | ||
| 1548 | |||
| 1549 | ::IceInternal::ProxyHandle<Request> ice_compress(bool __compress) const | ||
| 1550 | { | ||
| 1551 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1552 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1553 | return dynamic_cast<Request*>(_Base::ice_compress(__compress).get()); | ||
| 1554 | #else | ||
| 1555 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); | ||
| 1556 | #endif | ||
| 1557 | } | ||
| 1558 | |||
| 1559 | ::IceInternal::ProxyHandle<Request> ice_timeout(int __timeout) const | ||
| 1560 | { | ||
| 1561 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1562 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1563 | return dynamic_cast<Request*>(_Base::ice_timeout(__timeout).get()); | ||
| 1564 | #else | ||
| 1565 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); | ||
| 1566 | #endif | ||
| 1567 | } | ||
| 1568 | |||
| 1569 | ::IceInternal::ProxyHandle<Request> ice_connectionId(const std::string& __id) const | ||
| 1570 | { | ||
| 1571 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1572 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1573 | return dynamic_cast<Request*>(_Base::ice_connectionId(__id).get()); | ||
| 1574 | #else | ||
| 1575 | return dynamic_cast<Request*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); | ||
| 1576 | #endif | ||
| 1577 | } | ||
| 1578 | |||
| 1579 | static const ::std::string& ice_staticId(); | ||
| 1580 | |||
| 1581 | private: | ||
| 1582 | |||
| 1583 | virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); | ||
| 1584 | virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); | ||
| 1585 | virtual ::IceProxy::Ice::Object* __newInstance() const; | ||
| 1586 | }; | ||
| 1587 | |||
| 1588 | class ThirdPartyRequest : virtual public ::IceProxy::Ehr::Request | ||
| 1589 | { | ||
| 1590 | public: | ||
| 1591 | |||
| 1592 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_context(const ::Ice::Context& __context) const | ||
| 1593 | { | ||
| 1594 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1595 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1596 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_context(__context).get()); | ||
| 1597 | #else | ||
| 1598 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_context(__context).get()); | ||
| 1599 | #endif | ||
| 1600 | } | ||
| 1601 | |||
| 1602 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_adapterId(const std::string& __id) const | ||
| 1603 | { | ||
| 1604 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1605 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1606 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_adapterId(__id).get()); | ||
| 1607 | #else | ||
| 1608 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); | ||
| 1609 | #endif | ||
| 1610 | } | ||
| 1611 | |||
| 1612 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const | ||
| 1613 | { | ||
| 1614 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1615 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1616 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_endpoints(__endpoints).get()); | ||
| 1617 | #else | ||
| 1618 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); | ||
| 1619 | #endif | ||
| 1620 | } | ||
| 1621 | |||
| 1622 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_locatorCacheTimeout(int __timeout) const | ||
| 1623 | { | ||
| 1624 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1625 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1626 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_locatorCacheTimeout(__timeout).get()); | ||
| 1627 | #else | ||
| 1628 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); | ||
| 1629 | #endif | ||
| 1630 | } | ||
| 1631 | |||
| 1632 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_connectionCached(bool __cached) const | ||
| 1633 | { | ||
| 1634 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1635 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1636 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_connectionCached(__cached).get()); | ||
| 1637 | #else | ||
| 1638 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); | ||
| 1639 | #endif | ||
| 1640 | } | ||
| 1641 | |||
| 1642 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_endpointSelection(::Ice::EndpointSelectionType __est) const | ||
| 1643 | { | ||
| 1644 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1645 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1646 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_endpointSelection(__est).get()); | ||
| 1647 | #else | ||
| 1648 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); | ||
| 1649 | #endif | ||
| 1650 | } | ||
| 1651 | |||
| 1652 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_secure(bool __secure) const | ||
| 1653 | { | ||
| 1654 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1655 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1656 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_secure(__secure).get()); | ||
| 1657 | #else | ||
| 1658 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); | ||
| 1659 | #endif | ||
| 1660 | } | ||
| 1661 | |||
| 1662 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_preferSecure(bool __preferSecure) const | ||
| 1663 | { | ||
| 1664 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1665 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1666 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_preferSecure(__preferSecure).get()); | ||
| 1667 | #else | ||
| 1668 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); | ||
| 1669 | #endif | ||
| 1670 | } | ||
| 1671 | |||
| 1672 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_router(const ::Ice::RouterPrx& __router) const | ||
| 1673 | { | ||
| 1674 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1675 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1676 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_router(__router).get()); | ||
| 1677 | #else | ||
| 1678 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_router(__router).get()); | ||
| 1679 | #endif | ||
| 1680 | } | ||
| 1681 | |||
| 1682 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_locator(const ::Ice::LocatorPrx& __locator) const | ||
| 1683 | { | ||
| 1684 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1685 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1686 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_locator(__locator).get()); | ||
| 1687 | #else | ||
| 1688 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); | ||
| 1689 | #endif | ||
| 1690 | } | ||
| 1691 | |||
| 1692 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_collocationOptimized(bool __co) const | ||
| 1693 | { | ||
| 1694 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1695 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1696 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_collocationOptimized(__co).get()); | ||
| 1697 | #else | ||
| 1698 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); | ||
| 1699 | #endif | ||
| 1700 | } | ||
| 1701 | |||
| 1702 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_twoway() const | ||
| 1703 | { | ||
| 1704 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1705 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1706 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_twoway().get()); | ||
| 1707 | #else | ||
| 1708 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_twoway().get()); | ||
| 1709 | #endif | ||
| 1710 | } | ||
| 1711 | |||
| 1712 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_oneway() const | ||
| 1713 | { | ||
| 1714 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1715 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1716 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_oneway().get()); | ||
| 1717 | #else | ||
| 1718 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_oneway().get()); | ||
| 1719 | #endif | ||
| 1720 | } | ||
| 1721 | |||
| 1722 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_batchOneway() const | ||
| 1723 | { | ||
| 1724 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1725 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1726 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_batchOneway().get()); | ||
| 1727 | #else | ||
| 1728 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_batchOneway().get()); | ||
| 1729 | #endif | ||
| 1730 | } | ||
| 1731 | |||
| 1732 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_datagram() const | ||
| 1733 | { | ||
| 1734 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1735 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1736 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_datagram().get()); | ||
| 1737 | #else | ||
| 1738 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_datagram().get()); | ||
| 1739 | #endif | ||
| 1740 | } | ||
| 1741 | |||
| 1742 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_batchDatagram() const | ||
| 1743 | { | ||
| 1744 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1745 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1746 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_batchDatagram().get()); | ||
| 1747 | #else | ||
| 1748 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); | ||
| 1749 | #endif | ||
| 1750 | } | ||
| 1751 | |||
| 1752 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_compress(bool __compress) const | ||
| 1753 | { | ||
| 1754 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1755 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1756 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_compress(__compress).get()); | ||
| 1757 | #else | ||
| 1758 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); | ||
| 1759 | #endif | ||
| 1760 | } | ||
| 1761 | |||
| 1762 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_timeout(int __timeout) const | ||
| 1763 | { | ||
| 1764 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1765 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1766 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_timeout(__timeout).get()); | ||
| 1767 | #else | ||
| 1768 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); | ||
| 1769 | #endif | ||
| 1770 | } | ||
| 1771 | |||
| 1772 | ::IceInternal::ProxyHandle<ThirdPartyRequest> ice_connectionId(const std::string& __id) const | ||
| 1773 | { | ||
| 1774 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1775 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1776 | return dynamic_cast<ThirdPartyRequest*>(_Base::ice_connectionId(__id).get()); | ||
| 1777 | #else | ||
| 1778 | return dynamic_cast<ThirdPartyRequest*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); | ||
| 1779 | #endif | ||
| 1780 | } | ||
| 1781 | |||
| 1782 | static const ::std::string& ice_staticId(); | ||
| 1783 | |||
| 1784 | private: | ||
| 1785 | |||
| 1786 | virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); | ||
| 1787 | virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); | ||
| 1788 | virtual ::IceProxy::Ice::Object* __newInstance() const; | ||
| 1789 | }; | ||
| 1790 | |||
| 1791 | class CreatePrescriptionRequest : virtual public ::IceProxy::Ehr::ThirdPartyRequest | ||
| 1792 | { | ||
| 1793 | public: | ||
| 1794 | |||
| 1795 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_context(const ::Ice::Context& __context) const | ||
| 1796 | { | ||
| 1797 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1798 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1799 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_context(__context).get()); | ||
| 1800 | #else | ||
| 1801 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_context(__context).get()); | ||
| 1802 | #endif | ||
| 1803 | } | ||
| 1804 | |||
| 1805 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_adapterId(const std::string& __id) const | ||
| 1806 | { | ||
| 1807 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1808 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1809 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_adapterId(__id).get()); | ||
| 1810 | #else | ||
| 1811 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); | ||
| 1812 | #endif | ||
| 1813 | } | ||
| 1814 | |||
| 1815 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const | ||
| 1816 | { | ||
| 1817 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1818 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1819 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_endpoints(__endpoints).get()); | ||
| 1820 | #else | ||
| 1821 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); | ||
| 1822 | #endif | ||
| 1823 | } | ||
| 1824 | |||
| 1825 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_locatorCacheTimeout(int __timeout) const | ||
| 1826 | { | ||
| 1827 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1828 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1829 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_locatorCacheTimeout(__timeout).get()); | ||
| 1830 | #else | ||
| 1831 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); | ||
| 1832 | #endif | ||
| 1833 | } | ||
| 1834 | |||
| 1835 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_connectionCached(bool __cached) const | ||
| 1836 | { | ||
| 1837 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1838 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1839 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_connectionCached(__cached).get()); | ||
| 1840 | #else | ||
| 1841 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); | ||
| 1842 | #endif | ||
| 1843 | } | ||
| 1844 | |||
| 1845 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_endpointSelection(::Ice::EndpointSelectionType __est) const | ||
| 1846 | { | ||
| 1847 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1848 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1849 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_endpointSelection(__est).get()); | ||
| 1850 | #else | ||
| 1851 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); | ||
| 1852 | #endif | ||
| 1853 | } | ||
| 1854 | |||
| 1855 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_secure(bool __secure) const | ||
| 1856 | { | ||
| 1857 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1858 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1859 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_secure(__secure).get()); | ||
| 1860 | #else | ||
| 1861 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); | ||
| 1862 | #endif | ||
| 1863 | } | ||
| 1864 | |||
| 1865 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_preferSecure(bool __preferSecure) const | ||
| 1866 | { | ||
| 1867 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1868 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1869 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_preferSecure(__preferSecure).get()); | ||
| 1870 | #else | ||
| 1871 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); | ||
| 1872 | #endif | ||
| 1873 | } | ||
| 1874 | |||
| 1875 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_router(const ::Ice::RouterPrx& __router) const | ||
| 1876 | { | ||
| 1877 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1878 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1879 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_router(__router).get()); | ||
| 1880 | #else | ||
| 1881 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_router(__router).get()); | ||
| 1882 | #endif | ||
| 1883 | } | ||
| 1884 | |||
| 1885 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_locator(const ::Ice::LocatorPrx& __locator) const | ||
| 1886 | { | ||
| 1887 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1888 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1889 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_locator(__locator).get()); | ||
| 1890 | #else | ||
| 1891 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); | ||
| 1892 | #endif | ||
| 1893 | } | ||
| 1894 | |||
| 1895 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_collocationOptimized(bool __co) const | ||
| 1896 | { | ||
| 1897 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1898 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1899 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_collocationOptimized(__co).get()); | ||
| 1900 | #else | ||
| 1901 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); | ||
| 1902 | #endif | ||
| 1903 | } | ||
| 1904 | |||
| 1905 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_twoway() const | ||
| 1906 | { | ||
| 1907 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1908 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1909 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_twoway().get()); | ||
| 1910 | #else | ||
| 1911 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_twoway().get()); | ||
| 1912 | #endif | ||
| 1913 | } | ||
| 1914 | |||
| 1915 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_oneway() const | ||
| 1916 | { | ||
| 1917 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1918 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1919 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_oneway().get()); | ||
| 1920 | #else | ||
| 1921 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_oneway().get()); | ||
| 1922 | #endif | ||
| 1923 | } | ||
| 1924 | |||
| 1925 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_batchOneway() const | ||
| 1926 | { | ||
| 1927 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1928 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1929 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_batchOneway().get()); | ||
| 1930 | #else | ||
| 1931 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_batchOneway().get()); | ||
| 1932 | #endif | ||
| 1933 | } | ||
| 1934 | |||
| 1935 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_datagram() const | ||
| 1936 | { | ||
| 1937 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1938 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1939 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_datagram().get()); | ||
| 1940 | #else | ||
| 1941 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_datagram().get()); | ||
| 1942 | #endif | ||
| 1943 | } | ||
| 1944 | |||
| 1945 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_batchDatagram() const | ||
| 1946 | { | ||
| 1947 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1948 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1949 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_batchDatagram().get()); | ||
| 1950 | #else | ||
| 1951 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); | ||
| 1952 | #endif | ||
| 1953 | } | ||
| 1954 | |||
| 1955 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_compress(bool __compress) const | ||
| 1956 | { | ||
| 1957 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1958 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1959 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_compress(__compress).get()); | ||
| 1960 | #else | ||
| 1961 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); | ||
| 1962 | #endif | ||
| 1963 | } | ||
| 1964 | |||
| 1965 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_timeout(int __timeout) const | ||
| 1966 | { | ||
| 1967 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1968 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1969 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_timeout(__timeout).get()); | ||
| 1970 | #else | ||
| 1971 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); | ||
| 1972 | #endif | ||
| 1973 | } | ||
| 1974 | |||
| 1975 | ::IceInternal::ProxyHandle<CreatePrescriptionRequest> ice_connectionId(const std::string& __id) const | ||
| 1976 | { | ||
| 1977 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 1978 | typedef ::IceProxy::Ice::Object _Base; | ||
| 1979 | return dynamic_cast<CreatePrescriptionRequest*>(_Base::ice_connectionId(__id).get()); | ||
| 1980 | #else | ||
| 1981 | return dynamic_cast<CreatePrescriptionRequest*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); | ||
| 1982 | #endif | ||
| 1983 | } | ||
| 1984 | |||
| 1985 | static const ::std::string& ice_staticId(); | ||
| 1986 | |||
| 1987 | private: | ||
| 1988 | |||
| 1989 | virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); | ||
| 1990 | virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); | ||
| 1991 | virtual ::IceProxy::Ice::Object* __newInstance() const; | ||
| 1992 | }; | ||
| 1993 | |||
| 1994 | class ConsumePrescriptionRequest : virtual public ::IceProxy::Ehr::ThirdPartyRequest | ||
| 1995 | { | ||
| 1996 | public: | ||
| 1997 | |||
| 1998 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_context(const ::Ice::Context& __context) const | ||
| 1999 | { | ||
| 2000 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2001 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2002 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_context(__context).get()); | ||
| 2003 | #else | ||
| 2004 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_context(__context).get()); | ||
| 2005 | #endif | ||
| 2006 | } | ||
| 2007 | |||
| 2008 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_adapterId(const std::string& __id) const | ||
| 2009 | { | ||
| 2010 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2011 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2012 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_adapterId(__id).get()); | ||
| 2013 | #else | ||
| 2014 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); | ||
| 2015 | #endif | ||
| 2016 | } | ||
| 2017 | |||
| 2018 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const | ||
| 2019 | { | ||
| 2020 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2021 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2022 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_endpoints(__endpoints).get()); | ||
| 2023 | #else | ||
| 2024 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); | ||
| 2025 | #endif | ||
| 2026 | } | ||
| 2027 | |||
| 2028 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_locatorCacheTimeout(int __timeout) const | ||
| 2029 | { | ||
| 2030 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2031 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2032 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_locatorCacheTimeout(__timeout).get()); | ||
| 2033 | #else | ||
| 2034 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); | ||
| 2035 | #endif | ||
| 2036 | } | ||
| 2037 | |||
| 2038 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_connectionCached(bool __cached) const | ||
| 2039 | { | ||
| 2040 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2041 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2042 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_connectionCached(__cached).get()); | ||
| 2043 | #else | ||
| 2044 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); | ||
| 2045 | #endif | ||
| 2046 | } | ||
| 2047 | |||
| 2048 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_endpointSelection(::Ice::EndpointSelectionType __est) const | ||
| 2049 | { | ||
| 2050 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2051 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2052 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_endpointSelection(__est).get()); | ||
| 2053 | #else | ||
| 2054 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); | ||
| 2055 | #endif | ||
| 2056 | } | ||
| 2057 | |||
| 2058 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_secure(bool __secure) const | ||
| 2059 | { | ||
| 2060 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2061 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2062 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_secure(__secure).get()); | ||
| 2063 | #else | ||
| 2064 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); | ||
| 2065 | #endif | ||
| 2066 | } | ||
| 2067 | |||
| 2068 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_preferSecure(bool __preferSecure) const | ||
| 2069 | { | ||
| 2070 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2071 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2072 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_preferSecure(__preferSecure).get()); | ||
| 2073 | #else | ||
| 2074 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); | ||
| 2075 | #endif | ||
| 2076 | } | ||
| 2077 | |||
| 2078 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_router(const ::Ice::RouterPrx& __router) const | ||
| 2079 | { | ||
| 2080 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2081 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2082 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_router(__router).get()); | ||
| 2083 | #else | ||
| 2084 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_router(__router).get()); | ||
| 2085 | #endif | ||
| 2086 | } | ||
| 2087 | |||
| 2088 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_locator(const ::Ice::LocatorPrx& __locator) const | ||
| 2089 | { | ||
| 2090 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2091 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2092 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_locator(__locator).get()); | ||
| 2093 | #else | ||
| 2094 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); | ||
| 2095 | #endif | ||
| 2096 | } | ||
| 2097 | |||
| 2098 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_collocationOptimized(bool __co) const | ||
| 2099 | { | ||
| 2100 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2101 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2102 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_collocationOptimized(__co).get()); | ||
| 2103 | #else | ||
| 2104 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); | ||
| 2105 | #endif | ||
| 2106 | } | ||
| 2107 | |||
| 2108 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_twoway() const | ||
| 2109 | { | ||
| 2110 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2111 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2112 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_twoway().get()); | ||
| 2113 | #else | ||
| 2114 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_twoway().get()); | ||
| 2115 | #endif | ||
| 2116 | } | ||
| 2117 | |||
| 2118 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_oneway() const | ||
| 2119 | { | ||
| 2120 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2121 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2122 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_oneway().get()); | ||
| 2123 | #else | ||
| 2124 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_oneway().get()); | ||
| 2125 | #endif | ||
| 2126 | } | ||
| 2127 | |||
| 2128 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_batchOneway() const | ||
| 2129 | { | ||
| 2130 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2131 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2132 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_batchOneway().get()); | ||
| 2133 | #else | ||
| 2134 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_batchOneway().get()); | ||
| 2135 | #endif | ||
| 2136 | } | ||
| 2137 | |||
| 2138 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_datagram() const | ||
| 2139 | { | ||
| 2140 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2141 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2142 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_datagram().get()); | ||
| 2143 | #else | ||
| 2144 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_datagram().get()); | ||
| 2145 | #endif | ||
| 2146 | } | ||
| 2147 | |||
| 2148 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_batchDatagram() const | ||
| 2149 | { | ||
| 2150 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2151 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2152 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_batchDatagram().get()); | ||
| 2153 | #else | ||
| 2154 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); | ||
| 2155 | #endif | ||
| 2156 | } | ||
| 2157 | |||
| 2158 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_compress(bool __compress) const | ||
| 2159 | { | ||
| 2160 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2161 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2162 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_compress(__compress).get()); | ||
| 2163 | #else | ||
| 2164 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); | ||
| 2165 | #endif | ||
| 2166 | } | ||
| 2167 | |||
| 2168 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_timeout(int __timeout) const | ||
| 2169 | { | ||
| 2170 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2171 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2172 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_timeout(__timeout).get()); | ||
| 2173 | #else | ||
| 2174 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); | ||
| 2175 | #endif | ||
| 2176 | } | ||
| 2177 | |||
| 2178 | ::IceInternal::ProxyHandle<ConsumePrescriptionRequest> ice_connectionId(const std::string& __id) const | ||
| 2179 | { | ||
| 2180 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2181 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2182 | return dynamic_cast<ConsumePrescriptionRequest*>(_Base::ice_connectionId(__id).get()); | ||
| 2183 | #else | ||
| 2184 | return dynamic_cast<ConsumePrescriptionRequest*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); | ||
| 2185 | #endif | ||
| 2186 | } | ||
| 2187 | |||
| 2188 | static const ::std::string& ice_staticId(); | ||
| 2189 | |||
| 2190 | private: | ||
| 2191 | |||
| 2192 | virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); | ||
| 2193 | virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); | ||
| 2194 | virtual ::IceProxy::Ice::Object* __newInstance() const; | ||
| 2195 | }; | ||
| 2196 | |||
| 2197 | class ListDocumentsRequest : virtual public ::IceProxy::Ehr::ThirdPartyRequest | ||
| 2198 | { | ||
| 2199 | public: | ||
| 2200 | |||
| 2201 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_context(const ::Ice::Context& __context) const | ||
| 2202 | { | ||
| 2203 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2204 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2205 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_context(__context).get()); | ||
| 2206 | #else | ||
| 2207 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_context(__context).get()); | ||
| 2208 | #endif | ||
| 2209 | } | ||
| 2210 | |||
| 2211 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_adapterId(const std::string& __id) const | ||
| 2212 | { | ||
| 2213 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2214 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2215 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_adapterId(__id).get()); | ||
| 2216 | #else | ||
| 2217 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); | ||
| 2218 | #endif | ||
| 2219 | } | ||
| 2220 | |||
| 2221 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const | ||
| 2222 | { | ||
| 2223 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2224 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2225 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_endpoints(__endpoints).get()); | ||
| 2226 | #else | ||
| 2227 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); | ||
| 2228 | #endif | ||
| 2229 | } | ||
| 2230 | |||
| 2231 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_locatorCacheTimeout(int __timeout) const | ||
| 2232 | { | ||
| 2233 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2234 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2235 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_locatorCacheTimeout(__timeout).get()); | ||
| 2236 | #else | ||
| 2237 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); | ||
| 2238 | #endif | ||
| 2239 | } | ||
| 2240 | |||
| 2241 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_connectionCached(bool __cached) const | ||
| 2242 | { | ||
| 2243 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2244 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2245 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_connectionCached(__cached).get()); | ||
| 2246 | #else | ||
| 2247 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); | ||
| 2248 | #endif | ||
| 2249 | } | ||
| 2250 | |||
| 2251 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_endpointSelection(::Ice::EndpointSelectionType __est) const | ||
| 2252 | { | ||
| 2253 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2254 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2255 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_endpointSelection(__est).get()); | ||
| 2256 | #else | ||
| 2257 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); | ||
| 2258 | #endif | ||
| 2259 | } | ||
| 2260 | |||
| 2261 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_secure(bool __secure) const | ||
| 2262 | { | ||
| 2263 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2264 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2265 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_secure(__secure).get()); | ||
| 2266 | #else | ||
| 2267 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); | ||
| 2268 | #endif | ||
| 2269 | } | ||
| 2270 | |||
| 2271 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_preferSecure(bool __preferSecure) const | ||
| 2272 | { | ||
| 2273 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2274 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2275 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_preferSecure(__preferSecure).get()); | ||
| 2276 | #else | ||
| 2277 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); | ||
| 2278 | #endif | ||
| 2279 | } | ||
| 2280 | |||
| 2281 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_router(const ::Ice::RouterPrx& __router) const | ||
| 2282 | { | ||
| 2283 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2284 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2285 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_router(__router).get()); | ||
| 2286 | #else | ||
| 2287 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_router(__router).get()); | ||
| 2288 | #endif | ||
| 2289 | } | ||
| 2290 | |||
| 2291 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_locator(const ::Ice::LocatorPrx& __locator) const | ||
| 2292 | { | ||
| 2293 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2294 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2295 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_locator(__locator).get()); | ||
| 2296 | #else | ||
| 2297 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); | ||
| 2298 | #endif | ||
| 2299 | } | ||
| 2300 | |||
| 2301 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_collocationOptimized(bool __co) const | ||
| 2302 | { | ||
| 2303 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2304 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2305 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_collocationOptimized(__co).get()); | ||
| 2306 | #else | ||
| 2307 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); | ||
| 2308 | #endif | ||
| 2309 | } | ||
| 2310 | |||
| 2311 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_twoway() const | ||
| 2312 | { | ||
| 2313 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2314 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2315 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_twoway().get()); | ||
| 2316 | #else | ||
| 2317 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_twoway().get()); | ||
| 2318 | #endif | ||
| 2319 | } | ||
| 2320 | |||
| 2321 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_oneway() const | ||
| 2322 | { | ||
| 2323 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2324 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2325 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_oneway().get()); | ||
| 2326 | #else | ||
| 2327 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_oneway().get()); | ||
| 2328 | #endif | ||
| 2329 | } | ||
| 2330 | |||
| 2331 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_batchOneway() const | ||
| 2332 | { | ||
| 2333 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2334 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2335 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_batchOneway().get()); | ||
| 2336 | #else | ||
| 2337 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_batchOneway().get()); | ||
| 2338 | #endif | ||
| 2339 | } | ||
| 2340 | |||
| 2341 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_datagram() const | ||
| 2342 | { | ||
| 2343 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2344 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2345 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_datagram().get()); | ||
| 2346 | #else | ||
| 2347 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_datagram().get()); | ||
| 2348 | #endif | ||
| 2349 | } | ||
| 2350 | |||
| 2351 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_batchDatagram() const | ||
| 2352 | { | ||
| 2353 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2354 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2355 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_batchDatagram().get()); | ||
| 2356 | #else | ||
| 2357 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); | ||
| 2358 | #endif | ||
| 2359 | } | ||
| 2360 | |||
| 2361 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_compress(bool __compress) const | ||
| 2362 | { | ||
| 2363 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2364 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2365 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_compress(__compress).get()); | ||
| 2366 | #else | ||
| 2367 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); | ||
| 2368 | #endif | ||
| 2369 | } | ||
| 2370 | |||
| 2371 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_timeout(int __timeout) const | ||
| 2372 | { | ||
| 2373 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2374 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2375 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_timeout(__timeout).get()); | ||
| 2376 | #else | ||
| 2377 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); | ||
| 2378 | #endif | ||
| 2379 | } | ||
| 2380 | |||
| 2381 | ::IceInternal::ProxyHandle<ListDocumentsRequest> ice_connectionId(const std::string& __id) const | ||
| 2382 | { | ||
| 2383 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2384 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2385 | return dynamic_cast<ListDocumentsRequest*>(_Base::ice_connectionId(__id).get()); | ||
| 2386 | #else | ||
| 2387 | return dynamic_cast<ListDocumentsRequest*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); | ||
| 2388 | #endif | ||
| 2389 | } | ||
| 2390 | |||
| 2391 | static const ::std::string& ice_staticId(); | ||
| 2392 | |||
| 2393 | private: | ||
| 2394 | |||
| 2395 | virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); | ||
| 2396 | virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); | ||
| 2397 | virtual ::IceProxy::Ice::Object* __newInstance() const; | ||
| 2398 | }; | ||
| 2399 | |||
| 2400 | class FindDocumentsRequest : virtual public ::IceProxy::Ehr::ThirdPartyRequest | ||
| 2401 | { | ||
| 2402 | public: | ||
| 2403 | |||
| 2404 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_context(const ::Ice::Context& __context) const | ||
| 2405 | { | ||
| 2406 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2407 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2408 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_context(__context).get()); | ||
| 2409 | #else | ||
| 2410 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_context(__context).get()); | ||
| 2411 | #endif | ||
| 2412 | } | ||
| 2413 | |||
| 2414 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_adapterId(const std::string& __id) const | ||
| 2415 | { | ||
| 2416 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2417 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2418 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_adapterId(__id).get()); | ||
| 2419 | #else | ||
| 2420 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); | ||
| 2421 | #endif | ||
| 2422 | } | ||
| 2423 | |||
| 2424 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const | ||
| 2425 | { | ||
| 2426 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2427 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2428 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_endpoints(__endpoints).get()); | ||
| 2429 | #else | ||
| 2430 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); | ||
| 2431 | #endif | ||
| 2432 | } | ||
| 2433 | |||
| 2434 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_locatorCacheTimeout(int __timeout) const | ||
| 2435 | { | ||
| 2436 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2437 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2438 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_locatorCacheTimeout(__timeout).get()); | ||
| 2439 | #else | ||
| 2440 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); | ||
| 2441 | #endif | ||
| 2442 | } | ||
| 2443 | |||
| 2444 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_connectionCached(bool __cached) const | ||
| 2445 | { | ||
| 2446 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2447 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2448 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_connectionCached(__cached).get()); | ||
| 2449 | #else | ||
| 2450 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); | ||
| 2451 | #endif | ||
| 2452 | } | ||
| 2453 | |||
| 2454 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_endpointSelection(::Ice::EndpointSelectionType __est) const | ||
| 2455 | { | ||
| 2456 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2457 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2458 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_endpointSelection(__est).get()); | ||
| 2459 | #else | ||
| 2460 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); | ||
| 2461 | #endif | ||
| 2462 | } | ||
| 2463 | |||
| 2464 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_secure(bool __secure) const | ||
| 2465 | { | ||
| 2466 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2467 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2468 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_secure(__secure).get()); | ||
| 2469 | #else | ||
| 2470 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); | ||
| 2471 | #endif | ||
| 2472 | } | ||
| 2473 | |||
| 2474 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_preferSecure(bool __preferSecure) const | ||
| 2475 | { | ||
| 2476 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2477 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2478 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_preferSecure(__preferSecure).get()); | ||
| 2479 | #else | ||
| 2480 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); | ||
| 2481 | #endif | ||
| 2482 | } | ||
| 2483 | |||
| 2484 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_router(const ::Ice::RouterPrx& __router) const | ||
| 2485 | { | ||
| 2486 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2487 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2488 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_router(__router).get()); | ||
| 2489 | #else | ||
| 2490 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_router(__router).get()); | ||
| 2491 | #endif | ||
| 2492 | } | ||
| 2493 | |||
| 2494 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_locator(const ::Ice::LocatorPrx& __locator) const | ||
| 2495 | { | ||
| 2496 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2497 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2498 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_locator(__locator).get()); | ||
| 2499 | #else | ||
| 2500 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); | ||
| 2501 | #endif | ||
| 2502 | } | ||
| 2503 | |||
| 2504 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_collocationOptimized(bool __co) const | ||
| 2505 | { | ||
| 2506 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2507 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2508 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_collocationOptimized(__co).get()); | ||
| 2509 | #else | ||
| 2510 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); | ||
| 2511 | #endif | ||
| 2512 | } | ||
| 2513 | |||
| 2514 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_twoway() const | ||
| 2515 | { | ||
| 2516 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2517 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2518 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_twoway().get()); | ||
| 2519 | #else | ||
| 2520 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_twoway().get()); | ||
| 2521 | #endif | ||
| 2522 | } | ||
| 2523 | |||
| 2524 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_oneway() const | ||
| 2525 | { | ||
| 2526 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2527 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2528 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_oneway().get()); | ||
| 2529 | #else | ||
| 2530 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_oneway().get()); | ||
| 2531 | #endif | ||
| 2532 | } | ||
| 2533 | |||
| 2534 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_batchOneway() const | ||
| 2535 | { | ||
| 2536 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2537 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2538 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_batchOneway().get()); | ||
| 2539 | #else | ||
| 2540 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_batchOneway().get()); | ||
| 2541 | #endif | ||
| 2542 | } | ||
| 2543 | |||
| 2544 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_datagram() const | ||
| 2545 | { | ||
| 2546 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2547 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2548 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_datagram().get()); | ||
| 2549 | #else | ||
| 2550 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_datagram().get()); | ||
| 2551 | #endif | ||
| 2552 | } | ||
| 2553 | |||
| 2554 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_batchDatagram() const | ||
| 2555 | { | ||
| 2556 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2557 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2558 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_batchDatagram().get()); | ||
| 2559 | #else | ||
| 2560 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); | ||
| 2561 | #endif | ||
| 2562 | } | ||
| 2563 | |||
| 2564 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_compress(bool __compress) const | ||
| 2565 | { | ||
| 2566 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2567 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2568 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_compress(__compress).get()); | ||
| 2569 | #else | ||
| 2570 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); | ||
| 2571 | #endif | ||
| 2572 | } | ||
| 2573 | |||
| 2574 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_timeout(int __timeout) const | ||
| 2575 | { | ||
| 2576 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2577 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2578 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_timeout(__timeout).get()); | ||
| 2579 | #else | ||
| 2580 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); | ||
| 2581 | #endif | ||
| 2582 | } | ||
| 2583 | |||
| 2584 | ::IceInternal::ProxyHandle<FindDocumentsRequest> ice_connectionId(const std::string& __id) const | ||
| 2585 | { | ||
| 2586 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2587 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2588 | return dynamic_cast<FindDocumentsRequest*>(_Base::ice_connectionId(__id).get()); | ||
| 2589 | #else | ||
| 2590 | return dynamic_cast<FindDocumentsRequest*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); | ||
| 2591 | #endif | ||
| 2592 | } | ||
| 2593 | |||
| 2594 | static const ::std::string& ice_staticId(); | ||
| 2595 | |||
| 2596 | private: | ||
| 2597 | |||
| 2598 | virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); | ||
| 2599 | virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); | ||
| 2600 | virtual ::IceProxy::Ice::Object* __newInstance() const; | ||
| 2601 | }; | ||
| 2602 | |||
| 2603 | class CreatePermissionRequest : virtual public ::IceProxy::Ehr::Request | ||
| 2604 | { | ||
| 2605 | public: | ||
| 2606 | |||
| 2607 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_context(const ::Ice::Context& __context) const | ||
| 2608 | { | ||
| 2609 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2610 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2611 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_context(__context).get()); | ||
| 2612 | #else | ||
| 2613 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_context(__context).get()); | ||
| 2614 | #endif | ||
| 2615 | } | ||
| 2616 | |||
| 2617 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_adapterId(const std::string& __id) const | ||
| 2618 | { | ||
| 2619 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2620 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2621 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_adapterId(__id).get()); | ||
| 2622 | #else | ||
| 2623 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); | ||
| 2624 | #endif | ||
| 2625 | } | ||
| 2626 | |||
| 2627 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const | ||
| 2628 | { | ||
| 2629 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2630 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2631 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_endpoints(__endpoints).get()); | ||
| 2632 | #else | ||
| 2633 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); | ||
| 2634 | #endif | ||
| 2635 | } | ||
| 2636 | |||
| 2637 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_locatorCacheTimeout(int __timeout) const | ||
| 2638 | { | ||
| 2639 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2640 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2641 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_locatorCacheTimeout(__timeout).get()); | ||
| 2642 | #else | ||
| 2643 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); | ||
| 2644 | #endif | ||
| 2645 | } | ||
| 2646 | |||
| 2647 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_connectionCached(bool __cached) const | ||
| 2648 | { | ||
| 2649 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2650 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2651 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_connectionCached(__cached).get()); | ||
| 2652 | #else | ||
| 2653 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); | ||
| 2654 | #endif | ||
| 2655 | } | ||
| 2656 | |||
| 2657 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_endpointSelection(::Ice::EndpointSelectionType __est) const | ||
| 2658 | { | ||
| 2659 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2660 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2661 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_endpointSelection(__est).get()); | ||
| 2662 | #else | ||
| 2663 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); | ||
| 2664 | #endif | ||
| 2665 | } | ||
| 2666 | |||
| 2667 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_secure(bool __secure) const | ||
| 2668 | { | ||
| 2669 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2670 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2671 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_secure(__secure).get()); | ||
| 2672 | #else | ||
| 2673 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); | ||
| 2674 | #endif | ||
| 2675 | } | ||
| 2676 | |||
| 2677 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_preferSecure(bool __preferSecure) const | ||
| 2678 | { | ||
| 2679 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2680 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2681 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_preferSecure(__preferSecure).get()); | ||
| 2682 | #else | ||
| 2683 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); | ||
| 2684 | #endif | ||
| 2685 | } | ||
| 2686 | |||
| 2687 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_router(const ::Ice::RouterPrx& __router) const | ||
| 2688 | { | ||
| 2689 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2690 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2691 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_router(__router).get()); | ||
| 2692 | #else | ||
| 2693 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_router(__router).get()); | ||
| 2694 | #endif | ||
| 2695 | } | ||
| 2696 | |||
| 2697 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_locator(const ::Ice::LocatorPrx& __locator) const | ||
| 2698 | { | ||
| 2699 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2700 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2701 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_locator(__locator).get()); | ||
| 2702 | #else | ||
| 2703 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); | ||
| 2704 | #endif | ||
| 2705 | } | ||
| 2706 | |||
| 2707 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_collocationOptimized(bool __co) const | ||
| 2708 | { | ||
| 2709 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2710 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2711 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_collocationOptimized(__co).get()); | ||
| 2712 | #else | ||
| 2713 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); | ||
| 2714 | #endif | ||
| 2715 | } | ||
| 2716 | |||
| 2717 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_twoway() const | ||
| 2718 | { | ||
| 2719 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2720 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2721 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_twoway().get()); | ||
| 2722 | #else | ||
| 2723 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_twoway().get()); | ||
| 2724 | #endif | ||
| 2725 | } | ||
| 2726 | |||
| 2727 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_oneway() const | ||
| 2728 | { | ||
| 2729 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2730 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2731 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_oneway().get()); | ||
| 2732 | #else | ||
| 2733 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_oneway().get()); | ||
| 2734 | #endif | ||
| 2735 | } | ||
| 2736 | |||
| 2737 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_batchOneway() const | ||
| 2738 | { | ||
| 2739 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2740 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2741 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_batchOneway().get()); | ||
| 2742 | #else | ||
| 2743 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_batchOneway().get()); | ||
| 2744 | #endif | ||
| 2745 | } | ||
| 2746 | |||
| 2747 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_datagram() const | ||
| 2748 | { | ||
| 2749 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2750 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2751 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_datagram().get()); | ||
| 2752 | #else | ||
| 2753 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_datagram().get()); | ||
| 2754 | #endif | ||
| 2755 | } | ||
| 2756 | |||
| 2757 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_batchDatagram() const | ||
| 2758 | { | ||
| 2759 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2760 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2761 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_batchDatagram().get()); | ||
| 2762 | #else | ||
| 2763 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); | ||
| 2764 | #endif | ||
| 2765 | } | ||
| 2766 | |||
| 2767 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_compress(bool __compress) const | ||
| 2768 | { | ||
| 2769 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2770 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2771 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_compress(__compress).get()); | ||
| 2772 | #else | ||
| 2773 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); | ||
| 2774 | #endif | ||
| 2775 | } | ||
| 2776 | |||
| 2777 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_timeout(int __timeout) const | ||
| 2778 | { | ||
| 2779 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2780 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2781 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_timeout(__timeout).get()); | ||
| 2782 | #else | ||
| 2783 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); | ||
| 2784 | #endif | ||
| 2785 | } | ||
| 2786 | |||
| 2787 | ::IceInternal::ProxyHandle<CreatePermissionRequest> ice_connectionId(const std::string& __id) const | ||
| 2788 | { | ||
| 2789 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2790 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2791 | return dynamic_cast<CreatePermissionRequest*>(_Base::ice_connectionId(__id).get()); | ||
| 2792 | #else | ||
| 2793 | return dynamic_cast<CreatePermissionRequest*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); | ||
| 2794 | #endif | ||
| 2795 | } | ||
| 2796 | |||
| 2797 | static const ::std::string& ice_staticId(); | ||
| 2798 | |||
| 2799 | private: | ||
| 2800 | |||
| 2801 | virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); | ||
| 2802 | virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); | ||
| 2803 | virtual ::IceProxy::Ice::Object* __newInstance() const; | ||
| 2804 | }; | ||
| 2805 | |||
| 2806 | class SetDefaultAccessRequest : virtual public ::IceProxy::Ehr::Request | ||
| 2807 | { | ||
| 2808 | public: | ||
| 2809 | |||
| 2810 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_context(const ::Ice::Context& __context) const | ||
| 2811 | { | ||
| 2812 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2813 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2814 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_context(__context).get()); | ||
| 2815 | #else | ||
| 2816 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_context(__context).get()); | ||
| 2817 | #endif | ||
| 2818 | } | ||
| 2819 | |||
| 2820 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_adapterId(const std::string& __id) const | ||
| 2821 | { | ||
| 2822 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2823 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2824 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_adapterId(__id).get()); | ||
| 2825 | #else | ||
| 2826 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); | ||
| 2827 | #endif | ||
| 2828 | } | ||
| 2829 | |||
| 2830 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const | ||
| 2831 | { | ||
| 2832 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2833 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2834 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_endpoints(__endpoints).get()); | ||
| 2835 | #else | ||
| 2836 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); | ||
| 2837 | #endif | ||
| 2838 | } | ||
| 2839 | |||
| 2840 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_locatorCacheTimeout(int __timeout) const | ||
| 2841 | { | ||
| 2842 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2843 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2844 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_locatorCacheTimeout(__timeout).get()); | ||
| 2845 | #else | ||
| 2846 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); | ||
| 2847 | #endif | ||
| 2848 | } | ||
| 2849 | |||
| 2850 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_connectionCached(bool __cached) const | ||
| 2851 | { | ||
| 2852 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2853 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2854 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_connectionCached(__cached).get()); | ||
| 2855 | #else | ||
| 2856 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); | ||
| 2857 | #endif | ||
| 2858 | } | ||
| 2859 | |||
| 2860 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_endpointSelection(::Ice::EndpointSelectionType __est) const | ||
| 2861 | { | ||
| 2862 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2863 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2864 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_endpointSelection(__est).get()); | ||
| 2865 | #else | ||
| 2866 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); | ||
| 2867 | #endif | ||
| 2868 | } | ||
| 2869 | |||
| 2870 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_secure(bool __secure) const | ||
| 2871 | { | ||
| 2872 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2873 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2874 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_secure(__secure).get()); | ||
| 2875 | #else | ||
| 2876 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); | ||
| 2877 | #endif | ||
| 2878 | } | ||
| 2879 | |||
| 2880 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_preferSecure(bool __preferSecure) const | ||
| 2881 | { | ||
| 2882 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2883 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2884 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_preferSecure(__preferSecure).get()); | ||
| 2885 | #else | ||
| 2886 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); | ||
| 2887 | #endif | ||
| 2888 | } | ||
| 2889 | |||
| 2890 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_router(const ::Ice::RouterPrx& __router) const | ||
| 2891 | { | ||
| 2892 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2893 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2894 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_router(__router).get()); | ||
| 2895 | #else | ||
| 2896 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_router(__router).get()); | ||
| 2897 | #endif | ||
| 2898 | } | ||
| 2899 | |||
| 2900 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_locator(const ::Ice::LocatorPrx& __locator) const | ||
| 2901 | { | ||
| 2902 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2903 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2904 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_locator(__locator).get()); | ||
| 2905 | #else | ||
| 2906 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); | ||
| 2907 | #endif | ||
| 2908 | } | ||
| 2909 | |||
| 2910 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_collocationOptimized(bool __co) const | ||
| 2911 | { | ||
| 2912 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2913 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2914 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_collocationOptimized(__co).get()); | ||
| 2915 | #else | ||
| 2916 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); | ||
| 2917 | #endif | ||
| 2918 | } | ||
| 2919 | |||
| 2920 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_twoway() const | ||
| 2921 | { | ||
| 2922 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2923 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2924 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_twoway().get()); | ||
| 2925 | #else | ||
| 2926 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_twoway().get()); | ||
| 2927 | #endif | ||
| 2928 | } | ||
| 2929 | |||
| 2930 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_oneway() const | ||
| 2931 | { | ||
| 2932 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2933 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2934 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_oneway().get()); | ||
| 2935 | #else | ||
| 2936 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_oneway().get()); | ||
| 2937 | #endif | ||
| 2938 | } | ||
| 2939 | |||
| 2940 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_batchOneway() const | ||
| 2941 | { | ||
| 2942 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2943 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2944 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_batchOneway().get()); | ||
| 2945 | #else | ||
| 2946 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_batchOneway().get()); | ||
| 2947 | #endif | ||
| 2948 | } | ||
| 2949 | |||
| 2950 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_datagram() const | ||
| 2951 | { | ||
| 2952 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2953 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2954 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_datagram().get()); | ||
| 2955 | #else | ||
| 2956 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_datagram().get()); | ||
| 2957 | #endif | ||
| 2958 | } | ||
| 2959 | |||
| 2960 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_batchDatagram() const | ||
| 2961 | { | ||
| 2962 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2963 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2964 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_batchDatagram().get()); | ||
| 2965 | #else | ||
| 2966 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); | ||
| 2967 | #endif | ||
| 2968 | } | ||
| 2969 | |||
| 2970 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_compress(bool __compress) const | ||
| 2971 | { | ||
| 2972 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2973 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2974 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_compress(__compress).get()); | ||
| 2975 | #else | ||
| 2976 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); | ||
| 2977 | #endif | ||
| 2978 | } | ||
| 2979 | |||
| 2980 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_timeout(int __timeout) const | ||
| 2981 | { | ||
| 2982 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2983 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2984 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_timeout(__timeout).get()); | ||
| 2985 | #else | ||
| 2986 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); | ||
| 2987 | #endif | ||
| 2988 | } | ||
| 2989 | |||
| 2990 | ::IceInternal::ProxyHandle<SetDefaultAccessRequest> ice_connectionId(const std::string& __id) const | ||
| 2991 | { | ||
| 2992 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 2993 | typedef ::IceProxy::Ice::Object _Base; | ||
| 2994 | return dynamic_cast<SetDefaultAccessRequest*>(_Base::ice_connectionId(__id).get()); | ||
| 2995 | #else | ||
| 2996 | return dynamic_cast<SetDefaultAccessRequest*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); | ||
| 2997 | #endif | ||
| 2998 | } | ||
| 2999 | |||
| 3000 | static const ::std::string& ice_staticId(); | ||
| 3001 | |||
| 3002 | private: | ||
| 3003 | |||
| 3004 | virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); | ||
| 3005 | virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); | ||
| 3006 | virtual ::IceProxy::Ice::Object* __newInstance() const; | ||
| 3007 | }; | ||
| 3008 | |||
| 3009 | class ListPermissionsRequest : virtual public ::IceProxy::Ehr::Request | ||
| 3010 | { | ||
| 3011 | public: | ||
| 3012 | |||
| 3013 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_context(const ::Ice::Context& __context) const | ||
| 3014 | { | ||
| 3015 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3016 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3017 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_context(__context).get()); | ||
| 3018 | #else | ||
| 3019 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_context(__context).get()); | ||
| 3020 | #endif | ||
| 3021 | } | ||
| 3022 | |||
| 3023 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_adapterId(const std::string& __id) const | ||
| 3024 | { | ||
| 3025 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3026 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3027 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_adapterId(__id).get()); | ||
| 3028 | #else | ||
| 3029 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); | ||
| 3030 | #endif | ||
| 3031 | } | ||
| 3032 | |||
| 3033 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const | ||
| 3034 | { | ||
| 3035 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3036 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3037 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_endpoints(__endpoints).get()); | ||
| 3038 | #else | ||
| 3039 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); | ||
| 3040 | #endif | ||
| 3041 | } | ||
| 3042 | |||
| 3043 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_locatorCacheTimeout(int __timeout) const | ||
| 3044 | { | ||
| 3045 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3046 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3047 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_locatorCacheTimeout(__timeout).get()); | ||
| 3048 | #else | ||
| 3049 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); | ||
| 3050 | #endif | ||
| 3051 | } | ||
| 3052 | |||
| 3053 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_connectionCached(bool __cached) const | ||
| 3054 | { | ||
| 3055 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3056 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3057 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_connectionCached(__cached).get()); | ||
| 3058 | #else | ||
| 3059 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); | ||
| 3060 | #endif | ||
| 3061 | } | ||
| 3062 | |||
| 3063 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_endpointSelection(::Ice::EndpointSelectionType __est) const | ||
| 3064 | { | ||
| 3065 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3066 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3067 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_endpointSelection(__est).get()); | ||
| 3068 | #else | ||
| 3069 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); | ||
| 3070 | #endif | ||
| 3071 | } | ||
| 3072 | |||
| 3073 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_secure(bool __secure) const | ||
| 3074 | { | ||
| 3075 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3076 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3077 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_secure(__secure).get()); | ||
| 3078 | #else | ||
| 3079 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); | ||
| 3080 | #endif | ||
| 3081 | } | ||
| 3082 | |||
| 3083 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_preferSecure(bool __preferSecure) const | ||
| 3084 | { | ||
| 3085 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3086 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3087 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_preferSecure(__preferSecure).get()); | ||
| 3088 | #else | ||
| 3089 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); | ||
| 3090 | #endif | ||
| 3091 | } | ||
| 3092 | |||
| 3093 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_router(const ::Ice::RouterPrx& __router) const | ||
| 3094 | { | ||
| 3095 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3096 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3097 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_router(__router).get()); | ||
| 3098 | #else | ||
| 3099 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_router(__router).get()); | ||
| 3100 | #endif | ||
| 3101 | } | ||
| 3102 | |||
| 3103 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_locator(const ::Ice::LocatorPrx& __locator) const | ||
| 3104 | { | ||
| 3105 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3106 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3107 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_locator(__locator).get()); | ||
| 3108 | #else | ||
| 3109 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); | ||
| 3110 | #endif | ||
| 3111 | } | ||
| 3112 | |||
| 3113 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_collocationOptimized(bool __co) const | ||
| 3114 | { | ||
| 3115 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3116 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3117 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_collocationOptimized(__co).get()); | ||
| 3118 | #else | ||
| 3119 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); | ||
| 3120 | #endif | ||
| 3121 | } | ||
| 3122 | |||
| 3123 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_twoway() const | ||
| 3124 | { | ||
| 3125 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3126 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3127 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_twoway().get()); | ||
| 3128 | #else | ||
| 3129 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_twoway().get()); | ||
| 3130 | #endif | ||
| 3131 | } | ||
| 3132 | |||
| 3133 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_oneway() const | ||
| 3134 | { | ||
| 3135 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3136 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3137 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_oneway().get()); | ||
| 3138 | #else | ||
| 3139 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_oneway().get()); | ||
| 3140 | #endif | ||
| 3141 | } | ||
| 3142 | |||
| 3143 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_batchOneway() const | ||
| 3144 | { | ||
| 3145 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3146 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3147 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_batchOneway().get()); | ||
| 3148 | #else | ||
| 3149 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_batchOneway().get()); | ||
| 3150 | #endif | ||
| 3151 | } | ||
| 3152 | |||
| 3153 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_datagram() const | ||
| 3154 | { | ||
| 3155 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3156 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3157 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_datagram().get()); | ||
| 3158 | #else | ||
| 3159 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_datagram().get()); | ||
| 3160 | #endif | ||
| 3161 | } | ||
| 3162 | |||
| 3163 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_batchDatagram() const | ||
| 3164 | { | ||
| 3165 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3166 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3167 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_batchDatagram().get()); | ||
| 3168 | #else | ||
| 3169 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); | ||
| 3170 | #endif | ||
| 3171 | } | ||
| 3172 | |||
| 3173 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_compress(bool __compress) const | ||
| 3174 | { | ||
| 3175 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3176 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3177 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_compress(__compress).get()); | ||
| 3178 | #else | ||
| 3179 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); | ||
| 3180 | #endif | ||
| 3181 | } | ||
| 3182 | |||
| 3183 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_timeout(int __timeout) const | ||
| 3184 | { | ||
| 3185 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3186 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3187 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_timeout(__timeout).get()); | ||
| 3188 | #else | ||
| 3189 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); | ||
| 3190 | #endif | ||
| 3191 | } | ||
| 3192 | |||
| 3193 | ::IceInternal::ProxyHandle<ListPermissionsRequest> ice_connectionId(const std::string& __id) const | ||
| 3194 | { | ||
| 3195 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3196 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3197 | return dynamic_cast<ListPermissionsRequest*>(_Base::ice_connectionId(__id).get()); | ||
| 3198 | #else | ||
| 3199 | return dynamic_cast<ListPermissionsRequest*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); | ||
| 3200 | #endif | ||
| 3201 | } | ||
| 3202 | |||
| 3203 | static const ::std::string& ice_staticId(); | ||
| 3204 | |||
| 3205 | private: | ||
| 3206 | |||
| 3207 | virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); | ||
| 3208 | virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); | ||
| 3209 | virtual ::IceProxy::Ice::Object* __newInstance() const; | ||
| 3210 | }; | ||
| 3211 | |||
| 3212 | class RemovePermissionRequest : virtual public ::IceProxy::Ehr::Request | ||
| 3213 | { | ||
| 3214 | public: | ||
| 3215 | |||
| 3216 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_context(const ::Ice::Context& __context) const | ||
| 3217 | { | ||
| 3218 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3219 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3220 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_context(__context).get()); | ||
| 3221 | #else | ||
| 3222 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_context(__context).get()); | ||
| 3223 | #endif | ||
| 3224 | } | ||
| 3225 | |||
| 3226 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_adapterId(const std::string& __id) const | ||
| 3227 | { | ||
| 3228 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3229 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3230 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_adapterId(__id).get()); | ||
| 3231 | #else | ||
| 3232 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); | ||
| 3233 | #endif | ||
| 3234 | } | ||
| 3235 | |||
| 3236 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const | ||
| 3237 | { | ||
| 3238 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3239 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3240 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_endpoints(__endpoints).get()); | ||
| 3241 | #else | ||
| 3242 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); | ||
| 3243 | #endif | ||
| 3244 | } | ||
| 3245 | |||
| 3246 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_locatorCacheTimeout(int __timeout) const | ||
| 3247 | { | ||
| 3248 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3249 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3250 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_locatorCacheTimeout(__timeout).get()); | ||
| 3251 | #else | ||
| 3252 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); | ||
| 3253 | #endif | ||
| 3254 | } | ||
| 3255 | |||
| 3256 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_connectionCached(bool __cached) const | ||
| 3257 | { | ||
| 3258 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3259 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3260 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_connectionCached(__cached).get()); | ||
| 3261 | #else | ||
| 3262 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); | ||
| 3263 | #endif | ||
| 3264 | } | ||
| 3265 | |||
| 3266 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_endpointSelection(::Ice::EndpointSelectionType __est) const | ||
| 3267 | { | ||
| 3268 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3269 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3270 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_endpointSelection(__est).get()); | ||
| 3271 | #else | ||
| 3272 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); | ||
| 3273 | #endif | ||
| 3274 | } | ||
| 3275 | |||
| 3276 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_secure(bool __secure) const | ||
| 3277 | { | ||
| 3278 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3279 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3280 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_secure(__secure).get()); | ||
| 3281 | #else | ||
| 3282 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); | ||
| 3283 | #endif | ||
| 3284 | } | ||
| 3285 | |||
| 3286 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_preferSecure(bool __preferSecure) const | ||
| 3287 | { | ||
| 3288 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3289 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3290 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_preferSecure(__preferSecure).get()); | ||
| 3291 | #else | ||
| 3292 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); | ||
| 3293 | #endif | ||
| 3294 | } | ||
| 3295 | |||
| 3296 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_router(const ::Ice::RouterPrx& __router) const | ||
| 3297 | { | ||
| 3298 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3299 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3300 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_router(__router).get()); | ||
| 3301 | #else | ||
| 3302 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_router(__router).get()); | ||
| 3303 | #endif | ||
| 3304 | } | ||
| 3305 | |||
| 3306 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_locator(const ::Ice::LocatorPrx& __locator) const | ||
| 3307 | { | ||
| 3308 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3309 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3310 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_locator(__locator).get()); | ||
| 3311 | #else | ||
| 3312 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); | ||
| 3313 | #endif | ||
| 3314 | } | ||
| 3315 | |||
| 3316 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_collocationOptimized(bool __co) const | ||
| 3317 | { | ||
| 3318 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3319 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3320 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_collocationOptimized(__co).get()); | ||
| 3321 | #else | ||
| 3322 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); | ||
| 3323 | #endif | ||
| 3324 | } | ||
| 3325 | |||
| 3326 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_twoway() const | ||
| 3327 | { | ||
| 3328 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3329 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3330 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_twoway().get()); | ||
| 3331 | #else | ||
| 3332 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_twoway().get()); | ||
| 3333 | #endif | ||
| 3334 | } | ||
| 3335 | |||
| 3336 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_oneway() const | ||
| 3337 | { | ||
| 3338 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3339 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3340 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_oneway().get()); | ||
| 3341 | #else | ||
| 3342 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_oneway().get()); | ||
| 3343 | #endif | ||
| 3344 | } | ||
| 3345 | |||
| 3346 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_batchOneway() const | ||
| 3347 | { | ||
| 3348 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3349 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3350 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_batchOneway().get()); | ||
| 3351 | #else | ||
| 3352 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_batchOneway().get()); | ||
| 3353 | #endif | ||
| 3354 | } | ||
| 3355 | |||
| 3356 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_datagram() const | ||
| 3357 | { | ||
| 3358 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3359 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3360 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_datagram().get()); | ||
| 3361 | #else | ||
| 3362 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_datagram().get()); | ||
| 3363 | #endif | ||
| 3364 | } | ||
| 3365 | |||
| 3366 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_batchDatagram() const | ||
| 3367 | { | ||
| 3368 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3369 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3370 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_batchDatagram().get()); | ||
| 3371 | #else | ||
| 3372 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); | ||
| 3373 | #endif | ||
| 3374 | } | ||
| 3375 | |||
| 3376 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_compress(bool __compress) const | ||
| 3377 | { | ||
| 3378 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3379 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3380 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_compress(__compress).get()); | ||
| 3381 | #else | ||
| 3382 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); | ||
| 3383 | #endif | ||
| 3384 | } | ||
| 3385 | |||
| 3386 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_timeout(int __timeout) const | ||
| 3387 | { | ||
| 3388 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3389 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3390 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_timeout(__timeout).get()); | ||
| 3391 | #else | ||
| 3392 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); | ||
| 3393 | #endif | ||
| 3394 | } | ||
| 3395 | |||
| 3396 | ::IceInternal::ProxyHandle<RemovePermissionRequest> ice_connectionId(const std::string& __id) const | ||
| 3397 | { | ||
| 3398 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3399 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3400 | return dynamic_cast<RemovePermissionRequest*>(_Base::ice_connectionId(__id).get()); | ||
| 3401 | #else | ||
| 3402 | return dynamic_cast<RemovePermissionRequest*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); | ||
| 3403 | #endif | ||
| 3404 | } | ||
| 3405 | |||
| 3406 | static const ::std::string& ice_staticId(); | ||
| 3407 | |||
| 3408 | private: | ||
| 3409 | |||
| 3410 | virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); | ||
| 3411 | virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); | ||
| 3412 | virtual ::IceProxy::Ice::Object* __newInstance() const; | ||
| 3413 | }; | ||
| 3414 | |||
| 3415 | class Provider : virtual public ::IceProxy::Ice::Object | ||
| 3416 | { | ||
| 3417 | public: | ||
| 3418 | |||
| 3419 | void createPrescription(const ::Ehr::CreatePrescriptionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature) | ||
| 3420 | { | ||
| 3421 | createPrescription(request, requestorSignature, ownerSignature, 0); | ||
| 3422 | } | ||
| 3423 | void createPrescription(const ::Ehr::CreatePrescriptionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context& __ctx) | ||
| 3424 | { | ||
| 3425 | createPrescription(request, requestorSignature, ownerSignature, &__ctx); | ||
| 3426 | } | ||
| 3427 | |||
| 3428 | private: | ||
| 3429 | |||
| 3430 | void createPrescription(const ::Ehr::CreatePrescriptionRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3431 | |||
| 3432 | public: | ||
| 3433 | |||
| 3434 | void consumePrescription(const ::Ehr::ConsumePrescriptionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature) | ||
| 3435 | { | ||
| 3436 | consumePrescription(request, requestorSignature, ownerSignature, 0); | ||
| 3437 | } | ||
| 3438 | void consumePrescription(const ::Ehr::ConsumePrescriptionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context& __ctx) | ||
| 3439 | { | ||
| 3440 | consumePrescription(request, requestorSignature, ownerSignature, &__ctx); | ||
| 3441 | } | ||
| 3442 | |||
| 3443 | private: | ||
| 3444 | |||
| 3445 | void consumePrescription(const ::Ehr::ConsumePrescriptionRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3446 | |||
| 3447 | public: | ||
| 3448 | |||
| 3449 | ::Ehr::DocumentList listDocuments(const ::Ehr::ListDocumentsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature) | ||
| 3450 | { | ||
| 3451 | return listDocuments(request, requestorSignature, ownerSignature, 0); | ||
| 3452 | } | ||
| 3453 | ::Ehr::DocumentList listDocuments(const ::Ehr::ListDocumentsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context& __ctx) | ||
| 3454 | { | ||
| 3455 | return listDocuments(request, requestorSignature, ownerSignature, &__ctx); | ||
| 3456 | } | ||
| 3457 | |||
| 3458 | private: | ||
| 3459 | |||
| 3460 | ::Ehr::DocumentList listDocuments(const ::Ehr::ListDocumentsRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3461 | |||
| 3462 | public: | ||
| 3463 | |||
| 3464 | ::Ehr::DocumentList findDocuments(const ::Ehr::FindDocumentsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature) | ||
| 3465 | { | ||
| 3466 | return findDocuments(request, requestorSignature, ownerSignature, 0); | ||
| 3467 | } | ||
| 3468 | ::Ehr::DocumentList findDocuments(const ::Ehr::FindDocumentsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ehr::Signature& ownerSignature, const ::Ice::Context& __ctx) | ||
| 3469 | { | ||
| 3470 | return findDocuments(request, requestorSignature, ownerSignature, &__ctx); | ||
| 3471 | } | ||
| 3472 | |||
| 3473 | private: | ||
| 3474 | |||
| 3475 | ::Ehr::DocumentList findDocuments(const ::Ehr::FindDocumentsRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3476 | |||
| 3477 | public: | ||
| 3478 | |||
| 3479 | void setDefaultAccess(const ::Ehr::SetDefaultAccessRequestPtr& request, const ::Ehr::Signature& requestorSignature) | ||
| 3480 | { | ||
| 3481 | setDefaultAccess(request, requestorSignature, 0); | ||
| 3482 | } | ||
| 3483 | void setDefaultAccess(const ::Ehr::SetDefaultAccessRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context& __ctx) | ||
| 3484 | { | ||
| 3485 | setDefaultAccess(request, requestorSignature, &__ctx); | ||
| 3486 | } | ||
| 3487 | |||
| 3488 | private: | ||
| 3489 | |||
| 3490 | void setDefaultAccess(const ::Ehr::SetDefaultAccessRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3491 | |||
| 3492 | public: | ||
| 3493 | |||
| 3494 | void createPermission(const ::Ehr::CreatePermissionRequestPtr& request, const ::Ehr::Signature& requestorSignature) | ||
| 3495 | { | ||
| 3496 | createPermission(request, requestorSignature, 0); | ||
| 3497 | } | ||
| 3498 | void createPermission(const ::Ehr::CreatePermissionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context& __ctx) | ||
| 3499 | { | ||
| 3500 | createPermission(request, requestorSignature, &__ctx); | ||
| 3501 | } | ||
| 3502 | |||
| 3503 | private: | ||
| 3504 | |||
| 3505 | void createPermission(const ::Ehr::CreatePermissionRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3506 | |||
| 3507 | public: | ||
| 3508 | |||
| 3509 | ::Ehr::Permissions listPermissions(const ::Ehr::ListPermissionsRequestPtr& request, const ::Ehr::Signature& requestorSignature) | ||
| 3510 | { | ||
| 3511 | return listPermissions(request, requestorSignature, 0); | ||
| 3512 | } | ||
| 3513 | ::Ehr::Permissions listPermissions(const ::Ehr::ListPermissionsRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context& __ctx) | ||
| 3514 | { | ||
| 3515 | return listPermissions(request, requestorSignature, &__ctx); | ||
| 3516 | } | ||
| 3517 | |||
| 3518 | private: | ||
| 3519 | |||
| 3520 | ::Ehr::Permissions listPermissions(const ::Ehr::ListPermissionsRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3521 | |||
| 3522 | public: | ||
| 3523 | |||
| 3524 | void removePermission(const ::Ehr::RemovePermissionRequestPtr& request, const ::Ehr::Signature& requestorSignature) | ||
| 3525 | { | ||
| 3526 | removePermission(request, requestorSignature, 0); | ||
| 3527 | } | ||
| 3528 | void removePermission(const ::Ehr::RemovePermissionRequestPtr& request, const ::Ehr::Signature& requestorSignature, const ::Ice::Context& __ctx) | ||
| 3529 | { | ||
| 3530 | removePermission(request, requestorSignature, &__ctx); | ||
| 3531 | } | ||
| 3532 | |||
| 3533 | private: | ||
| 3534 | |||
| 3535 | void removePermission(const ::Ehr::RemovePermissionRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3536 | |||
| 3537 | public: | ||
| 3538 | |||
| 3539 | ::IceInternal::ProxyHandle<Provider> ice_context(const ::Ice::Context& __context) const | ||
| 3540 | { | ||
| 3541 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3542 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3543 | return dynamic_cast<Provider*>(_Base::ice_context(__context).get()); | ||
| 3544 | #else | ||
| 3545 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_context(__context).get()); | ||
| 3546 | #endif | ||
| 3547 | } | ||
| 3548 | |||
| 3549 | ::IceInternal::ProxyHandle<Provider> ice_adapterId(const std::string& __id) const | ||
| 3550 | { | ||
| 3551 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3552 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3553 | return dynamic_cast<Provider*>(_Base::ice_adapterId(__id).get()); | ||
| 3554 | #else | ||
| 3555 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); | ||
| 3556 | #endif | ||
| 3557 | } | ||
| 3558 | |||
| 3559 | ::IceInternal::ProxyHandle<Provider> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const | ||
| 3560 | { | ||
| 3561 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3562 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3563 | return dynamic_cast<Provider*>(_Base::ice_endpoints(__endpoints).get()); | ||
| 3564 | #else | ||
| 3565 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); | ||
| 3566 | #endif | ||
| 3567 | } | ||
| 3568 | |||
| 3569 | ::IceInternal::ProxyHandle<Provider> ice_locatorCacheTimeout(int __timeout) const | ||
| 3570 | { | ||
| 3571 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3572 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3573 | return dynamic_cast<Provider*>(_Base::ice_locatorCacheTimeout(__timeout).get()); | ||
| 3574 | #else | ||
| 3575 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); | ||
| 3576 | #endif | ||
| 3577 | } | ||
| 3578 | |||
| 3579 | ::IceInternal::ProxyHandle<Provider> ice_connectionCached(bool __cached) const | ||
| 3580 | { | ||
| 3581 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3582 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3583 | return dynamic_cast<Provider*>(_Base::ice_connectionCached(__cached).get()); | ||
| 3584 | #else | ||
| 3585 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); | ||
| 3586 | #endif | ||
| 3587 | } | ||
| 3588 | |||
| 3589 | ::IceInternal::ProxyHandle<Provider> ice_endpointSelection(::Ice::EndpointSelectionType __est) const | ||
| 3590 | { | ||
| 3591 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3592 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3593 | return dynamic_cast<Provider*>(_Base::ice_endpointSelection(__est).get()); | ||
| 3594 | #else | ||
| 3595 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); | ||
| 3596 | #endif | ||
| 3597 | } | ||
| 3598 | |||
| 3599 | ::IceInternal::ProxyHandle<Provider> ice_secure(bool __secure) const | ||
| 3600 | { | ||
| 3601 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3602 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3603 | return dynamic_cast<Provider*>(_Base::ice_secure(__secure).get()); | ||
| 3604 | #else | ||
| 3605 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); | ||
| 3606 | #endif | ||
| 3607 | } | ||
| 3608 | |||
| 3609 | ::IceInternal::ProxyHandle<Provider> ice_preferSecure(bool __preferSecure) const | ||
| 3610 | { | ||
| 3611 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3612 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3613 | return dynamic_cast<Provider*>(_Base::ice_preferSecure(__preferSecure).get()); | ||
| 3614 | #else | ||
| 3615 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); | ||
| 3616 | #endif | ||
| 3617 | } | ||
| 3618 | |||
| 3619 | ::IceInternal::ProxyHandle<Provider> ice_router(const ::Ice::RouterPrx& __router) const | ||
| 3620 | { | ||
| 3621 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3622 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3623 | return dynamic_cast<Provider*>(_Base::ice_router(__router).get()); | ||
| 3624 | #else | ||
| 3625 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_router(__router).get()); | ||
| 3626 | #endif | ||
| 3627 | } | ||
| 3628 | |||
| 3629 | ::IceInternal::ProxyHandle<Provider> ice_locator(const ::Ice::LocatorPrx& __locator) const | ||
| 3630 | { | ||
| 3631 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3632 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3633 | return dynamic_cast<Provider*>(_Base::ice_locator(__locator).get()); | ||
| 3634 | #else | ||
| 3635 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); | ||
| 3636 | #endif | ||
| 3637 | } | ||
| 3638 | |||
| 3639 | ::IceInternal::ProxyHandle<Provider> ice_collocationOptimized(bool __co) const | ||
| 3640 | { | ||
| 3641 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3642 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3643 | return dynamic_cast<Provider*>(_Base::ice_collocationOptimized(__co).get()); | ||
| 3644 | #else | ||
| 3645 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); | ||
| 3646 | #endif | ||
| 3647 | } | ||
| 3648 | |||
| 3649 | ::IceInternal::ProxyHandle<Provider> ice_twoway() const | ||
| 3650 | { | ||
| 3651 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3652 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3653 | return dynamic_cast<Provider*>(_Base::ice_twoway().get()); | ||
| 3654 | #else | ||
| 3655 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_twoway().get()); | ||
| 3656 | #endif | ||
| 3657 | } | ||
| 3658 | |||
| 3659 | ::IceInternal::ProxyHandle<Provider> ice_oneway() const | ||
| 3660 | { | ||
| 3661 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3662 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3663 | return dynamic_cast<Provider*>(_Base::ice_oneway().get()); | ||
| 3664 | #else | ||
| 3665 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_oneway().get()); | ||
| 3666 | #endif | ||
| 3667 | } | ||
| 3668 | |||
| 3669 | ::IceInternal::ProxyHandle<Provider> ice_batchOneway() const | ||
| 3670 | { | ||
| 3671 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3672 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3673 | return dynamic_cast<Provider*>(_Base::ice_batchOneway().get()); | ||
| 3674 | #else | ||
| 3675 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_batchOneway().get()); | ||
| 3676 | #endif | ||
| 3677 | } | ||
| 3678 | |||
| 3679 | ::IceInternal::ProxyHandle<Provider> ice_datagram() const | ||
| 3680 | { | ||
| 3681 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3682 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3683 | return dynamic_cast<Provider*>(_Base::ice_datagram().get()); | ||
| 3684 | #else | ||
| 3685 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_datagram().get()); | ||
| 3686 | #endif | ||
| 3687 | } | ||
| 3688 | |||
| 3689 | ::IceInternal::ProxyHandle<Provider> ice_batchDatagram() const | ||
| 3690 | { | ||
| 3691 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3692 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3693 | return dynamic_cast<Provider*>(_Base::ice_batchDatagram().get()); | ||
| 3694 | #else | ||
| 3695 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); | ||
| 3696 | #endif | ||
| 3697 | } | ||
| 3698 | |||
| 3699 | ::IceInternal::ProxyHandle<Provider> ice_compress(bool __compress) const | ||
| 3700 | { | ||
| 3701 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3702 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3703 | return dynamic_cast<Provider*>(_Base::ice_compress(__compress).get()); | ||
| 3704 | #else | ||
| 3705 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); | ||
| 3706 | #endif | ||
| 3707 | } | ||
| 3708 | |||
| 3709 | ::IceInternal::ProxyHandle<Provider> ice_timeout(int __timeout) const | ||
| 3710 | { | ||
| 3711 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3712 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3713 | return dynamic_cast<Provider*>(_Base::ice_timeout(__timeout).get()); | ||
| 3714 | #else | ||
| 3715 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); | ||
| 3716 | #endif | ||
| 3717 | } | ||
| 3718 | |||
| 3719 | ::IceInternal::ProxyHandle<Provider> ice_connectionId(const std::string& __id) const | ||
| 3720 | { | ||
| 3721 | #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug | ||
| 3722 | typedef ::IceProxy::Ice::Object _Base; | ||
| 3723 | return dynamic_cast<Provider*>(_Base::ice_connectionId(__id).get()); | ||
| 3724 | #else | ||
| 3725 | return dynamic_cast<Provider*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); | ||
| 3726 | #endif | ||
| 3727 | } | ||
| 3728 | |||
| 3729 | static const ::std::string& ice_staticId(); | ||
| 3730 | |||
| 3731 | private: | ||
| 3732 | |||
| 3733 | virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); | ||
| 3734 | virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); | ||
| 3735 | virtual ::IceProxy::Ice::Object* __newInstance() const; | ||
| 3736 | }; | ||
| 3737 | |||
| 3738 | } | ||
| 3739 | |||
| 3740 | } | ||
| 3741 | |||
| 3742 | namespace IceDelegate | ||
| 3743 | { | ||
| 3744 | |||
| 3745 | namespace Ehr | ||
| 3746 | { | ||
| 3747 | |||
| 3748 | class Document : virtual public ::IceDelegate::Ice::Object | ||
| 3749 | { | ||
| 3750 | public: | ||
| 3751 | }; | ||
| 3752 | |||
| 3753 | class Prescription : virtual public ::IceDelegate::Ehr::Document | ||
| 3754 | { | ||
| 3755 | public: | ||
| 3756 | }; | ||
| 3757 | |||
| 3758 | class ConsumedPrescription : virtual public ::IceDelegate::Ehr::Prescription | ||
| 3759 | { | ||
| 3760 | public: | ||
| 3761 | }; | ||
| 3762 | |||
| 3763 | class Request : virtual public ::IceDelegate::Ice::Object | ||
| 3764 | { | ||
| 3765 | public: | ||
| 3766 | }; | ||
| 3767 | |||
| 3768 | class ThirdPartyRequest : virtual public ::IceDelegate::Ehr::Request | ||
| 3769 | { | ||
| 3770 | public: | ||
| 3771 | }; | ||
| 3772 | |||
| 3773 | class CreatePrescriptionRequest : virtual public ::IceDelegate::Ehr::ThirdPartyRequest | ||
| 3774 | { | ||
| 3775 | public: | ||
| 3776 | }; | ||
| 3777 | |||
| 3778 | class ConsumePrescriptionRequest : virtual public ::IceDelegate::Ehr::ThirdPartyRequest | ||
| 3779 | { | ||
| 3780 | public: | ||
| 3781 | }; | ||
| 3782 | |||
| 3783 | class ListDocumentsRequest : virtual public ::IceDelegate::Ehr::ThirdPartyRequest | ||
| 3784 | { | ||
| 3785 | public: | ||
| 3786 | }; | ||
| 3787 | |||
| 3788 | class FindDocumentsRequest : virtual public ::IceDelegate::Ehr::ThirdPartyRequest | ||
| 3789 | { | ||
| 3790 | public: | ||
| 3791 | }; | ||
| 3792 | |||
| 3793 | class CreatePermissionRequest : virtual public ::IceDelegate::Ehr::Request | ||
| 3794 | { | ||
| 3795 | public: | ||
| 3796 | }; | ||
| 3797 | |||
| 3798 | class SetDefaultAccessRequest : virtual public ::IceDelegate::Ehr::Request | ||
| 3799 | { | ||
| 3800 | public: | ||
| 3801 | }; | ||
| 3802 | |||
| 3803 | class ListPermissionsRequest : virtual public ::IceDelegate::Ehr::Request | ||
| 3804 | { | ||
| 3805 | public: | ||
| 3806 | }; | ||
| 3807 | |||
| 3808 | class RemovePermissionRequest : virtual public ::IceDelegate::Ehr::Request | ||
| 3809 | { | ||
| 3810 | public: | ||
| 3811 | }; | ||
| 3812 | |||
| 3813 | class Provider : virtual public ::IceDelegate::Ice::Object | ||
| 3814 | { | ||
| 3815 | public: | ||
| 3816 | |||
| 3817 | virtual void createPrescription(const ::Ehr::CreatePrescriptionRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*) = 0; | ||
| 3818 | |||
| 3819 | virtual void consumePrescription(const ::Ehr::ConsumePrescriptionRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*) = 0; | ||
| 3820 | |||
| 3821 | virtual ::Ehr::DocumentList listDocuments(const ::Ehr::ListDocumentsRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*) = 0; | ||
| 3822 | |||
| 3823 | virtual ::Ehr::DocumentList findDocuments(const ::Ehr::FindDocumentsRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*) = 0; | ||
| 3824 | |||
| 3825 | virtual void setDefaultAccess(const ::Ehr::SetDefaultAccessRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*) = 0; | ||
| 3826 | |||
| 3827 | virtual void createPermission(const ::Ehr::CreatePermissionRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*) = 0; | ||
| 3828 | |||
| 3829 | virtual ::Ehr::Permissions listPermissions(const ::Ehr::ListPermissionsRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*) = 0; | ||
| 3830 | |||
| 3831 | virtual void removePermission(const ::Ehr::RemovePermissionRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*) = 0; | ||
| 3832 | }; | ||
| 3833 | |||
| 3834 | } | ||
| 3835 | |||
| 3836 | } | ||
| 3837 | |||
| 3838 | namespace IceDelegateM | ||
| 3839 | { | ||
| 3840 | |||
| 3841 | namespace Ehr | ||
| 3842 | { | ||
| 3843 | |||
| 3844 | class Document : virtual public ::IceDelegate::Ehr::Document, | ||
| 3845 | virtual public ::IceDelegateM::Ice::Object | ||
| 3846 | { | ||
| 3847 | public: | ||
| 3848 | }; | ||
| 3849 | |||
| 3850 | class Prescription : virtual public ::IceDelegate::Ehr::Prescription, | ||
| 3851 | virtual public ::IceDelegateM::Ehr::Document | ||
| 3852 | { | ||
| 3853 | public: | ||
| 3854 | }; | ||
| 3855 | |||
| 3856 | class ConsumedPrescription : virtual public ::IceDelegate::Ehr::ConsumedPrescription, | ||
| 3857 | virtual public ::IceDelegateM::Ehr::Prescription | ||
| 3858 | { | ||
| 3859 | public: | ||
| 3860 | }; | ||
| 3861 | |||
| 3862 | class Request : virtual public ::IceDelegate::Ehr::Request, | ||
| 3863 | virtual public ::IceDelegateM::Ice::Object | ||
| 3864 | { | ||
| 3865 | public: | ||
| 3866 | }; | ||
| 3867 | |||
| 3868 | class ThirdPartyRequest : virtual public ::IceDelegate::Ehr::ThirdPartyRequest, | ||
| 3869 | virtual public ::IceDelegateM::Ehr::Request | ||
| 3870 | { | ||
| 3871 | public: | ||
| 3872 | }; | ||
| 3873 | |||
| 3874 | class CreatePrescriptionRequest : virtual public ::IceDelegate::Ehr::CreatePrescriptionRequest, | ||
| 3875 | virtual public ::IceDelegateM::Ehr::ThirdPartyRequest | ||
| 3876 | { | ||
| 3877 | public: | ||
| 3878 | }; | ||
| 3879 | |||
| 3880 | class ConsumePrescriptionRequest : virtual public ::IceDelegate::Ehr::ConsumePrescriptionRequest, | ||
| 3881 | virtual public ::IceDelegateM::Ehr::ThirdPartyRequest | ||
| 3882 | { | ||
| 3883 | public: | ||
| 3884 | }; | ||
| 3885 | |||
| 3886 | class ListDocumentsRequest : virtual public ::IceDelegate::Ehr::ListDocumentsRequest, | ||
| 3887 | virtual public ::IceDelegateM::Ehr::ThirdPartyRequest | ||
| 3888 | { | ||
| 3889 | public: | ||
| 3890 | }; | ||
| 3891 | |||
| 3892 | class FindDocumentsRequest : virtual public ::IceDelegate::Ehr::FindDocumentsRequest, | ||
| 3893 | virtual public ::IceDelegateM::Ehr::ThirdPartyRequest | ||
| 3894 | { | ||
| 3895 | public: | ||
| 3896 | }; | ||
| 3897 | |||
| 3898 | class CreatePermissionRequest : virtual public ::IceDelegate::Ehr::CreatePermissionRequest, | ||
| 3899 | virtual public ::IceDelegateM::Ehr::Request | ||
| 3900 | { | ||
| 3901 | public: | ||
| 3902 | }; | ||
| 3903 | |||
| 3904 | class SetDefaultAccessRequest : virtual public ::IceDelegate::Ehr::SetDefaultAccessRequest, | ||
| 3905 | virtual public ::IceDelegateM::Ehr::Request | ||
| 3906 | { | ||
| 3907 | public: | ||
| 3908 | }; | ||
| 3909 | |||
| 3910 | class ListPermissionsRequest : virtual public ::IceDelegate::Ehr::ListPermissionsRequest, | ||
| 3911 | virtual public ::IceDelegateM::Ehr::Request | ||
| 3912 | { | ||
| 3913 | public: | ||
| 3914 | }; | ||
| 3915 | |||
| 3916 | class RemovePermissionRequest : virtual public ::IceDelegate::Ehr::RemovePermissionRequest, | ||
| 3917 | virtual public ::IceDelegateM::Ehr::Request | ||
| 3918 | { | ||
| 3919 | public: | ||
| 3920 | }; | ||
| 3921 | |||
| 3922 | class Provider : virtual public ::IceDelegate::Ehr::Provider, | ||
| 3923 | virtual public ::IceDelegateM::Ice::Object | ||
| 3924 | { | ||
| 3925 | public: | ||
| 3926 | |||
| 3927 | virtual void createPrescription(const ::Ehr::CreatePrescriptionRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3928 | |||
| 3929 | virtual void consumePrescription(const ::Ehr::ConsumePrescriptionRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3930 | |||
| 3931 | virtual ::Ehr::DocumentList listDocuments(const ::Ehr::ListDocumentsRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3932 | |||
| 3933 | virtual ::Ehr::DocumentList findDocuments(const ::Ehr::FindDocumentsRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3934 | |||
| 3935 | virtual void setDefaultAccess(const ::Ehr::SetDefaultAccessRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3936 | |||
| 3937 | virtual void createPermission(const ::Ehr::CreatePermissionRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3938 | |||
| 3939 | virtual ::Ehr::Permissions listPermissions(const ::Ehr::ListPermissionsRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3940 | |||
| 3941 | virtual void removePermission(const ::Ehr::RemovePermissionRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 3942 | }; | ||
| 3943 | |||
| 3944 | } | ||
| 3945 | |||
| 3946 | } | ||
| 3947 | |||
| 3948 | namespace IceDelegateD | ||
| 3949 | { | ||
| 3950 | |||
| 3951 | namespace Ehr | ||
| 3952 | { | ||
| 3953 | |||
| 3954 | class Document : virtual public ::IceDelegate::Ehr::Document, | ||
| 3955 | virtual public ::IceDelegateD::Ice::Object | ||
| 3956 | { | ||
| 3957 | public: | ||
| 3958 | }; | ||
| 3959 | |||
| 3960 | class Prescription : virtual public ::IceDelegate::Ehr::Prescription, | ||
| 3961 | virtual public ::IceDelegateD::Ehr::Document | ||
| 3962 | { | ||
| 3963 | public: | ||
| 3964 | }; | ||
| 3965 | |||
| 3966 | class ConsumedPrescription : virtual public ::IceDelegate::Ehr::ConsumedPrescription, | ||
| 3967 | virtual public ::IceDelegateD::Ehr::Prescription | ||
| 3968 | { | ||
| 3969 | public: | ||
| 3970 | }; | ||
| 3971 | |||
| 3972 | class Request : virtual public ::IceDelegate::Ehr::Request, | ||
| 3973 | virtual public ::IceDelegateD::Ice::Object | ||
| 3974 | { | ||
| 3975 | public: | ||
| 3976 | }; | ||
| 3977 | |||
| 3978 | class ThirdPartyRequest : virtual public ::IceDelegate::Ehr::ThirdPartyRequest, | ||
| 3979 | virtual public ::IceDelegateD::Ehr::Request | ||
| 3980 | { | ||
| 3981 | public: | ||
| 3982 | }; | ||
| 3983 | |||
| 3984 | class CreatePrescriptionRequest : virtual public ::IceDelegate::Ehr::CreatePrescriptionRequest, | ||
| 3985 | virtual public ::IceDelegateD::Ehr::ThirdPartyRequest | ||
| 3986 | { | ||
| 3987 | public: | ||
| 3988 | }; | ||
| 3989 | |||
| 3990 | class ConsumePrescriptionRequest : virtual public ::IceDelegate::Ehr::ConsumePrescriptionRequest, | ||
| 3991 | virtual public ::IceDelegateD::Ehr::ThirdPartyRequest | ||
| 3992 | { | ||
| 3993 | public: | ||
| 3994 | }; | ||
| 3995 | |||
| 3996 | class ListDocumentsRequest : virtual public ::IceDelegate::Ehr::ListDocumentsRequest, | ||
| 3997 | virtual public ::IceDelegateD::Ehr::ThirdPartyRequest | ||
| 3998 | { | ||
| 3999 | public: | ||
| 4000 | }; | ||
| 4001 | |||
| 4002 | class FindDocumentsRequest : virtual public ::IceDelegate::Ehr::FindDocumentsRequest, | ||
| 4003 | virtual public ::IceDelegateD::Ehr::ThirdPartyRequest | ||
| 4004 | { | ||
| 4005 | public: | ||
| 4006 | }; | ||
| 4007 | |||
| 4008 | class CreatePermissionRequest : virtual public ::IceDelegate::Ehr::CreatePermissionRequest, | ||
| 4009 | virtual public ::IceDelegateD::Ehr::Request | ||
| 4010 | { | ||
| 4011 | public: | ||
| 4012 | }; | ||
| 4013 | |||
| 4014 | class SetDefaultAccessRequest : virtual public ::IceDelegate::Ehr::SetDefaultAccessRequest, | ||
| 4015 | virtual public ::IceDelegateD::Ehr::Request | ||
| 4016 | { | ||
| 4017 | public: | ||
| 4018 | }; | ||
| 4019 | |||
| 4020 | class ListPermissionsRequest : virtual public ::IceDelegate::Ehr::ListPermissionsRequest, | ||
| 4021 | virtual public ::IceDelegateD::Ehr::Request | ||
| 4022 | { | ||
| 4023 | public: | ||
| 4024 | }; | ||
| 4025 | |||
| 4026 | class RemovePermissionRequest : virtual public ::IceDelegate::Ehr::RemovePermissionRequest, | ||
| 4027 | virtual public ::IceDelegateD::Ehr::Request | ||
| 4028 | { | ||
| 4029 | public: | ||
| 4030 | }; | ||
| 4031 | |||
| 4032 | class Provider : virtual public ::IceDelegate::Ehr::Provider, | ||
| 4033 | virtual public ::IceDelegateD::Ice::Object | ||
| 4034 | { | ||
| 4035 | public: | ||
| 4036 | |||
| 4037 | virtual void createPrescription(const ::Ehr::CreatePrescriptionRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 4038 | |||
| 4039 | virtual void consumePrescription(const ::Ehr::ConsumePrescriptionRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 4040 | |||
| 4041 | virtual ::Ehr::DocumentList listDocuments(const ::Ehr::ListDocumentsRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 4042 | |||
| 4043 | virtual ::Ehr::DocumentList findDocuments(const ::Ehr::FindDocumentsRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 4044 | |||
| 4045 | virtual void setDefaultAccess(const ::Ehr::SetDefaultAccessRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 4046 | |||
| 4047 | virtual void createPermission(const ::Ehr::CreatePermissionRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 4048 | |||
| 4049 | virtual ::Ehr::Permissions listPermissions(const ::Ehr::ListPermissionsRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 4050 | |||
| 4051 | virtual void removePermission(const ::Ehr::RemovePermissionRequestPtr&, const ::Ehr::Signature&, const ::Ice::Context*); | ||
| 4052 | }; | ||
| 4053 | |||
| 4054 | } | ||
| 4055 | |||
| 4056 | } | ||
| 4057 | |||
| 4058 | namespace Ehr | ||
| 4059 | { | ||
| 4060 | |||
| 4061 | class Document : virtual public ::Ice::Object | ||
| 4062 | { | ||
| 4063 | public: | ||
| 4064 | |||
| 4065 | typedef DocumentPrx ProxyType; | ||
| 4066 | typedef DocumentPtr PointerType; | ||
| 4067 | |||
| 4068 | Document() {} | ||
| 4069 | explicit Document(::Ehr::DocumentType); | ||
| 4070 | virtual ::Ice::ObjectPtr ice_clone() const; | ||
| 4071 | |||
| 4072 | virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4073 | virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4074 | virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4075 | static const ::std::string& ice_staticId(); | ||
| 4076 | |||
| 4077 | |||
| 4078 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 4079 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 4080 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 4081 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 4082 | |||
| 4083 | static const ::Ice::ObjectFactoryPtr& ice_factory(); | ||
| 4084 | |||
| 4085 | protected: | ||
| 4086 | |||
| 4087 | virtual ~Document() {} | ||
| 4088 | |||
| 4089 | friend class Document__staticInit; | ||
| 4090 | |||
| 4091 | public: | ||
| 4092 | |||
| 4093 | ::Ehr::DocumentType type; | ||
| 4094 | }; | ||
| 4095 | |||
| 4096 | class Document__staticInit | ||
| 4097 | { | ||
| 4098 | public: | ||
| 4099 | |||
| 4100 | ::Ehr::Document _init; | ||
| 4101 | }; | ||
| 4102 | |||
| 4103 | static Document__staticInit _Document_init; | ||
| 4104 | |||
| 4105 | class Prescription : virtual public ::Ehr::Document | ||
| 4106 | { | ||
| 4107 | public: | ||
| 4108 | |||
| 4109 | typedef PrescriptionPrx ProxyType; | ||
| 4110 | typedef PrescriptionPtr PointerType; | ||
| 4111 | |||
| 4112 | Prescription() {} | ||
| 4113 | Prescription(::Ehr::DocumentType, const ::std::string&, const ::std::string&, const ::std::string&, const ::Ehr::Date&, const ::std::string&, const ::Ehr::Date&, const ::std::string&, const ::std::string&, ::Ice::Int, const ::std::string&, const ::Ehr::Date&, const ::Ehr::Date&); | ||
| 4114 | virtual ::Ice::ObjectPtr ice_clone() const; | ||
| 4115 | |||
| 4116 | virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4117 | virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4118 | virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4119 | static const ::std::string& ice_staticId(); | ||
| 4120 | |||
| 4121 | |||
| 4122 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 4123 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 4124 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 4125 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 4126 | |||
| 4127 | static const ::Ice::ObjectFactoryPtr& ice_factory(); | ||
| 4128 | |||
| 4129 | protected: | ||
| 4130 | |||
| 4131 | virtual ~Prescription() {} | ||
| 4132 | |||
| 4133 | public: | ||
| 4134 | |||
| 4135 | ::std::string originatorName; | ||
| 4136 | |||
| 4137 | ::std::string originatorProfession; | ||
| 4138 | |||
| 4139 | ::std::string originatorAddress; | ||
| 4140 | |||
| 4141 | ::Ehr::Date creationDate; | ||
| 4142 | |||
| 4143 | ::std::string consumerName; | ||
| 4144 | |||
| 4145 | ::Ehr::Date consumerDateOfBirth; | ||
| 4146 | |||
| 4147 | ::std::string drugDescription; | ||
| 4148 | |||
| 4149 | ::std::string form; | ||
| 4150 | |||
| 4151 | ::Ice::Int dosage; | ||
| 4152 | |||
| 4153 | ::std::string measuringUnit; | ||
| 4154 | |||
| 4155 | ::Ehr::Date validFrom; | ||
| 4156 | |||
| 4157 | ::Ehr::Date expires; | ||
| 4158 | }; | ||
| 4159 | |||
| 4160 | class ConsumedPrescription : virtual public ::Ehr::Prescription | ||
| 4161 | { | ||
| 4162 | public: | ||
| 4163 | |||
| 4164 | typedef ConsumedPrescriptionPrx ProxyType; | ||
| 4165 | typedef ConsumedPrescriptionPtr PointerType; | ||
| 4166 | |||
| 4167 | ConsumedPrescription() {} | ||
| 4168 | ConsumedPrescription(::Ehr::DocumentType, const ::std::string&, const ::std::string&, const ::std::string&, const ::Ehr::Date&, const ::std::string&, const ::Ehr::Date&, const ::std::string&, const ::std::string&, ::Ice::Int, const ::std::string&, const ::Ehr::Date&, const ::Ehr::Date&, const ::std::string&, const ::std::string&, const ::std::string&, const ::Ehr::Date&); | ||
| 4169 | virtual ::Ice::ObjectPtr ice_clone() const; | ||
| 4170 | |||
| 4171 | virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4172 | virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4173 | virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4174 | static const ::std::string& ice_staticId(); | ||
| 4175 | |||
| 4176 | |||
| 4177 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 4178 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 4179 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 4180 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 4181 | |||
| 4182 | static const ::Ice::ObjectFactoryPtr& ice_factory(); | ||
| 4183 | |||
| 4184 | protected: | ||
| 4185 | |||
| 4186 | virtual ~ConsumedPrescription() {} | ||
| 4187 | |||
| 4188 | public: | ||
| 4189 | |||
| 4190 | ::std::string dispenserName; | ||
| 4191 | |||
| 4192 | ::std::string dispenserProfession; | ||
| 4193 | |||
| 4194 | ::std::string dispenserAddress; | ||
| 4195 | |||
| 4196 | ::Ehr::Date dispensingDate; | ||
| 4197 | }; | ||
| 4198 | |||
| 4199 | class Request : virtual public ::Ice::Object | ||
| 4200 | { | ||
| 4201 | public: | ||
| 4202 | |||
| 4203 | typedef RequestPrx ProxyType; | ||
| 4204 | typedef RequestPtr PointerType; | ||
| 4205 | |||
| 4206 | Request() {} | ||
| 4207 | Request(const ::Ehr::AccountIdentifier&, const ::Ehr::Timestamp&); | ||
| 4208 | virtual ::Ice::ObjectPtr ice_clone() const; | ||
| 4209 | |||
| 4210 | virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4211 | virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4212 | virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4213 | static const ::std::string& ice_staticId(); | ||
| 4214 | |||
| 4215 | |||
| 4216 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 4217 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 4218 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 4219 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 4220 | |||
| 4221 | static const ::Ice::ObjectFactoryPtr& ice_factory(); | ||
| 4222 | |||
| 4223 | protected: | ||
| 4224 | |||
| 4225 | virtual ~Request() {} | ||
| 4226 | |||
| 4227 | public: | ||
| 4228 | |||
| 4229 | ::Ehr::AccountIdentifier requestor; | ||
| 4230 | |||
| 4231 | ::Ehr::Timestamp when; | ||
| 4232 | }; | ||
| 4233 | |||
| 4234 | class ThirdPartyRequest : virtual public ::Ehr::Request | ||
| 4235 | { | ||
| 4236 | public: | ||
| 4237 | |||
| 4238 | typedef ThirdPartyRequestPrx ProxyType; | ||
| 4239 | typedef ThirdPartyRequestPtr PointerType; | ||
| 4240 | |||
| 4241 | ThirdPartyRequest() {} | ||
| 4242 | ThirdPartyRequest(const ::Ehr::AccountIdentifier&, const ::Ehr::Timestamp&, const ::Ehr::AccountIdentifier&); | ||
| 4243 | virtual ::Ice::ObjectPtr ice_clone() const; | ||
| 4244 | |||
| 4245 | virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4246 | virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4247 | virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4248 | static const ::std::string& ice_staticId(); | ||
| 4249 | |||
| 4250 | |||
| 4251 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 4252 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 4253 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 4254 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 4255 | |||
| 4256 | static const ::Ice::ObjectFactoryPtr& ice_factory(); | ||
| 4257 | |||
| 4258 | protected: | ||
| 4259 | |||
| 4260 | virtual ~ThirdPartyRequest() {} | ||
| 4261 | |||
| 4262 | public: | ||
| 4263 | |||
| 4264 | ::Ehr::AccountIdentifier owner; | ||
| 4265 | }; | ||
| 4266 | |||
| 4267 | class CreatePrescriptionRequest : virtual public ::Ehr::ThirdPartyRequest | ||
| 4268 | { | ||
| 4269 | public: | ||
| 4270 | |||
| 4271 | typedef CreatePrescriptionRequestPrx ProxyType; | ||
| 4272 | typedef CreatePrescriptionRequestPtr PointerType; | ||
| 4273 | |||
| 4274 | CreatePrescriptionRequest() {} | ||
| 4275 | CreatePrescriptionRequest(const ::Ehr::AccountIdentifier&, const ::Ehr::Timestamp&, const ::Ehr::AccountIdentifier&, const ::Ehr::EncryptedDocument&); | ||
| 4276 | virtual ::Ice::ObjectPtr ice_clone() const; | ||
| 4277 | |||
| 4278 | virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4279 | virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4280 | virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4281 | static const ::std::string& ice_staticId(); | ||
| 4282 | |||
| 4283 | |||
| 4284 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 4285 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 4286 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 4287 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 4288 | |||
| 4289 | static const ::Ice::ObjectFactoryPtr& ice_factory(); | ||
| 4290 | |||
| 4291 | protected: | ||
| 4292 | |||
| 4293 | virtual ~CreatePrescriptionRequest() {} | ||
| 4294 | |||
| 4295 | public: | ||
| 4296 | |||
| 4297 | ::Ehr::EncryptedDocument prescription; | ||
| 4298 | }; | ||
| 4299 | |||
| 4300 | class ConsumePrescriptionRequest : virtual public ::Ehr::ThirdPartyRequest | ||
| 4301 | { | ||
| 4302 | public: | ||
| 4303 | |||
| 4304 | typedef ConsumePrescriptionRequestPrx ProxyType; | ||
| 4305 | typedef ConsumePrescriptionRequestPtr PointerType; | ||
| 4306 | |||
| 4307 | ConsumePrescriptionRequest() {} | ||
| 4308 | ConsumePrescriptionRequest(const ::Ehr::AccountIdentifier&, const ::Ehr::Timestamp&, const ::Ehr::AccountIdentifier&, ::Ice::Long, const ::Ehr::EncryptedDocument&); | ||
| 4309 | virtual ::Ice::ObjectPtr ice_clone() const; | ||
| 4310 | |||
| 4311 | virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4312 | virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4313 | virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4314 | static const ::std::string& ice_staticId(); | ||
| 4315 | |||
| 4316 | |||
| 4317 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 4318 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 4319 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 4320 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 4321 | |||
| 4322 | static const ::Ice::ObjectFactoryPtr& ice_factory(); | ||
| 4323 | |||
| 4324 | protected: | ||
| 4325 | |||
| 4326 | virtual ~ConsumePrescriptionRequest() {} | ||
| 4327 | |||
| 4328 | public: | ||
| 4329 | |||
| 4330 | ::Ice::Long prescriptionId; | ||
| 4331 | |||
| 4332 | ::Ehr::EncryptedDocument consumedPrescription; | ||
| 4333 | }; | ||
| 4334 | |||
| 4335 | class ListDocumentsRequest : virtual public ::Ehr::ThirdPartyRequest | ||
| 4336 | { | ||
| 4337 | public: | ||
| 4338 | |||
| 4339 | typedef ListDocumentsRequestPrx ProxyType; | ||
| 4340 | typedef ListDocumentsRequestPtr PointerType; | ||
| 4341 | |||
| 4342 | ListDocumentsRequest() {} | ||
| 4343 | ListDocumentsRequest(const ::Ehr::AccountIdentifier&, const ::Ehr::Timestamp&, const ::Ehr::AccountIdentifier&); | ||
| 4344 | virtual ::Ice::ObjectPtr ice_clone() const; | ||
| 4345 | |||
| 4346 | virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4347 | virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4348 | virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4349 | static const ::std::string& ice_staticId(); | ||
| 4350 | |||
| 4351 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 4352 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 4353 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 4354 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 4355 | |||
| 4356 | static const ::Ice::ObjectFactoryPtr& ice_factory(); | ||
| 4357 | |||
| 4358 | protected: | ||
| 4359 | |||
| 4360 | virtual ~ListDocumentsRequest() {} | ||
| 4361 | }; | ||
| 4362 | |||
| 4363 | class FindDocumentsRequest : virtual public ::Ehr::ThirdPartyRequest | ||
| 4364 | { | ||
| 4365 | public: | ||
| 4366 | |||
| 4367 | typedef FindDocumentsRequestPrx ProxyType; | ||
| 4368 | typedef FindDocumentsRequestPtr PointerType; | ||
| 4369 | |||
| 4370 | FindDocumentsRequest() {} | ||
| 4371 | FindDocumentsRequest(const ::Ehr::AccountIdentifier&, const ::Ehr::Timestamp&, const ::Ehr::AccountIdentifier&, bool, const ::Ehr::Timestamp&, bool, const ::Ehr::Timestamp&, ::Ehr::DocumentType, ::Ice::Long); | ||
| 4372 | virtual ::Ice::ObjectPtr ice_clone() const; | ||
| 4373 | |||
| 4374 | virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4375 | virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4376 | virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4377 | static const ::std::string& ice_staticId(); | ||
| 4378 | |||
| 4379 | |||
| 4380 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 4381 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 4382 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 4383 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 4384 | |||
| 4385 | static const ::Ice::ObjectFactoryPtr& ice_factory(); | ||
| 4386 | |||
| 4387 | protected: | ||
| 4388 | |||
| 4389 | virtual ~FindDocumentsRequest() {} | ||
| 4390 | |||
| 4391 | public: | ||
| 4392 | |||
| 4393 | bool hasFrom; | ||
| 4394 | |||
| 4395 | ::Ehr::Timestamp from; | ||
| 4396 | |||
| 4397 | bool hasTill; | ||
| 4398 | |||
| 4399 | ::Ehr::Timestamp till; | ||
| 4400 | |||
| 4401 | ::Ehr::DocumentType type; | ||
| 4402 | |||
| 4403 | ::Ice::Long documentId; | ||
| 4404 | }; | ||
| 4405 | |||
| 4406 | class CreatePermissionRequest : virtual public ::Ehr::Request | ||
| 4407 | { | ||
| 4408 | public: | ||
| 4409 | |||
| 4410 | typedef CreatePermissionRequestPrx ProxyType; | ||
| 4411 | typedef CreatePermissionRequestPtr PointerType; | ||
| 4412 | |||
| 4413 | CreatePermissionRequest() {} | ||
| 4414 | CreatePermissionRequest(const ::Ehr::AccountIdentifier&, const ::Ehr::Timestamp&, ::Ice::Long, const ::Ehr::AccountIdentifier&, ::Ehr::AccessType); | ||
| 4415 | virtual ::Ice::ObjectPtr ice_clone() const; | ||
| 4416 | |||
| 4417 | virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4418 | virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4419 | virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4420 | static const ::std::string& ice_staticId(); | ||
| 4421 | |||
| 4422 | |||
| 4423 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 4424 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 4425 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 4426 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 4427 | |||
| 4428 | static const ::Ice::ObjectFactoryPtr& ice_factory(); | ||
| 4429 | |||
| 4430 | protected: | ||
| 4431 | |||
| 4432 | virtual ~CreatePermissionRequest() {} | ||
| 4433 | |||
| 4434 | public: | ||
| 4435 | |||
| 4436 | ::Ice::Long documentId; | ||
| 4437 | |||
| 4438 | ::Ehr::AccountIdentifier account; | ||
| 4439 | |||
| 4440 | ::Ehr::AccessType access; | ||
| 4441 | }; | ||
| 4442 | |||
| 4443 | class SetDefaultAccessRequest : virtual public ::Ehr::Request | ||
| 4444 | { | ||
| 4445 | public: | ||
| 4446 | |||
| 4447 | typedef SetDefaultAccessRequestPrx ProxyType; | ||
| 4448 | typedef SetDefaultAccessRequestPtr PointerType; | ||
| 4449 | |||
| 4450 | SetDefaultAccessRequest() {} | ||
| 4451 | SetDefaultAccessRequest(const ::Ehr::AccountIdentifier&, const ::Ehr::Timestamp&, ::Ice::Long, ::Ehr::AccessType); | ||
| 4452 | virtual ::Ice::ObjectPtr ice_clone() const; | ||
| 4453 | |||
| 4454 | virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4455 | virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4456 | virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4457 | static const ::std::string& ice_staticId(); | ||
| 4458 | |||
| 4459 | |||
| 4460 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 4461 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 4462 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 4463 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 4464 | |||
| 4465 | static const ::Ice::ObjectFactoryPtr& ice_factory(); | ||
| 4466 | |||
| 4467 | protected: | ||
| 4468 | |||
| 4469 | virtual ~SetDefaultAccessRequest() {} | ||
| 4470 | |||
| 4471 | public: | ||
| 4472 | |||
| 4473 | ::Ice::Long documentId; | ||
| 4474 | |||
| 4475 | ::Ehr::AccessType access; | ||
| 4476 | }; | ||
| 4477 | |||
| 4478 | class ListPermissionsRequest : virtual public ::Ehr::Request | ||
| 4479 | { | ||
| 4480 | public: | ||
| 4481 | |||
| 4482 | typedef ListPermissionsRequestPrx ProxyType; | ||
| 4483 | typedef ListPermissionsRequestPtr PointerType; | ||
| 4484 | |||
| 4485 | ListPermissionsRequest() {} | ||
| 4486 | ListPermissionsRequest(const ::Ehr::AccountIdentifier&, const ::Ehr::Timestamp&, ::Ice::Long); | ||
| 4487 | virtual ::Ice::ObjectPtr ice_clone() const; | ||
| 4488 | |||
| 4489 | virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4490 | virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4491 | virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4492 | static const ::std::string& ice_staticId(); | ||
| 4493 | |||
| 4494 | |||
| 4495 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 4496 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 4497 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 4498 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 4499 | |||
| 4500 | static const ::Ice::ObjectFactoryPtr& ice_factory(); | ||
| 4501 | |||
| 4502 | protected: | ||
| 4503 | |||
| 4504 | virtual ~ListPermissionsRequest() {} | ||
| 4505 | |||
| 4506 | public: | ||
| 4507 | |||
| 4508 | ::Ice::Long documentId; | ||
| 4509 | }; | ||
| 4510 | |||
| 4511 | class RemovePermissionRequest : virtual public ::Ehr::Request | ||
| 4512 | { | ||
| 4513 | public: | ||
| 4514 | |||
| 4515 | typedef RemovePermissionRequestPrx ProxyType; | ||
| 4516 | typedef RemovePermissionRequestPtr PointerType; | ||
| 4517 | |||
| 4518 | RemovePermissionRequest() {} | ||
| 4519 | RemovePermissionRequest(const ::Ehr::AccountIdentifier&, const ::Ehr::Timestamp&, ::Ice::Long, ::Ice::Long); | ||
| 4520 | virtual ::Ice::ObjectPtr ice_clone() const; | ||
| 4521 | |||
| 4522 | virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4523 | virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4524 | virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4525 | static const ::std::string& ice_staticId(); | ||
| 4526 | |||
| 4527 | |||
| 4528 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 4529 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 4530 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 4531 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 4532 | |||
| 4533 | static const ::Ice::ObjectFactoryPtr& ice_factory(); | ||
| 4534 | |||
| 4535 | protected: | ||
| 4536 | |||
| 4537 | virtual ~RemovePermissionRequest() {} | ||
| 4538 | |||
| 4539 | public: | ||
| 4540 | |||
| 4541 | ::Ice::Long documentId; | ||
| 4542 | |||
| 4543 | ::Ice::Long permissionId; | ||
| 4544 | }; | ||
| 4545 | |||
| 4546 | class Provider : virtual public ::Ice::Object | ||
| 4547 | { | ||
| 4548 | public: | ||
| 4549 | |||
| 4550 | typedef ProviderPrx ProxyType; | ||
| 4551 | typedef ProviderPtr PointerType; | ||
| 4552 | |||
| 4553 | virtual ::Ice::ObjectPtr ice_clone() const; | ||
| 4554 | |||
| 4555 | virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4556 | virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4557 | virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; | ||
| 4558 | static const ::std::string& ice_staticId(); | ||
| 4559 | |||
| 4560 | virtual void createPrescription(const ::Ehr::CreatePrescriptionRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Current& = ::Ice::Current()) = 0; | ||
| 4561 | ::Ice::DispatchStatus ___createPrescription(::IceInternal::Incoming&, const ::Ice::Current&); | ||
| 4562 | |||
| 4563 | virtual void consumePrescription(const ::Ehr::ConsumePrescriptionRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Current& = ::Ice::Current()) = 0; | ||
| 4564 | ::Ice::DispatchStatus ___consumePrescription(::IceInternal::Incoming&, const ::Ice::Current&); | ||
| 4565 | |||
| 4566 | virtual ::Ehr::DocumentList listDocuments(const ::Ehr::ListDocumentsRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Current& = ::Ice::Current()) = 0; | ||
| 4567 | ::Ice::DispatchStatus ___listDocuments(::IceInternal::Incoming&, const ::Ice::Current&); | ||
| 4568 | |||
| 4569 | virtual ::Ehr::DocumentList findDocuments(const ::Ehr::FindDocumentsRequestPtr&, const ::Ehr::Signature&, const ::Ehr::Signature&, const ::Ice::Current& = ::Ice::Current()) = 0; | ||
| 4570 | ::Ice::DispatchStatus ___findDocuments(::IceInternal::Incoming&, const ::Ice::Current&); | ||
| 4571 | |||
| 4572 | virtual void setDefaultAccess(const ::Ehr::SetDefaultAccessRequestPtr&, const ::Ehr::Signature&, const ::Ice::Current& = ::Ice::Current()) = 0; | ||
| 4573 | ::Ice::DispatchStatus ___setDefaultAccess(::IceInternal::Incoming&, const ::Ice::Current&); | ||
| 4574 | |||
| 4575 | virtual void createPermission(const ::Ehr::CreatePermissionRequestPtr&, const ::Ehr::Signature&, const ::Ice::Current& = ::Ice::Current()) = 0; | ||
| 4576 | ::Ice::DispatchStatus ___createPermission(::IceInternal::Incoming&, const ::Ice::Current&); | ||
| 4577 | |||
| 4578 | virtual ::Ehr::Permissions listPermissions(const ::Ehr::ListPermissionsRequestPtr&, const ::Ehr::Signature&, const ::Ice::Current& = ::Ice::Current()) = 0; | ||
| 4579 | ::Ice::DispatchStatus ___listPermissions(::IceInternal::Incoming&, const ::Ice::Current&); | ||
| 4580 | |||
| 4581 | virtual void removePermission(const ::Ehr::RemovePermissionRequestPtr&, const ::Ehr::Signature&, const ::Ice::Current& = ::Ice::Current()) = 0; | ||
| 4582 | ::Ice::DispatchStatus ___removePermission(::IceInternal::Incoming&, const ::Ice::Current&); | ||
| 4583 | |||
| 4584 | virtual ::Ice::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&); | ||
| 4585 | |||
| 4586 | virtual void __write(::IceInternal::BasicStream*) const; | ||
| 4587 | virtual void __read(::IceInternal::BasicStream*, bool); | ||
| 4588 | virtual void __write(const ::Ice::OutputStreamPtr&) const; | ||
| 4589 | virtual void __read(const ::Ice::InputStreamPtr&, bool); | ||
| 4590 | }; | ||
| 4591 | |||
| 4592 | } | ||
| 4593 | |||
| 4594 | #endif | ||
diff --git a/task1/ehr.ice b/task1/ehr.ice new file mode 100644 index 0000000..aba39ee --- /dev/null +++ b/task1/ehr.ice | |||
| @@ -0,0 +1,302 @@ | |||
| 1 | //! SE/Linux EHR IDL file | ||
| 2 | //! Author: SE/Linux team <se-linux@inso.tuwien.ac.at> | ||
| 3 | module Ehr { | ||
| 4 | |||
| 5 | sequence<byte> ByteSeq; | ||
| 6 | |||
| 7 | //! Base class for exceptions | ||
| 8 | exception EhrException { | ||
| 9 | string what; //! Detailed error message. | ||
| 10 | }; | ||
| 11 | |||
| 12 | //! The request could not be validated. | ||
| 13 | exception InvalidRequestException extends EhrException { }; | ||
| 14 | //! An account specified in the request is invalid. | ||
| 15 | exception InvalidAccountException extends InvalidRequestException { }; | ||
| 16 | //! The signature of the request could not be verified. | ||
| 17 | exception SignatureException extends EhrException { }; | ||
| 18 | //! The requestor is not allowed to perform the request. | ||
| 19 | exception PermissionDeniedException extends EhrException { }; | ||
| 20 | |||
| 21 | //! Identifies an account in the SEPM/Linux EHR system | ||
| 22 | struct AccountIdentifier { | ||
| 23 | string user; //! User part of account | ||
| 24 | string provider; //! Provider part of account | ||
| 25 | }; | ||
| 26 | |||
| 27 | enum DocumentType { | ||
| 28 | DOCANY, | ||
| 29 | DOCPRESCRIPTION, | ||
| 30 | DOCCONSUMEDPRESCRIPTION | ||
| 31 | }; | ||
| 32 | |||
| 33 | //! The signature of a request. | ||
| 34 | //! | ||
| 35 | //! To calculate the signature of a request object, the request object is | ||
| 36 | //! serialized (converted to a byte stream) using the streaming interface. | ||
| 37 | //! See chapter 36.2 (Streaming Interface) of the ICE manual for details. | ||
| 38 | //! | ||
| 39 | //! Then, the SHA1 hash of the byte stream is calculated and encrypted using | ||
| 40 | //! the private key of the account that issued the request. | ||
| 41 | //! See EVP_SignInit(3SSL) for details. | ||
| 42 | //! | ||
| 43 | //! This signature logic is implemented in Security::sign | ||
| 44 | struct Signature { | ||
| 45 | ByteSeq data; | ||
| 46 | }; | ||
| 47 | |||
| 48 | struct Timestamp { | ||
| 49 | //! The time since the Epoch (00:00:00 UTC, January 1, 1970), | ||
| 50 | //! measured in milliseconds. | ||
| 51 | long msecs; | ||
| 52 | }; | ||
| 53 | |||
| 54 | struct Date { | ||
| 55 | byte day; | ||
| 56 | byte month; | ||
| 57 | short year; | ||
| 58 | }; | ||
| 59 | |||
| 60 | enum AccessType { | ||
| 61 | ALLOW, //! Allow access | ||
| 62 | DENY //! Deny access | ||
| 63 | }; | ||
| 64 | |||
| 65 | //! An envelope encrypted serialized document. | ||
| 66 | //! | ||
| 67 | //! The document is a class or structure serialized (converted to a byte stream) | ||
| 68 | //! using the ICE streaming interface. | ||
| 69 | //! See chapter 36.2 (Streaming Interface) of the ICE manual for details. | ||
| 70 | //! | ||
| 71 | //! The byte stream is encrypted using envolope encryption: it is encrypted with | ||
| 72 | //! a symetric cipher (AES) using a random key. This key is then encrypted with | ||
| 73 | //! the public key (RSA) of the owner. | ||
| 74 | //! | ||
| 75 | //! See EVP_SealInit(3) for details on envelope encryption. | ||
| 76 | //! | ||
| 77 | //! This encryption logic is also implemented in Security::encryptPublic. | ||
| 78 | struct EncryptedDocument { | ||
| 79 | //! AES key encrypted with the RSA public key of the owner. | ||
| 80 | ByteSeq encryptedKey; | ||
| 81 | //! The initial vector for AES (aes_256_cbc). | ||
| 82 | ByteSeq initialVector; | ||
| 83 | //! Document encrypted with AES (aes_256_cbc). | ||
| 84 | ByteSeq encryptedData; | ||
| 85 | }; | ||
| 86 | |||
| 87 | //! Base class for documents in the EHR. | ||
| 88 | class Document { | ||
| 89 | //! The document type. | ||
| 90 | DocumentType type; | ||
| 91 | }; | ||
| 92 | |||
| 93 | //! The prescription document created by the physician. | ||
| 94 | class Prescription extends Document { | ||
| 95 | |||
| 96 | string originatorName; | ||
| 97 | string originatorProfession; | ||
| 98 | string originatorAddress; | ||
| 99 | |||
| 100 | Date creationDate; | ||
| 101 | |||
| 102 | string consumerName; | ||
| 103 | Date consumerDateOfBirth; | ||
| 104 | |||
| 105 | string drugDescription; | ||
| 106 | string form; | ||
| 107 | int dosage; | ||
| 108 | string measuringUnit; | ||
| 109 | |||
| 110 | Date validFrom; | ||
| 111 | Date expires; | ||
| 112 | }; | ||
| 113 | |||
| 114 | //! The prescription consumption created by the pharmacist. | ||
| 115 | //! It contains a copy of the original prescription. | ||
| 116 | class ConsumedPrescription extends Prescription { | ||
| 117 | |||
| 118 | string dispenserName; | ||
| 119 | string dispenserProfession; | ||
| 120 | string dispenserAddress; | ||
| 121 | |||
| 122 | Date dispensingDate; | ||
| 123 | }; | ||
| 124 | |||
| 125 | //! Base class for a request to a provider node. | ||
| 126 | class Request { | ||
| 127 | //! The account that issued the request. | ||
| 128 | AccountIdentifier requestor; | ||
| 129 | |||
| 130 | //! Timestamp when the request was issued. | ||
| 131 | //! A reasonable provider node validates the timestamp, for example: | ||
| 132 | //! (timestamp_last_request_from_requestor < when) && (when < now() + 1_min) | ||
| 133 | //! The first condition guarantees that requests can't be reused. | ||
| 134 | Timestamp when; | ||
| 135 | }; | ||
| 136 | |||
| 137 | //! Base class for requests where two parties are involved, for example | ||
| 138 | //! a patient and a pharmacist. | ||
| 139 | class ThirdPartyRequest extends Request { | ||
| 140 | //! The account that owns the EHR (patient). | ||
| 141 | AccountIdentifier owner; | ||
| 142 | }; | ||
| 143 | |||
| 144 | //! Request to creaete a prescription. | ||
| 145 | //! Issued by a physician and aproved by the patient. | ||
| 146 | class CreatePrescriptionRequest extends ThirdPartyRequest { | ||
| 147 | //! A serialized Prescription encrypted with the public key of the patient. | ||
| 148 | EncryptedDocument prescription; | ||
| 149 | }; | ||
| 150 | |||
| 151 | //! Issued by a pharmacist and aproved by the patient. | ||
| 152 | class ConsumePrescriptionRequest extends ThirdPartyRequest { | ||
| 153 | //! Id of the prescription to consume | ||
| 154 | long prescriptionId; | ||
| 155 | //! The serialized ConsumePrescription encrypted with the public key of the patient. | ||
| 156 | EncryptedDocument consumedPrescription; | ||
| 157 | }; | ||
| 158 | |||
| 159 | //! Request to list all documents in an EHR. | ||
| 160 | //! Issued by anyone. | ||
| 161 | //! Aproved by the patient. | ||
| 162 | class ListDocumentsRequest extends ThirdPartyRequest { | ||
| 163 | }; | ||
| 164 | |||
| 165 | //! Request to find documents in an EHR. | ||
| 166 | //! Issued by anyone. | ||
| 167 | //! Aproved by the patient. | ||
| 168 | class FindDocumentsRequest extends ThirdPartyRequest { | ||
| 169 | bool hasFrom; //! If true, the from field is valid. | ||
| 170 | Timestamp from; //! Search documents older than from. | ||
| 171 | bool hasTill; //! If true, the till field is valid. | ||
| 172 | Timestamp till; //! Search documents younger than till. | ||
| 173 | |||
| 174 | //! Search only documents of the given type. | ||
| 175 | //! Set to DOCANY if the document type does not matter. | ||
| 176 | DocumentType type; | ||
| 177 | |||
| 178 | //! Search only document with the giben ID. | ||
| 179 | //! Set to 0 if the ID does not matter. | ||
| 180 | long documentId; | ||
| 181 | }; | ||
| 182 | |||
| 183 | //! Request to create a pemission on a document. | ||
| 184 | //! Issued by patient only. | ||
| 185 | class CreatePermissionRequest extends Request { | ||
| 186 | //! The id of the document. | ||
| 187 | long documentId; | ||
| 188 | //! The account the permission belongs to. | ||
| 189 | AccountIdentifier account; | ||
| 190 | //! The access type (ALLOW, DENY). | ||
| 191 | AccessType access; | ||
| 192 | }; | ||
| 193 | |||
| 194 | //! Request to set the default permission on a docment. | ||
| 195 | //! The default permission determines, whether access is granted to an | ||
| 196 | //! account, for which there is no explicit permission available. | ||
| 197 | //! Issued by patient only. | ||
| 198 | class SetDefaultAccessRequest extends Request { | ||
| 199 | //! The id of the document. | ||
| 200 | long documentId; | ||
| 201 | //! The access type (ALLOW, DENY). | ||
| 202 | AccessType access; | ||
| 203 | }; | ||
| 204 | |||
| 205 | //! Request to request the list of permissions on a document. | ||
| 206 | //! Issued by patient only. | ||
| 207 | class ListPermissionsRequest extends Request { | ||
| 208 | //! The id of the document. | ||
| 209 | long documentId; | ||
| 210 | }; | ||
| 211 | |||
| 212 | //! Request to remove a permission form a document. | ||
| 213 | //! Issued by patient only. | ||
| 214 | class RemovePermissionRequest extends Request { | ||
| 215 | //! The id of the document. | ||
| 216 | long documentId; | ||
| 217 | //! The id of the permission to remove. | ||
| 218 | long permissionId; | ||
| 219 | }; | ||
| 220 | |||
| 221 | //! Combines an encrypted document with an id. | ||
| 222 | struct DocumentListItem { | ||
| 223 | long id; | ||
| 224 | Timestamp created; | ||
| 225 | EncryptedDocument document; | ||
| 226 | }; | ||
| 227 | |||
| 228 | sequence<DocumentListItem> DocumentList; | ||
| 229 | |||
| 230 | //! Combines a permission with an id. | ||
| 231 | struct AccessControlListItem { | ||
| 232 | long id; | ||
| 233 | AccountIdentifier account; | ||
| 234 | AccessType access; | ||
| 235 | }; | ||
| 236 | |||
| 237 | sequence<AccessControlListItem> AccessControlList; | ||
| 238 | |||
| 239 | //! The permissions for a document. | ||
| 240 | struct Permissions { | ||
| 241 | //! Default permission, if there is no explicit permission in the acl. | ||
| 242 | AccessType defaultAccess; | ||
| 243 | //! Per account permissions. | ||
| 244 | AccessControlList acl; | ||
| 245 | }; | ||
| 246 | |||
| 247 | //! The interface of a provider node for client software. | ||
| 248 | //! | ||
| 249 | //! Every method has the following arguments: | ||
| 250 | //! | ||
| 251 | //! - A request object. | ||
| 252 | //! - The signature of the request object by the requesting party. | ||
| 253 | //! - If the requetor is different form the owner of the EHR (for example | ||
| 254 | //! a pharmacist), the signature of the owner of the EHR. | ||
| 255 | interface Provider { | ||
| 256 | |||
| 257 | void createPrescription( | ||
| 258 | CreatePrescriptionRequest request, | ||
| 259 | Signature requestorSignature, | ||
| 260 | Signature ownerSignature | ||
| 261 | ) throws EhrException; | ||
| 262 | |||
| 263 | void consumePrescription( | ||
| 264 | ConsumePrescriptionRequest request, | ||
| 265 | Signature requestorSignature, | ||
| 266 | Signature ownerSignature | ||
| 267 | ) throws EhrException; | ||
| 268 | |||
| 269 | DocumentList listDocuments( | ||
| 270 | ListDocumentsRequest request, | ||
| 271 | Signature requestorSignature, | ||
| 272 | Signature ownerSignature | ||
| 273 | ) throws EhrException; | ||
| 274 | |||
| 275 | DocumentList findDocuments( | ||
| 276 | FindDocumentsRequest request, | ||
| 277 | Signature requestorSignature, | ||
| 278 | Signature ownerSignature | ||
| 279 | ) throws EhrException; | ||
| 280 | |||
| 281 | void setDefaultAccess( | ||
| 282 | SetDefaultAccessRequest request, | ||
| 283 | Signature requestorSignature | ||
| 284 | ) throws EhrException; | ||
| 285 | |||
| 286 | void createPermission( | ||
| 287 | CreatePermissionRequest request, | ||
| 288 | Signature requestorSignature | ||
| 289 | ) throws EhrException; | ||
| 290 | |||
| 291 | Permissions listPermissions( | ||
| 292 | ListPermissionsRequest request, | ||
| 293 | Signature requestorSignature | ||
| 294 | ) throws EhrException; | ||
| 295 | |||
| 296 | void removePermission( | ||
| 297 | RemovePermissionRequest request, | ||
| 298 | Signature requestorSignature | ||
| 299 | ) throws EhrException; | ||
| 300 | |||
| 301 | }; | ||
| 302 | }; | ||
diff --git a/task1/ehrclient.cpp b/task1/ehrclient.cpp new file mode 100644 index 0000000..ec3c2c1 --- /dev/null +++ b/task1/ehrclient.cpp | |||
| @@ -0,0 +1,496 @@ | |||
| 1 | /** | ||
| 2 | * $Id: ehrclient.cpp 2 2009-10-31 02:48:23Z l0728348 $ | ||
| 3 | * | ||
| 4 | * Copyright 2009 | ||
| 5 | * | ||
| 6 | * @author Manuel Mausz (0728348) | ||
| 7 | * @brief implements the main routines of the console application | ||
| 8 | */ | ||
| 9 | |||
| 10 | #include <iostream> | ||
| 11 | #include <iomanip> | ||
| 12 | #include <fstream> | ||
| 13 | #include <Ice/Plugin.h> | ||
| 14 | #include <time.h> | ||
| 15 | #include <sys/time.h> | ||
| 16 | #include "ehrclient.h" | ||
| 17 | #include "getoptwrapper.h" | ||
| 18 | #include "cairodocument.h" | ||
| 19 | #include "utils.h" | ||
| 20 | |||
| 21 | using namespace std; | ||
| 22 | using namespace Ehr; | ||
| 23 | |||
| 24 | int EhrClient::run(int argc, char *argv[]) | ||
| 25 | { | ||
| 26 | /* setup commandline option */ | ||
| 27 | CommandOption optnode("node", 0, "The object identifier string used to connect to the EHR provider node", CommandOption::needArg); | ||
| 28 | CommandOption optreq("requestor", 0, "The PEM file containing the requestors certifcate and private key for signing", CommandOption::needArg); | ||
| 29 | CommandOption optowner("owner", 0, "The PEM file containing the patients certifcate and private key for signing", CommandOption::needArg); | ||
| 30 | CommandOption optlist("list", 0, "Display a list of all documents available in the patient's EHR", CommandOption::noArg); | ||
| 31 | CommandOption optdoc("document", 0, "The ID of the document selected for exporting to PDF", CommandOption::needArg); | ||
| 32 | CommandOption optout("output", 0, "The output file", CommandOption::needArg); | ||
| 33 | CommandOption opthelp("help", 0, "Display this help and exit", CommandOption::noArg); | ||
| 34 | CommandOptionParse opts(argc, argv, "Allowed options"); | ||
| 35 | opts.addSynopsis("--node <providernode> --requestor <infile> --owner <infile> --list"); | ||
| 36 | opts.addSynopsis("--node <providernode> --requestor <infile> --owner <infile> --document <id> --output <outfile>"); | ||
| 37 | |||
| 38 | /* error during parsing or help-option set */ | ||
| 39 | if (!opts.parse() || opts["help"]) | ||
| 40 | { | ||
| 41 | cerr << opts; | ||
| 42 | return EXIT_FAILURE; | ||
| 43 | } | ||
| 44 | |||
| 45 | /* check commandline option combinations */ | ||
| 46 | try | ||
| 47 | { | ||
| 48 | /* missing mandatory options */ | ||
| 49 | if (!opts["node"] || !opts["requestor"] || !opts["owner"] | ||
| 50 | || (!opts["list"] && !opts["document"])) | ||
| 51 | throw runtime_error("missing mandatory commandline options"); | ||
| 52 | |||
| 53 | /* list-option needs to be alone (and vica-versa) */ | ||
| 54 | if (opts["list"] && (opts["document"] || opts["output"])) | ||
| 55 | throw runtime_error("unable to combine these commandline options"); | ||
| 56 | |||
| 57 | /* document-option needs output-option */ | ||
| 58 | if (opts["document"] && !opts["output"]) | ||
| 59 | throw runtime_error("--document needs --output"); | ||
| 60 | |||
| 61 | /* don't allow options to occur multiple times */ | ||
| 62 | if (opts["node"] > 1 || opts["requestor"] > 1 || opts["owner"] > 1 | ||
| 63 | || opts["list"] > 1 || opts["document"] > 1 || opts["output"] > 1) | ||
| 64 | throw runtime_error("commandline options may occur only once"); | ||
| 65 | } | ||
| 66 | catch(runtime_error& ex) | ||
| 67 | { | ||
| 68 | cerr << appName() << ": " << ex.what() << endl | ||
| 69 | << opts; | ||
| 70 | return EXIT_FAILURE; | ||
| 71 | } | ||
| 72 | |||
| 73 | /* save for later */ | ||
| 74 | m_ownercert = opts["owner"].value(); | ||
| 75 | m_requestorcert = opts["requestor"].value(); | ||
| 76 | |||
| 77 | /* set some properties */ | ||
| 78 | Ice::PropertiesPtr props = communicator()->getProperties(); | ||
| 79 | if (props->getProperty("IceSSL.CertAuthFile").empty()) | ||
| 80 | props->setProperty("IceSSL.CertAuthFile", "./certs/rootca.pem"); | ||
| 81 | props->setProperty("IceSSL.CertFile", m_requestorcert); | ||
| 82 | |||
| 83 | /* load plugins */ | ||
| 84 | Ice::PluginManagerPtr pluginmgr = communicator()->getPluginManager(); | ||
| 85 | pluginmgr->initializePlugins(); | ||
| 86 | |||
| 87 | /* get security instance */ | ||
| 88 | m_security = &Security::instance(); | ||
| 89 | |||
| 90 | /* get provider proxy */ | ||
| 91 | Ice::ObjectPrx base = communicator()->stringToProxy(opts["node"]); | ||
| 92 | if (!(m_provider = ProviderPrx::checkedCast(base))) | ||
| 93 | throw runtime_error("error - invalid node or doesn't exist"); | ||
| 94 | |||
| 95 | try | ||
| 96 | { | ||
| 97 | if (opts["list"]) | ||
| 98 | listDocuments(); | ||
| 99 | else if (opts["document"] && opts["output"]) | ||
| 100 | { | ||
| 101 | long docid; | ||
| 102 | try | ||
| 103 | { | ||
| 104 | docid = Utils::lexical_cast<long, string>(opts["document"].value()); | ||
| 105 | } | ||
| 106 | catch(Utils::bad_lexical_cast& ex) | ||
| 107 | { | ||
| 108 | throw runtime_error("error - invalid document-parameter - not a number"); | ||
| 109 | } | ||
| 110 | if (docid <= 0) | ||
| 111 | throw runtime_error("error - invalid document-parameter - only positive numbers"); | ||
| 112 | saveDocument(docid, opts["output"]); | ||
| 113 | } | ||
| 114 | } | ||
| 115 | catch(EhrException& e) | ||
| 116 | { | ||
| 117 | throw runtime_error("error - " + e.what); | ||
| 118 | } | ||
| 119 | |||
| 120 | return 0; | ||
| 121 | } | ||
| 122 | |||
| 123 | /*----------------------------------------------------------------------------*/ | ||
| 124 | |||
| 125 | #include <memory> | ||
| 126 | Ehr::DocumentList EhrClient::getDocumentList() | ||
| 127 | { | ||
| 128 | /* fill in request */ | ||
| 129 | ListDocumentsRequestPtr request = new ListDocumentsRequest(); | ||
| 130 | pair<string, string> cnowner = splitCN(m_ownercert); | ||
| 131 | pair<string, string> cnrequestor = splitCN(m_requestorcert); | ||
| 132 | request->owner.user = cnowner.first; | ||
| 133 | request->owner.provider = cnowner.second; | ||
| 134 | request->requestor.user = cnrequestor.first; | ||
| 135 | request->requestor.provider = cnrequestor.second; | ||
| 136 | request->when.msecs = getTime(); | ||
| 137 | |||
| 138 | /* objects containing the signature */ | ||
| 139 | Signature requestor; | ||
| 140 | Signature owner; | ||
| 141 | |||
| 142 | /* sign the request */ | ||
| 143 | vector<Ice::Byte> data = convertToByteStream(request); | ||
| 144 | m_security->sign(m_requestorcert, data, requestor.data); | ||
| 145 | m_security->sign(m_ownercert, data, owner.data); | ||
| 146 | |||
| 147 | /* execute */ | ||
| 148 | return m_provider->listDocuments(request, requestor, owner); | ||
| 149 | } | ||
| 150 | |||
| 151 | /*----------------------------------------------------------------------------*/ | ||
| 152 | |||
| 153 | Ehr::DocumentList EhrClient::searchDocument(const bool hasFrom, const long from, | ||
| 154 | const bool hasTill, const long till, | ||
| 155 | const Ehr::DocumentType doctype, const long docid) | ||
| 156 | { | ||
| 157 | /* fill in request */ | ||
| 158 | FindDocumentsRequestPtr request = new FindDocumentsRequest(); | ||
| 159 | pair<string, string> cnowner = splitCN(m_ownercert); | ||
| 160 | pair<string, string> cnrequestor = splitCN(m_requestorcert); | ||
| 161 | request->owner.user = cnowner.first; | ||
| 162 | request->owner.provider = cnowner.second; | ||
| 163 | request->requestor.user = cnrequestor.first; | ||
| 164 | request->requestor.provider = cnrequestor.second; | ||
| 165 | request->when.msecs = getTime(); | ||
| 166 | request->hasFrom = hasFrom; | ||
| 167 | request->from.msecs = from; | ||
| 168 | request->hasTill = hasTill; | ||
| 169 | request->from.msecs = till; | ||
| 170 | request->type = doctype; | ||
| 171 | request->documentId = docid; | ||
| 172 | |||
| 173 | /* objects containing the signature */ | ||
| 174 | Signature requestor; | ||
| 175 | Signature owner; | ||
| 176 | |||
| 177 | /* sign the request */ | ||
| 178 | vector<Ice::Byte> data = convertToByteStream(request); | ||
| 179 | m_security->sign(m_requestorcert, data, requestor.data); | ||
| 180 | m_security->sign(m_ownercert, data, owner.data); | ||
| 181 | |||
| 182 | /* execute */ | ||
| 183 | return m_provider->findDocuments(request, requestor, owner); | ||
| 184 | } | ||
| 185 | |||
| 186 | /*----------------------------------------------------------------------------*/ | ||
| 187 | |||
| 188 | void EhrClient::listDocuments() | ||
| 189 | { | ||
| 190 | /* get document list */ | ||
| 191 | DocumentList doclist = getDocumentList(); | ||
| 192 | DocumentPtr doc = new Document(); | ||
| 193 | |||
| 194 | /* print the list */ | ||
| 195 | cout << "Documentlist for " << m_security->getCommonName(m_ownercert) << ":" << endl; | ||
| 196 | if (doclist.size() != 0) | ||
| 197 | { | ||
| 198 | for(unsigned i = 0; i < doclist.size(); ++i) | ||
| 199 | { | ||
| 200 | /* decrypt our document */ | ||
| 201 | vector<Ice::Byte> data; | ||
| 202 | m_security->decryptPrivate(m_ownercert, doclist[i].document.encryptedData, | ||
| 203 | doclist[i].document.initialVector, doclist[i].document.encryptedKey, data); | ||
| 204 | Ice::InputStreamPtr in = Ice::createInputStream(communicator(), data); | ||
| 205 | ice_readDocument(in, doc); | ||
| 206 | in->readPendingObjects(); | ||
| 207 | |||
| 208 | cout << " ID#" << doclist[i].id | ||
| 209 | << " " << getDate(doclist[i].created.msecs) | ||
| 210 | << endl; | ||
| 211 | if (doc->type == DOCPRESCRIPTION || doc->type == DOCCONSUMEDPRESCRIPTION) | ||
| 212 | { | ||
| 213 | PrescriptionPtr presc = PrescriptionPtr::dynamicCast(doc); | ||
| 214 | cout << " Orginator: " << presc->originatorName << ", " << presc->originatorProfession << endl | ||
| 215 | << " Parmaceutical: " << presc->drugDescription << endl | ||
| 216 | << " Valid: " << getDate(presc->validFrom) << " - " << getDate(presc->expires) << endl; | ||
| 217 | } | ||
| 218 | |||
| 219 | cout << endl; | ||
| 220 | } | ||
| 221 | } | ||
| 222 | else | ||
| 223 | cout << "There are no documents available" << endl; | ||
| 224 | } | ||
| 225 | |||
| 226 | /*----------------------------------------------------------------------------*/ | ||
| 227 | |||
| 228 | void EhrClient::saveDocument(const long docid, const std::string& output) | ||
| 229 | { | ||
| 230 | /* first check if file already exist */ | ||
| 231 | ifstream ifile(output.c_str()); | ||
| 232 | if (ifile) | ||
| 233 | throw runtime_error("error - output file already exist"); | ||
| 234 | ifile.close(); | ||
| 235 | |||
| 236 | /* search for document */ | ||
| 237 | DocumentList doclist = searchDocument(docid); | ||
| 238 | if (doclist.size() == 0) | ||
| 239 | throw runtime_error("error - document not found"); | ||
| 240 | else if (doclist.size() > 1) | ||
| 241 | throw runtime_error("error - document exists multiple times"); | ||
| 242 | |||
| 243 | /* decrypt our document */ | ||
| 244 | DocumentPtr doc = new Document(); | ||
| 245 | vector<Ice::Byte> data; | ||
| 246 | m_security->decryptPrivate(m_ownercert, doclist[0].document.encryptedData, | ||
| 247 | doclist[0].document.initialVector, doclist[0].document.encryptedKey, data); | ||
| 248 | Ice::InputStreamPtr in = Ice::createInputStream(communicator(), data); | ||
| 249 | ice_readDocument(in, doc); | ||
| 250 | in->readPendingObjects(); | ||
| 251 | |||
| 252 | if (doc->type == DOCPRESCRIPTION || doc->type == DOCCONSUMEDPRESCRIPTION) | ||
| 253 | { | ||
| 254 | PrescriptionPtr presc = PrescriptionPtr::dynamicCast(doc); | ||
| 255 | |||
| 256 | /* create our pdf document */ | ||
| 257 | //CairoDocument cairodoc(210, 148); // A6 lanscape | ||
| 258 | CairoDocument cairodoc(148, 105); // A5 landscape | ||
| 259 | CairoColor colblack(0, 0, 0); | ||
| 260 | CairoColor colgrey(0.5, 0.5, 0.5); | ||
| 261 | CairoFont fontsmall(7, "sans-serif"); | ||
| 262 | CairoFont fontbig(10, "sans-serif"); | ||
| 263 | |||
| 264 | /* set default */ | ||
| 265 | cairodoc.add(fontbig).add(colblack); | ||
| 266 | |||
| 267 | /* our current position */ | ||
| 268 | double docleft = 0; | ||
| 269 | double doctop = 0; | ||
| 270 | double docwidth = cairodoc.width(); | ||
| 271 | double docheight = cairodoc.height(); | ||
| 272 | double padding = 3; | ||
| 273 | |||
| 274 | /* add document border */ | ||
| 275 | CairoRectangle docborder(docleft += padding, doctop += padding, | ||
| 276 | docwidth -= 2 * padding, docheight -= 2 * padding, 0.2); | ||
| 277 | cairodoc.add(docborder); | ||
| 278 | |||
| 279 | /* add inner padding */ | ||
| 280 | docleft += padding; | ||
| 281 | doctop += padding; | ||
| 282 | docwidth -= 2 * padding; | ||
| 283 | docheight -= 2 * padding; | ||
| 284 | |||
| 285 | /* add consumer name + label */ | ||
| 286 | double boxleftwith = (docwidth - docleft) * 3 / 4; | ||
| 287 | double boxleftwithin = boxleftwith - padding; | ||
| 288 | CairoTextBox consumerlabel(docleft, doctop, boxleftwithin, fontsmall.height()); | ||
| 289 | consumerlabel << "Consumer name:"; | ||
| 290 | cairodoc.add(consumerlabel.add(colgrey).add(fontsmall)); | ||
| 291 | doctop += consumerlabel.height(); | ||
| 292 | |||
| 293 | CairoTextBox consumername(docleft, doctop, boxleftwithin, fontbig.height()); | ||
| 294 | consumername << presc->consumerName; | ||
| 295 | cairodoc.add(consumername); | ||
| 296 | doctop += consumername.height(); | ||
| 297 | |||
| 298 | /* add consumer birth + label */ | ||
| 299 | doctop += 1; | ||
| 300 | CairoTextBox consumerdatelabel(docleft, doctop, boxleftwithin, fontsmall.height(), 0); | ||
| 301 | consumerdatelabel << "Date of birth:"; | ||
| 302 | cairodoc.add(consumerdatelabel.add(colgrey).add(fontsmall)); | ||
| 303 | doctop += consumerdatelabel.height(); | ||
| 304 | |||
| 305 | CairoTextBox consumerdate(docleft, doctop, boxleftwithin, fontbig.height()); | ||
| 306 | consumerdate << getDate(presc->consumerDateOfBirth); | ||
| 307 | cairodoc.add(consumerdate); | ||
| 308 | doctop += consumerdate.height(); | ||
| 309 | |||
| 310 | /* put that in a box */ | ||
| 311 | CairoRectangle consumerborder(docborder.x(), docborder.y(), | ||
| 312 | docleft - docborder.x() + boxleftwith, doctop - docborder.y() + padding); | ||
| 313 | cairodoc.add(consumerborder); | ||
| 314 | doctop += 2 * padding; | ||
| 315 | |||
| 316 | /* add originator */ | ||
| 317 | CairoTextBox originatorlabel(docleft, doctop, boxleftwithin, fontsmall.height()); | ||
| 318 | originatorlabel << "Originator:"; | ||
| 319 | cairodoc.add(originatorlabel.add(colgrey).add(fontsmall)); | ||
| 320 | doctop += originatorlabel.height(); | ||
| 321 | |||
| 322 | CairoTextBox originator(docleft, doctop, boxleftwithin, fontbig.height() * 2); | ||
| 323 | originator << presc->originatorName << ", " << presc->originatorProfession | ||
| 324 | << "\n" << presc->originatorAddress; | ||
| 325 | cairodoc.add(originator); | ||
| 326 | doctop += originator.height(); | ||
| 327 | |||
| 328 | /* put that in a box */ | ||
| 329 | CairoRectangle originatorborder(docborder.x(), docborder.y(), | ||
| 330 | docleft - docborder.x() + boxleftwith, originator.y() + originator.height()); | ||
| 331 | cairodoc.add(originatorborder); | ||
| 332 | doctop += 2 * padding; | ||
| 333 | |||
| 334 | /* add left box */ | ||
| 335 | double boxrightx = consumerlabel.x() + boxleftwith; | ||
| 336 | double boxrighty = docborder.y(); | ||
| 337 | double boxrightwidth = docborder.x() + docborder.width() - boxrightx; | ||
| 338 | CairoRectangle datesborder(boxrightx, boxrighty, boxrightwidth, originator.y() + originator.height()); | ||
| 339 | cairodoc.add(datesborder); | ||
| 340 | |||
| 341 | /* add inner padding */ | ||
| 342 | double boxrightxin = boxrightx + padding; | ||
| 343 | boxrighty += padding; | ||
| 344 | double boxrightwidthin = boxrightwidth - 2 * padding; | ||
| 345 | |||
| 346 | /* add creation date */ | ||
| 347 | CairoTextBox createdlabel(boxrightxin, boxrighty, boxrightwidthin, fontsmall.height()); | ||
| 348 | createdlabel << "Created on:"; | ||
| 349 | cairodoc.add(createdlabel.add(colgrey).add(fontsmall)); | ||
| 350 | boxrighty += consumerlabel.height(); | ||
| 351 | |||
| 352 | CairoTextBox created(boxrightxin, boxrighty, boxrightwidthin, fontbig.height()); | ||
| 353 | created << getDate(presc->creationDate); | ||
| 354 | cairodoc.add(created); | ||
| 355 | boxrighty += created.height(); | ||
| 356 | boxrighty += 1; | ||
| 357 | |||
| 358 | /* add valid from date */ | ||
| 359 | CairoTextBox validfromlabel(boxrightxin, boxrighty, boxrightwidthin, fontsmall.height()); | ||
| 360 | validfromlabel << "Valid from:"; | ||
| 361 | cairodoc.add(validfromlabel.add(colgrey).add(fontsmall)); | ||
| 362 | boxrighty += validfromlabel.height(); | ||
| 363 | |||
| 364 | CairoTextBox valid(boxrightxin, boxrighty, boxrightwidthin, fontbig.height()); | ||
| 365 | valid << getDate(presc->validFrom); | ||
| 366 | cairodoc.add(valid); | ||
| 367 | boxrighty += valid.height(); | ||
| 368 | boxrighty += 1; | ||
| 369 | |||
| 370 | /* add expire date */ | ||
| 371 | CairoTextBox expirelabel(boxrightxin, boxrighty, boxrightwidthin, fontsmall.height()); | ||
| 372 | expirelabel << "Expire on:"; | ||
| 373 | cairodoc.add(expirelabel.add(colgrey).add(fontsmall)); | ||
| 374 | boxrighty += expirelabel.height(); | ||
| 375 | |||
| 376 | CairoTextBox expire(boxrightxin, boxrighty, boxrightwidthin, fontbig.height()); | ||
| 377 | expire << getDate(presc->expires); | ||
| 378 | cairodoc.add(expire); | ||
| 379 | |||
| 380 | /* add drug */ | ||
| 381 | CairoTextBox druglabel(docleft, doctop, docwidth, fontsmall.height()); | ||
| 382 | druglabel << "Pharmaceutical:"; | ||
| 383 | cairodoc.add(druglabel.add(colgrey).add(fontsmall)); | ||
| 384 | doctop += druglabel.height(); | ||
| 385 | |||
| 386 | CairoTextBox drug(docleft, doctop, docwidth, fontbig.height()); | ||
| 387 | drug << presc->drugDescription | ||
| 388 | << "\n" << presc->dosage << " " << presc->measuringUnit | ||
| 389 | << ", " << presc->form; | ||
| 390 | cairodoc.add(drug); | ||
| 391 | |||
| 392 | if (doc->type == DOCCONSUMEDPRESCRIPTION) | ||
| 393 | { | ||
| 394 | ConsumedPrescriptionPtr presc2 = ConsumedPrescriptionPtr::dynamicCast(doc); | ||
| 395 | |||
| 396 | /* add consumed prescreption */ | ||
| 397 | double boxbottomy = docborder.y() + docborder.height() - | ||
| 398 | (2 * padding + 2 * fontbig.height() + fontsmall.height()); | ||
| 399 | CairoRectangle consumedborder(docborder.x(), boxbottomy, docleft - docborder.x() + boxleftwith, | ||
| 400 | docborder.height() - boxbottomy + docborder.x()); | ||
| 401 | cairodoc.add(consumedborder); | ||
| 402 | |||
| 403 | double boxbottomyin = boxbottomy + padding; | ||
| 404 | CairoTextBox consumedlabel(docleft, boxbottomyin, boxleftwithin, fontsmall.height()); | ||
| 405 | consumedlabel << "Consumed by:"; | ||
| 406 | cairodoc.add(consumedlabel.add(colgrey).add(fontsmall)); | ||
| 407 | |||
| 408 | CairoTextBox consumeddatelabel(boxrightxin, boxbottomyin, boxrightwidth, fontsmall.height()); | ||
| 409 | consumeddatelabel << "Consumed on:"; | ||
| 410 | cairodoc.add(consumeddatelabel.add(colgrey).add(fontsmall)); | ||
| 411 | boxbottomyin += consumedlabel.height(); | ||
| 412 | |||
| 413 | CairoTextBox consumed(docleft, boxbottomyin, boxleftwithin, fontbig.height() * 2); | ||
| 414 | consumed << presc2->dispenserName << ", " << presc2->dispenserProfession | ||
| 415 | << "\n" << presc2->dispenserAddress; | ||
| 416 | cairodoc.add(consumed); | ||
| 417 | |||
| 418 | CairoTextBox consumedon(boxrightxin, boxbottomyin, boxrightwidth, fontbig.height()); | ||
| 419 | consumedon << getDate(presc2->dispensingDate); | ||
| 420 | cairodoc.add(consumedon); | ||
| 421 | |||
| 422 | /* add consumed date border */ | ||
| 423 | CairoRectangle consumedborder2(boxrightx, boxbottomy, boxrightwidth, | ||
| 424 | docborder.height() - boxbottomy + docborder.x()); | ||
| 425 | cairodoc.add(consumedborder2); | ||
| 426 | } | ||
| 427 | |||
| 428 | cairodoc.save(output, CairoDocument::PDF); | ||
| 429 | } | ||
| 430 | else | ||
| 431 | throw runtime_error("error - unsupported document type"); | ||
| 432 | |||
| 433 | return; | ||
| 434 | } | ||
| 435 | |||
| 436 | /*----------------------------------------------------------------------------*/ | ||
| 437 | |||
| 438 | long EhrClient::getTime() | ||
| 439 | { | ||
| 440 | /* get time in milliseconds */ | ||
| 441 | struct timeval tv; | ||
| 442 | gettimeofday(&tv, NULL); | ||
| 443 | return tv.tv_sec * 1000 + tv.tv_usec / 1000; | ||
| 444 | } | ||
| 445 | |||
| 446 | /*----------------------------------------------------------------------------*/ | ||
| 447 | |||
| 448 | std::string EhrClient::getDate(long msecs) | ||
| 449 | { | ||
| 450 | struct tm doctime; | ||
| 451 | const time_t timep = msecs / 1000; | ||
| 452 | localtime_r(&timep, &doctime); | ||
| 453 | stringstream out(""); | ||
| 454 | out << doctime.tm_mday << "." << doctime.tm_mon << "." << doctime.tm_year + 1900 | ||
| 455 | << " " << doctime.tm_hour << ':' << doctime.tm_min << ':' << doctime.tm_sec; | ||
| 456 | return out.str(); | ||
| 457 | } | ||
| 458 | |||
| 459 | /*----------------------------------------------------------------------------*/ | ||
| 460 | |||
| 461 | std::string EhrClient::getDate(const Ehr::Date& date) | ||
| 462 | { | ||
| 463 | stringstream out(""); | ||
| 464 | out << static_cast<unsigned>(date.day) << "." << static_cast<unsigned>(date.month) | ||
| 465 | << "." << date.year; | ||
| 466 | return out.str(); | ||
| 467 | } | ||
| 468 | |||
| 469 | /*----------------------------------------------------------------------------*/ | ||
| 470 | |||
| 471 | vector<Ice::Byte> EhrClient::convertToByteStream(const Ice::ObjectPtr& request) | ||
| 472 | { | ||
| 473 | /* in order to sign our request, we need to convert | ||
| 474 | * the request to a bytestream first | ||
| 475 | */ | ||
| 476 | Ice::OutputStreamPtr out = Ice::createOutputStream(communicator()); | ||
| 477 | vector<Ice::Byte> data; | ||
| 478 | out->writeObject(request); | ||
| 479 | out->writePendingObjects(); | ||
| 480 | out->finished(data); | ||
| 481 | return data; | ||
| 482 | } | ||
| 483 | |||
| 484 | /*----------------------------------------------------------------------------*/ | ||
| 485 | |||
| 486 | std::pair<std::string, std::string> EhrClient::splitCN(const std::string& cert) | ||
| 487 | { | ||
| 488 | /* parse requestor details from cert */ | ||
| 489 | string commonname = m_security->getCommonName(cert); | ||
| 490 | size_t pos = commonname.find_first_of('@'); | ||
| 491 | if (pos == string::npos) | ||
| 492 | throw runtime_error("error - commonname of cert \"" + cert + "\" doesn't have user@provider syntax"); | ||
| 493 | return pair<string, string>(commonname.substr(0, pos), commonname.substr(pos + 1)); | ||
| 494 | } | ||
| 495 | |||
| 496 | /* vim: set et sw=2 ts=2: */ | ||
diff --git a/task1/ehrclient.h b/task1/ehrclient.h new file mode 100644 index 0000000..2654000 --- /dev/null +++ b/task1/ehrclient.h | |||
| @@ -0,0 +1,164 @@ | |||
| 1 | /** | ||
| 2 | * $Id: ehrclient.h 2 2009-10-31 02:48:23Z l0728348 $ | ||
| 3 | * | ||
| 4 | * Copyright 2009 | ||
| 5 | * | ||
| 6 | * @author Manuel Mausz (0728348) | ||
| 7 | * @brief implements the main routines of the console application | ||
| 8 | */ | ||
| 9 | |||
| 10 | #ifndef EHRCLIENT_H | ||
| 11 | #define EHRCLIENT_H | ||
| 12 | |||
| 13 | #include <string> | ||
| 14 | #include <vector> | ||
| 15 | #include <utility> | ||
| 16 | #include <stdexcept> | ||
| 17 | #include <Ice/Ice.h> | ||
| 18 | #include "ehr.h" | ||
| 19 | #include "security.h" | ||
| 20 | |||
| 21 | /** | ||
| 22 | * implements the main routines of the console application | ||
| 23 | */ | ||
| 24 | class EhrClient | ||
| 25 | : virtual public Ice::Application | ||
| 26 | { | ||
| 27 | public: | ||
| 28 | /** | ||
| 29 | * @brief exception thrown by EhrClient | ||
| 30 | */ | ||
| 31 | class runtime_error : public std::runtime_error { | ||
| 32 | public: | ||
| 33 | /** | ||
| 34 | * @brief Default exception ctor | ||
| 35 | * @param what message to pass along | ||
| 36 | */ | ||
| 37 | runtime_error(const std::string& what) | ||
| 38 | : std::runtime_error(what) | ||
| 39 | {} | ||
| 40 | }; | ||
| 41 | |||
| 42 | /** | ||
| 43 | * @brief main routine | ||
| 44 | * gets called by Ice after internal setup | ||
| 45 | * @param argc argc from main | ||
| 46 | * @param argv argv from main | ||
| 47 | */ | ||
| 48 | virtual int run(int argc, char *argv[]); | ||
| 49 | |||
| 50 | /** | ||
| 51 | * @brief retrieves and returns documentlist from server | ||
| 52 | * @return list of documents | ||
| 53 | */ | ||
| 54 | Ehr::DocumentList getDocumentList(); | ||
| 55 | |||
| 56 | /** | ||
| 57 | * @brief search for documents using parameters | ||
| 58 | * @param hasFrom set true to consider from parameter | ||
| 59 | * @param from value for from parameter | ||
| 60 | * @param hasTill set true to consider till parameter | ||
| 61 | * @param till value for till parameter | ||
| 62 | * @param doctype document type to search for | ||
| 63 | * @param docid document id to search for | ||
| 64 | * @return list of documents | ||
| 65 | * @throw Ehr::EhrException | ||
| 66 | */ | ||
| 67 | Ehr::DocumentList searchDocument(const bool hasFrom = false, const long from = 0, | ||
| 68 | const bool hasTill = false, const long till = 0, | ||
| 69 | const Ehr::DocumentType doctype = Ehr::DOCANY, const long docid = 0); | ||
| 70 | |||
| 71 | /** | ||
| 72 | * @brief overloaded method for searching for documents | ||
| 73 | * @param from value for from parameter | ||
| 74 | * @param till value for till parameter | ||
| 75 | * @return list of documents | ||
| 76 | * @throw Ehr::EhrException | ||
| 77 | */ | ||
| 78 | Ehr::DocumentList searchDocument(const long from, const long till) | ||
| 79 | { | ||
| 80 | return searchDocument(true, from, true, till); | ||
| 81 | } | ||
| 82 | |||
| 83 | /** | ||
| 84 | * @brief overloaded method for searching for documents | ||
| 85 | * @param doctype document type to search for | ||
| 86 | * @return list of documents | ||
| 87 | * @throw Ehr::EhrException | ||
| 88 | */ | ||
| 89 | Ehr::DocumentList searchDocument(const Ehr::DocumentType doctype) | ||
| 90 | { | ||
| 91 | return searchDocument(false, 0, false, 0, doctype); | ||
| 92 | } | ||
| 93 | |||
| 94 | /** | ||
| 95 | * @brief overloaded method for searching for documents | ||
| 96 | * @param docid document id to search for | ||
| 97 | * @return list of documents | ||
| 98 | * @throw Ehr::EhrException | ||
| 99 | */ | ||
| 100 | Ehr::DocumentList searchDocument(const long docid) | ||
| 101 | { | ||
| 102 | return searchDocument(false, 0, false, 0, Ehr::DOCANY, docid); | ||
| 103 | } | ||
| 104 | |||
| 105 | /** | ||
| 106 | * @brief list all document on server on console output | ||
| 107 | */ | ||
| 108 | void listDocuments(); | ||
| 109 | |||
| 110 | /** | ||
| 111 | * @brief retrieves document with documentid, generates a pdf document | ||
| 112 | * and stores it as output on disc | ||
| 113 | * @param docid document id | ||
| 114 | * @param output filename to store the pdf document | ||
| 115 | * @throw EhrClient::runtime_error | ||
| 116 | */ | ||
| 117 | void saveDocument(const long docid, const std::string& output); | ||
| 118 | |||
| 119 | /** | ||
| 120 | * @brief get current time in milliseconds | ||
| 121 | * @return current time in milliseconds | ||
| 122 | */ | ||
| 123 | long getTime(); | ||
| 124 | |||
| 125 | /** | ||
| 126 | * @brief generate date string | ||
| 127 | * @param msecs time in milliseconds since 01.01.1900 00:00 | ||
| 128 | * @return string containing the date. syntax: dd.mm.yyyy | ||
| 129 | */ | ||
| 130 | std::string getDate(long msecs); | ||
| 131 | |||
| 132 | /** | ||
| 133 | * @brief generate date string | ||
| 134 | * @param date date in Ehr::Date format | ||
| 135 | * @return string containing the date. syntax: dd.mm.yyyy | ||
| 136 | */ | ||
| 137 | std::string getDate(const Ehr::Date& date); | ||
| 138 | |||
| 139 | /** | ||
| 140 | * @brief convert ice request to bytestream | ||
| 141 | * @param request ice request to convert | ||
| 142 | * @return converted bytestream containing the request | ||
| 143 | */ | ||
| 144 | std::vector<Ice::Byte> convertToByteStream(const Ice::ObjectPtr& request); | ||
| 145 | |||
| 146 | /** | ||
| 147 | * @brief split commonname (syntax user @ domain) of certificate | ||
| 148 | * into user and domain | ||
| 149 | * @param cert certificate which contains the commonname | ||
| 150 | * @return pair of user and domain | ||
| 151 | * @throw EhrClient::runtime_error | ||
| 152 | */ | ||
| 153 | std::pair<std::string, std::string> splitCN(const std::string& cert); | ||
| 154 | |||
| 155 | private: | ||
| 156 | Ehr::ProviderPrx m_provider; | ||
| 157 | Security *m_security; | ||
| 158 | std::string m_ownercert; | ||
| 159 | std::string m_requestorcert; | ||
| 160 | }; | ||
| 161 | |||
| 162 | #endif | ||
| 163 | |||
| 164 | /* vim: set et sw=2 ts=2: */ | ||
diff --git a/task1/getoptwrapper.cpp b/task1/getoptwrapper.cpp new file mode 100644 index 0000000..1efd603 --- /dev/null +++ b/task1/getoptwrapper.cpp | |||
| @@ -0,0 +1,191 @@ | |||
| 1 | /** | ||
| 2 | * $Id: getoptwrapper.cpp 2 2009-10-31 02:48:23Z l0728348 $ | ||
| 3 | * | ||
| 4 | * Copyright 2009 | ||
| 5 | * | ||
| 6 | * @author Manuel Mausz (0728348) | ||
| 7 | * @brief Wraps around getopt_long() using two classes | ||
| 8 | * class CommandOption represents a valid commandline option | ||
| 9 | * class CommandOptionParse calls getopt_long | ||
| 10 | * and generates usage message | ||
| 11 | */ | ||
| 12 | |||
| 13 | #include <sstream> | ||
| 14 | #include <iomanip> | ||
| 15 | #include <algorithm> | ||
| 16 | #include <stdexcept> | ||
| 17 | #include <unistd.h> | ||
| 18 | #include "getoptwrapper.h" | ||
| 19 | |||
| 20 | using namespace std; | ||
| 21 | |||
| 22 | CommandOptionParse::CommandOptionList cmdoptionlist; | ||
| 23 | |||
| 24 | /*----------------------------------------------------------------------------*/ | ||
| 25 | |||
| 26 | const std::string CommandOption::printParameters() | ||
| 27 | { | ||
| 28 | ostringstream oss; | ||
| 29 | |||
| 30 | if (!m_longopt.empty() && m_shortopt != 0) | ||
| 31 | oss << "-" << m_shortopt << " [ --" << m_longopt << " ]"; | ||
| 32 | else if (!m_longopt.empty() && m_shortopt == 0) | ||
| 33 | oss << "--" << m_longopt; | ||
| 34 | else if (m_longopt.empty() && m_shortopt != 0) | ||
| 35 | oss << "-" << m_shortopt; | ||
| 36 | |||
| 37 | if (m_type == needArg) | ||
| 38 | oss << " arg"; | ||
| 39 | else if (m_type == optArg) | ||
| 40 | oss << " [ arg ]"; | ||
| 41 | |||
| 42 | return oss.str(); | ||
| 43 | } | ||
| 44 | |||
| 45 | /*----------------------------------------------------------------------------*/ | ||
| 46 | |||
| 47 | void CommandOption::foundOption(const char *value) | ||
| 48 | { | ||
| 49 | m_count++; | ||
| 50 | if (value != NULL) | ||
| 51 | m_value = value; | ||
| 52 | } | ||
| 53 | |||
| 54 | /*----------------------------------------------------------------------------*/ | ||
| 55 | |||
| 56 | bool CommandOptionParse::parse() | ||
| 57 | { | ||
| 58 | CommandOptionList::iterator it; | ||
| 59 | |||
| 60 | /* build optstring */ | ||
| 61 | m_optstring = ""; | ||
| 62 | for (it = m_cmdlist.begin(); it != m_cmdlist.end(); ++it) | ||
| 63 | { | ||
| 64 | CommandOption *opt = *it; | ||
| 65 | if (opt->m_shortopt == 0) | ||
| 66 | continue; | ||
| 67 | |||
| 68 | m_optstring += opt->m_shortopt; | ||
| 69 | if (opt->m_type == CommandOption::needArg) | ||
| 70 | m_optstring += ':'; | ||
| 71 | if (opt->m_type == CommandOption::optArg) | ||
| 72 | m_optstring += "::"; | ||
| 73 | } | ||
| 74 | |||
| 75 | /* build longopts */ | ||
| 76 | if (m_longopts != NULL) | ||
| 77 | delete[] m_longopts; | ||
| 78 | m_longopts = new option[m_cmdlist.size() + 1]; | ||
| 79 | int i = 0; | ||
| 80 | for (it = m_cmdlist.begin(); it != m_cmdlist.end(); ++it) | ||
| 81 | { | ||
| 82 | CommandOption *opt = *it; | ||
| 83 | if (opt->m_longopt.empty()) | ||
| 84 | continue; | ||
| 85 | |||
| 86 | m_longopts[i].name = opt->m_longopt.c_str(); | ||
| 87 | m_longopts[i].has_arg = opt->m_type; | ||
| 88 | m_longopts[i].flag = 0; | ||
| 89 | m_longopts[i].val = 0; | ||
| 90 | ++i; | ||
| 91 | } | ||
| 92 | |||
| 93 | /* append NULL-row */ | ||
| 94 | m_longopts[i].name = 0; | ||
| 95 | m_longopts[i].has_arg = 0; | ||
| 96 | m_longopts[i].flag = 0; | ||
| 97 | m_longopts[i].val = 0; | ||
| 98 | |||
| 99 | //opterr = 0; // no errors from getopt_long! | ||
| 100 | int opt; | ||
| 101 | int optindex = 0; | ||
| 102 | while ((opt = getopt_long(m_argc, m_argv, m_optstring.c_str(), m_longopts, &optindex)) != -1) | ||
| 103 | { | ||
| 104 | if (opt == '?') | ||
| 105 | return 0; | ||
| 106 | |||
| 107 | for (it = m_cmdlist.begin(); it != m_cmdlist.end(); ++it) | ||
| 108 | { | ||
| 109 | CommandOption *option = *it; | ||
| 110 | if (opt == 0) | ||
| 111 | { | ||
| 112 | if (option->m_longopt == m_longopts[optindex].name) | ||
| 113 | option->foundOption(optarg); | ||
| 114 | } | ||
| 115 | else if (opt == option->m_shortopt) | ||
| 116 | option->foundOption(optarg); | ||
| 117 | } | ||
| 118 | } | ||
| 119 | |||
| 120 | return 1; | ||
| 121 | } | ||
| 122 | |||
| 123 | /*----------------------------------------------------------------------------*/ | ||
| 124 | |||
| 125 | const std::string CommandOptionParse::usage() | ||
| 126 | { | ||
| 127 | ostringstream oss; | ||
| 128 | string me(m_argv[0]); | ||
| 129 | |||
| 130 | /* build usage/synopsis */ | ||
| 131 | oss << "Usage: "; | ||
| 132 | if (!m_synopsis.empty()) | ||
| 133 | { | ||
| 134 | oss << me << " " << m_synopsis.at(0) << endl; | ||
| 135 | for (unsigned i = 1; i < m_synopsis.size(); ++i) | ||
| 136 | oss << " " << me << " " << m_synopsis.at(i) << endl; | ||
| 137 | } | ||
| 138 | else | ||
| 139 | oss << me << " [OPTION]..." << endl; | ||
| 140 | |||
| 141 | /* find maximum width of options */ | ||
| 142 | CommandOptionList::iterator it; | ||
| 143 | unsigned width = 20; // default | ||
| 144 | for (it = m_cmdlist.begin(); it != m_cmdlist.end(); ++it) | ||
| 145 | { | ||
| 146 | stringstream tmpss; | ||
| 147 | tmpss << (*it)->printParameters(); | ||
| 148 | width = (max)(width, static_cast<unsigned>(tmpss.str().size())); | ||
| 149 | } | ||
| 150 | width += 2; | ||
| 151 | |||
| 152 | /* print allowed options + description */ | ||
| 153 | oss << endl << m_description << ":" << endl; | ||
| 154 | for (it = m_cmdlist.begin(); it != m_cmdlist.end(); ++it) | ||
| 155 | { | ||
| 156 | oss << " " << setw(width) << left << (*it)->printParameters() | ||
| 157 | << (*it)->m_description << endl; | ||
| 158 | } | ||
| 159 | |||
| 160 | return oss.str(); | ||
| 161 | } | ||
| 162 | |||
| 163 | /*----------------------------------------------------------------------------*/ | ||
| 164 | |||
| 165 | CommandOption& CommandOptionParse::operator[](const std::string& longopt) | ||
| 166 | { | ||
| 167 | CommandOptionList::iterator it; | ||
| 168 | for (it = m_cmdlist.begin(); it != m_cmdlist.end(); ++it) | ||
| 169 | { | ||
| 170 | CommandOption *opt = *it; | ||
| 171 | if (opt->m_longopt == longopt) | ||
| 172 | return *opt; | ||
| 173 | } | ||
| 174 | throw out_of_range("option not found"); | ||
| 175 | } | ||
| 176 | |||
| 177 | /*----------------------------------------------------------------------------*/ | ||
| 178 | |||
| 179 | CommandOption& CommandOptionParse::operator[](const char shortopt) | ||
| 180 | { | ||
| 181 | CommandOptionList::iterator it; | ||
| 182 | for (it = m_cmdlist.begin(); it != m_cmdlist.end(); ++it) | ||
| 183 | { | ||
| 184 | CommandOption *opt = *it; | ||
| 185 | if (opt->m_shortopt == shortopt) | ||
| 186 | return *opt; | ||
| 187 | } | ||
| 188 | throw out_of_range("option not found"); | ||
| 189 | } | ||
| 190 | |||
| 191 | /* vim: set et sw=2 ts=2: */ | ||
diff --git a/task1/getoptwrapper.h b/task1/getoptwrapper.h new file mode 100644 index 0000000..21270f7 --- /dev/null +++ b/task1/getoptwrapper.h | |||
| @@ -0,0 +1,231 @@ | |||
| 1 | /** | ||
| 2 | * $Id: getoptwrapper.h 2 2009-10-31 02:48:23Z l0728348 $ | ||
| 3 | * | ||
| 4 | * Copyright 2009 | ||
| 5 | * | ||
| 6 | * @author Manuel Mausz (0728348) | ||
| 7 | * @brief Wraps around getopt_long() using two classes | ||
| 8 | * class CommandOption represents a valid commandline option | ||
| 9 | * class CommandOptionParse calls getopt_long | ||
| 10 | * and generates usage message | ||
| 11 | */ | ||
| 12 | |||
| 13 | #ifndef GETOPTWRAPPER_H | ||
| 14 | #define GETOPTWRAPPER_H | ||
| 15 | |||
| 16 | #include <string> | ||
| 17 | #include <list> | ||
| 18 | #include <vector> | ||
| 19 | #if !defined(_GNU_SOURCE) | ||
| 20 | # define _GNU_SOURCE | ||
| 21 | #endif | ||
| 22 | #include <getopt.h> | ||
| 23 | |||
| 24 | /* forward declarations */ | ||
| 25 | class CommandOption; | ||
| 26 | class CommandOptionParse; | ||
| 27 | |||
| 28 | /** default list containing commandline options */ | ||
| 29 | extern std::list<CommandOption *> cmdoptionlist; | ||
| 30 | |||
| 31 | /** | ||
| 32 | * every instance of CommandOption represents a valid commandline option | ||
| 33 | * use CommandOptionParse to parse them | ||
| 34 | */ | ||
| 35 | class CommandOption | ||
| 36 | { | ||
| 37 | /* be friend with CommandOptionParse so it can use our privates */ | ||
| 38 | friend class CommandOptionParse; | ||
| 39 | |||
| 40 | public: | ||
| 41 | /** commandline option argument */ | ||
| 42 | enum Type | ||
| 43 | { | ||
| 44 | noArg = 0, /* no argument */ | ||
| 45 | needArg = 1, /* argument required */ | ||
| 46 | optArg = 2, /* argument optional */ | ||
| 47 | }; | ||
| 48 | |||
| 49 | /** | ||
| 50 | * @brief Default ctor. Adds commandline option to commandline list | ||
| 51 | * @param longopt long commandline option. empty string to omit | ||
| 52 | * @param shortopt short commandline option. 0 to omit | ||
| 53 | * @param description description. will be printed in usage | ||
| 54 | * @param type type of argument | ||
| 55 | * @param cmdlist list to add this commandline option | ||
| 56 | */ | ||
| 57 | CommandOption(const std::string& longopt, const char shortopt, const std::string& description, | ||
| 58 | const Type& type, std::list<CommandOption *>& cmdlist = cmdoptionlist) | ||
| 59 | : m_longopt(longopt), m_shortopt(shortopt), m_description(description), | ||
| 60 | m_type(type), m_count(0), m_value("") | ||
| 61 | { | ||
| 62 | if (!m_longopt.empty() || m_shortopt != 0) | ||
| 63 | cmdlist.push_back(this); | ||
| 64 | } | ||
| 65 | |||
| 66 | /** | ||
| 67 | * @brief Default dtor | ||
| 68 | */ | ||
| 69 | virtual ~CommandOption() | ||
| 70 | {} | ||
| 71 | |||
| 72 | /** | ||
| 73 | * @brief generate a usage string/valid syntax | ||
| 74 | * for this commandline option | ||
| 75 | * @return usage string for this commandline option | ||
| 76 | */ | ||
| 77 | const std::string printParameters(); | ||
| 78 | |||
| 79 | /** | ||
| 80 | * @brief get number of commandline matches found | ||
| 81 | * @return number of commandline matches found | ||
| 82 | */ | ||
| 83 | unsigned count() | ||
| 84 | { | ||
| 85 | return m_count; | ||
| 86 | } | ||
| 87 | |||
| 88 | /** | ||
| 89 | * @brief get number of commandline matches found | ||
| 90 | * @return number of commandline matches found | ||
| 91 | */ | ||
| 92 | operator unsigned() | ||
| 93 | { | ||
| 94 | return count(); | ||
| 95 | } | ||
| 96 | |||
| 97 | /** | ||
| 98 | * @brief returns first valid commandline option argument | ||
| 99 | * if the commandline option is found a second time, | ||
| 100 | * the argument is omitted | ||
| 101 | * @return first valid argument for this commandline option | ||
| 102 | */ | ||
| 103 | const std::string value() | ||
| 104 | { | ||
| 105 | return m_value; | ||
| 106 | } | ||
| 107 | |||
| 108 | /** | ||
| 109 | * @brief returns first valid commandline option argument | ||
| 110 | * if the commandline option is found a second time, | ||
| 111 | * the argument is omitted | ||
| 112 | * @return first valid argument for this commandline option | ||
| 113 | */ | ||
| 114 | operator std::string() | ||
| 115 | { | ||
| 116 | return value(); | ||
| 117 | } | ||
| 118 | |||
| 119 | private: | ||
| 120 | /** | ||
| 121 | * @brief gets called by CommandOptionParse if the commandline option | ||
| 122 | * is found. Parses and stores the argument. Only the first call | ||
| 123 | * will be stored. | ||
| 124 | * @param value commandline option argument | ||
| 125 | */ | ||
| 126 | void foundOption(const char *value); | ||
| 127 | |||
| 128 | std::string m_longopt; | ||
| 129 | char m_shortopt; | ||
| 130 | std::string m_description; | ||
| 131 | Type m_type; | ||
| 132 | unsigned m_count; | ||
| 133 | std::string m_value; | ||
| 134 | }; | ||
| 135 | |||
| 136 | /*----------------------------------------------------------------------------*/ | ||
| 137 | |||
| 138 | /** | ||
| 139 | * parses argc/argv using getopt_long and a list of instances of CommandOption | ||
| 140 | * also generates usage message | ||
| 141 | */ | ||
| 142 | class CommandOptionParse | ||
| 143 | { | ||
| 144 | public: | ||
| 145 | /** list of pointers of CommandOption */ | ||
| 146 | typedef std::list<CommandOption *> CommandOptionList; | ||
| 147 | |||
| 148 | /** | ||
| 149 | * @brief Default ctor. | ||
| 150 | * @param argc argc of main | ||
| 151 | * @param argv argv of main | ||
| 152 | * @param description will be printed in usage before CommandOption list | ||
| 153 | * @param cmdlist list to add this commandline option | ||
| 154 | */ | ||
| 155 | CommandOptionParse(int argc, char* argv[], const std::string& description, | ||
| 156 | std::list<CommandOption *>& cmdlist = cmdoptionlist) | ||
| 157 | : m_argc(argc), m_argv(argv), m_description(description), m_cmdlist(cmdlist), | ||
| 158 | m_longopts(NULL) | ||
| 159 | {} | ||
| 160 | |||
| 161 | /** | ||
| 162 | * @brief Default dtor. | ||
| 163 | */ | ||
| 164 | virtual ~CommandOptionParse() | ||
| 165 | { | ||
| 166 | if (m_longopts != NULL) | ||
| 167 | delete[] m_longopts; | ||
| 168 | } | ||
| 169 | |||
| 170 | /** | ||
| 171 | * @brief adds valid synopsis to usage message | ||
| 172 | * @param synopsis synopsis | ||
| 173 | */ | ||
| 174 | void addSynopsis(const std::string& synopsis) | ||
| 175 | { | ||
| 176 | m_synopsis.push_back(synopsis); | ||
| 177 | } | ||
| 178 | |||
| 179 | /** | ||
| 180 | * @brief starts parsing argc/argv | ||
| 181 | * @return true on success. false otherwise | ||
| 182 | */ | ||
| 183 | bool parse(); | ||
| 184 | |||
| 185 | /** | ||
| 186 | * @brief generates usage message | ||
| 187 | * @return usage message as string | ||
| 188 | */ | ||
| 189 | const std::string usage(); | ||
| 190 | |||
| 191 | /** | ||
| 192 | * @brief generates usage message and prints them on ostream | ||
| 193 | * @return reference to ostream | ||
| 194 | */ | ||
| 195 | friend std::ostream& operator<<(std::ostream& os, CommandOptionParse& cmdoptions) | ||
| 196 | { | ||
| 197 | os << cmdoptions.usage(); | ||
| 198 | return os; | ||
| 199 | } | ||
| 200 | |||
| 201 | /** | ||
| 202 | * @brief directly access a valid/parsed commandline option | ||
| 203 | * using its longopt parameter | ||
| 204 | * @param longopt parameter "longopt" of commandline option | ||
| 205 | * @return reference to commandline option | ||
| 206 | * @throw std::out_of_range if the commandline option cannot be found | ||
| 207 | */ | ||
| 208 | CommandOption& operator[](const std::string& longopt); | ||
| 209 | |||
| 210 | /** | ||
| 211 | * @brief directly access a valid/parsed commandline option | ||
| 212 | * using its shortopt parameter | ||
| 213 | * @param shortopt parameter "shortopt" of commandline option | ||
| 214 | * @return reference to commandline option | ||
| 215 | * @throw std::out_of_range if the commandline option cannot be found | ||
| 216 | */ | ||
| 217 | CommandOption& operator[](const char shortopt); | ||
| 218 | |||
| 219 | private: | ||
| 220 | int m_argc; | ||
| 221 | char **m_argv; | ||
| 222 | std::string m_description; | ||
| 223 | CommandOptionList m_cmdlist; | ||
| 224 | std::vector<std::string> m_synopsis; | ||
| 225 | std::string m_optstring; | ||
| 226 | struct option *m_longopts; | ||
| 227 | }; | ||
| 228 | |||
| 229 | #endif | ||
| 230 | |||
| 231 | /* vim: set et sw=2 ts=2: */ | ||
diff --git a/task1/security.cpp b/task1/security.cpp new file mode 100644 index 0000000..d092be0 --- /dev/null +++ b/task1/security.cpp | |||
| @@ -0,0 +1,330 @@ | |||
| 1 | /** | ||
| 2 | * Wrapper for OpenSSL cryptographic functions. | ||
| 3 | * @author SE/Linux Team <se-linux@inso.tuwien.ac.at> | ||
| 4 | */ | ||
| 5 | |||
| 6 | #include "security.h" | ||
| 7 | |||
| 8 | #include <errno.h> | ||
| 9 | #include <iostream> | ||
| 10 | #include <stdio.h> | ||
| 11 | #include <string.h> | ||
| 12 | #include <sstream> | ||
| 13 | |||
| 14 | #include <openssl/rsa.h> | ||
| 15 | #include <openssl/evp.h> | ||
| 16 | #include <openssl/objects.h> | ||
| 17 | #include <openssl/x509.h> | ||
| 18 | #include <openssl/err.h> | ||
| 19 | #include <openssl/pem.h> | ||
| 20 | #include <openssl/ssl.h> | ||
| 21 | |||
| 22 | //! Implementation of the Security interface. | ||
| 23 | //! We didn't put this declaration into the public header, beacause it | ||
| 24 | //! contains OpenSSL related IMPLEMENTATION DETAILS. | ||
| 25 | class SecurityImpl : public Security { | ||
| 26 | |||
| 27 | public: | ||
| 28 | |||
| 29 | virtual void sign( | ||
| 30 | const std::string& privateKeyFile, | ||
| 31 | const ByteStream& data, | ||
| 32 | ByteStream& output | ||
| 33 | ); | ||
| 34 | |||
| 35 | virtual void verifySignature( | ||
| 36 | const std::string& certificateFile, | ||
| 37 | const ByteStream& data, | ||
| 38 | const ByteStream& signature | ||
| 39 | ); | ||
| 40 | |||
| 41 | virtual void encryptPublic( | ||
| 42 | const std::string& certificateFile, | ||
| 43 | const ByteStream& data, | ||
| 44 | ByteStream& iv, | ||
| 45 | ByteStream& ek, | ||
| 46 | ByteStream& output | ||
| 47 | ); | ||
| 48 | |||
| 49 | virtual void decryptPrivate( | ||
| 50 | const std::string& privateKeyFile, | ||
| 51 | const ByteStream& data, | ||
| 52 | const ByteStream& iv, | ||
| 53 | const ByteStream& ek, | ||
| 54 | ByteStream& output | ||
| 55 | ); | ||
| 56 | |||
| 57 | virtual std::string getCommonName( | ||
| 58 | const std::string& certificateFile | ||
| 59 | ); | ||
| 60 | |||
| 61 | private: | ||
| 62 | |||
| 63 | //! Opens the given file. | ||
| 64 | //! @throws SecurityException on error. | ||
| 65 | FILE *openFile(const std::string& file); | ||
| 66 | |||
| 67 | //! Throws an SecurityException containing the last OpenSSL error. | ||
| 68 | void throwSslError(); | ||
| 69 | |||
| 70 | //! Reads a private key from the given file. | ||
| 71 | //! @throws SecurityException on error. | ||
| 72 | EVP_PKEY* readPrivKey(const std::string& file); | ||
| 73 | |||
| 74 | //! Reads a public key from the given certificate file. | ||
| 75 | //! @throws SecurityException on error. | ||
| 76 | EVP_PKEY* readPubKey(const std::string& file); | ||
| 77 | |||
| 78 | //! Reads a X509 certificate from the given certificate file. | ||
| 79 | //! @throws SecurityException on error. | ||
| 80 | X509 *readX509(const std::string& file); | ||
| 81 | }; | ||
| 82 | |||
| 83 | // ----------------------------------------------------------------------------- | ||
| 84 | // SecurityException | ||
| 85 | // ----------------------------------------------------------------------------- | ||
| 86 | |||
| 87 | SecurityException::SecurityException(const std::string& what) : | ||
| 88 | _what(what) | ||
| 89 | { | ||
| 90 | } | ||
| 91 | |||
| 92 | // ----------------------------------------------------------------------------- | ||
| 93 | // Security | ||
| 94 | // ----------------------------------------------------------------------------- | ||
| 95 | |||
| 96 | Security& Security::instance() { | ||
| 97 | if (_instance == 0) { | ||
| 98 | _instance = new SecurityImpl(); | ||
| 99 | } | ||
| 100 | return *_instance; | ||
| 101 | } | ||
| 102 | |||
| 103 | Security *Security::_instance = 0; | ||
| 104 | |||
| 105 | // ----------------------------------------------------------------------------- | ||
| 106 | // SecurityImpl | ||
| 107 | // ----------------------------------------------------------------------------- | ||
| 108 | |||
| 109 | FILE *SecurityImpl::openFile(const std::string& file) { | ||
| 110 | FILE *ret = fopen(file.c_str(), "r"); | ||
| 111 | if (ret == NULL) { | ||
| 112 | std::ostringstream os; | ||
| 113 | os << "Could not open file " << file << ": " << strerror(errno); | ||
| 114 | throw SecurityException(os.str()); | ||
| 115 | } | ||
| 116 | return ret; | ||
| 117 | } | ||
| 118 | |||
| 119 | void SecurityImpl::throwSslError() { | ||
| 120 | ERR_print_errors_fp(stderr); | ||
| 121 | throw SecurityException("ssl error"); | ||
| 122 | } | ||
| 123 | |||
| 124 | EVP_PKEY* SecurityImpl::readPrivKey(const std::string& file) { | ||
| 125 | FILE *f = NULL; | ||
| 126 | EVP_PKEY *ret = NULL; | ||
| 127 | |||
| 128 | f = openFile(file); | ||
| 129 | ret = PEM_read_PrivateKey(f, NULL, NULL, NULL); | ||
| 130 | fclose(f); | ||
| 131 | |||
| 132 | if (! ret) { | ||
| 133 | throwSslError(); | ||
| 134 | } | ||
| 135 | |||
| 136 | return ret; | ||
| 137 | } | ||
| 138 | |||
| 139 | X509 *SecurityImpl::readX509(const std::string& file) { | ||
| 140 | FILE *f = openFile(file); | ||
| 141 | X509 *ret = PEM_read_X509(f, NULL, NULL, NULL); | ||
| 142 | fclose(f); | ||
| 143 | |||
| 144 | if (!ret) { | ||
| 145 | throwSslError(); | ||
| 146 | } | ||
| 147 | return ret; | ||
| 148 | } | ||
| 149 | |||
| 150 | void SecurityImpl::sign( | ||
| 151 | const std::string& privateKeyFile, | ||
| 152 | const ByteStream& data, | ||
| 153 | ByteStream& output | ||
| 154 | ) { | ||
| 155 | EVP_PKEY *priv = readPrivKey(privateKeyFile); | ||
| 156 | EVP_MD_CTX ctx; | ||
| 157 | |||
| 158 | EVP_SignInit(&ctx, EVP_sha1()); | ||
| 159 | EVP_SignUpdate(&ctx, &data[0], data.size()); | ||
| 160 | output.resize(EVP_PKEY_size(priv)); | ||
| 161 | unsigned int len = output.size(); | ||
| 162 | int err = EVP_SignFinal(&ctx, &output[0], &len, priv); | ||
| 163 | |||
| 164 | EVP_PKEY_free(priv); | ||
| 165 | EVP_MD_CTX_cleanup(&ctx); | ||
| 166 | |||
| 167 | if (err == 1) { | ||
| 168 | output.resize(len); | ||
| 169 | } else { | ||
| 170 | throwSslError(); | ||
| 171 | } | ||
| 172 | } | ||
| 173 | |||
| 174 | void SecurityImpl::verifySignature( | ||
| 175 | const std::string& certificateFile, | ||
| 176 | const ByteStream& data, | ||
| 177 | const ByteStream& signature | ||
| 178 | ) { | ||
| 179 | X509 *x509 = readX509(certificateFile); | ||
| 180 | EVP_PKEY *pub = X509_get_pubkey(x509); | ||
| 181 | bool ok = true; | ||
| 182 | int err; | ||
| 183 | |||
| 184 | if (pub == NULL) { | ||
| 185 | ok = false; | ||
| 186 | goto failout; | ||
| 187 | } | ||
| 188 | |||
| 189 | EVP_MD_CTX ctx; | ||
| 190 | EVP_VerifyInit(&ctx, EVP_sha1()); | ||
| 191 | EVP_VerifyUpdate(&ctx, &data[0], data.size()); | ||
| 192 | err = EVP_VerifyFinal(&ctx, const_cast<unsigned char *>(&signature[0]), signature.size(), pub); | ||
| 193 | |||
| 194 | if (err != 1) { | ||
| 195 | ok = false; | ||
| 196 | goto failout; | ||
| 197 | } | ||
| 198 | |||
| 199 | failout: | ||
| 200 | |||
| 201 | if (pub) EVP_PKEY_free(pub); | ||
| 202 | if (x509) X509_free(x509); | ||
| 203 | if (! ok) throwSslError(); | ||
| 204 | } | ||
| 205 | |||
| 206 | void SecurityImpl::encryptPublic( | ||
| 207 | const std::string& certificateFile, | ||
| 208 | const ByteStream& data, | ||
| 209 | ByteStream& iv, | ||
| 210 | ByteStream& ek, | ||
| 211 | ByteStream& output | ||
| 212 | ) { | ||
| 213 | X509 *x509 = readX509(certificateFile); | ||
| 214 | EVP_PKEY *pub = X509_get_pubkey(x509); | ||
| 215 | bool ok = true; | ||
| 216 | int len, len2; | ||
| 217 | |||
| 218 | const EVP_CIPHER *cipher = EVP_aes_256_cbc(); | ||
| 219 | EVP_CIPHER_CTX ctx; | ||
| 220 | |||
| 221 | ek.resize(EVP_PKEY_size(pub)); | ||
| 222 | int ekl = ek.size(); | ||
| 223 | Byte *ek2 = &ek[0]; | ||
| 224 | |||
| 225 | iv.resize(EVP_CIPHER_iv_length(cipher)); | ||
| 226 | |||
| 227 | if (! EVP_SealInit(&ctx, cipher, &ek2, &ekl, &iv[0], &pub, 1)) { | ||
| 228 | ok = false; | ||
| 229 | goto failout; | ||
| 230 | } | ||
| 231 | |||
| 232 | ek.resize(ekl); | ||
| 233 | |||
| 234 | output.resize( | ||
| 235 | data.size() + EVP_CIPHER_block_size(cipher) - 1 + // for update | ||
| 236 | EVP_CIPHER_block_size(cipher) // for final | ||
| 237 | ); | ||
| 238 | len = output.size(); | ||
| 239 | |||
| 240 | if (! EVP_SealUpdate(&ctx, &output[0], &len, &data[0], data.size())) { | ||
| 241 | ok = false; | ||
| 242 | goto failout; | ||
| 243 | } | ||
| 244 | len2 = output.size() - len; | ||
| 245 | |||
| 246 | if (! EVP_SealFinal(&ctx, &output[len], &len2)) { | ||
| 247 | ok = false; | ||
| 248 | goto failout; | ||
| 249 | } | ||
| 250 | output.resize(len + len2); | ||
| 251 | |||
| 252 | failout: | ||
| 253 | |||
| 254 | if (pub) EVP_PKEY_free(pub); | ||
| 255 | if (x509) X509_free(x509); | ||
| 256 | if (! ok) throwSslError(); | ||
| 257 | } | ||
| 258 | |||
| 259 | void SecurityImpl::decryptPrivate( | ||
| 260 | const std::string& privateKeyFile, | ||
| 261 | const ByteStream& data, | ||
| 262 | const ByteStream& iv, | ||
| 263 | const ByteStream& ek, | ||
| 264 | ByteStream& output | ||
| 265 | ) { | ||
| 266 | EVP_PKEY *priv = readPrivKey(privateKeyFile); | ||
| 267 | |||
| 268 | const EVP_CIPHER *cipher = EVP_aes_256_cbc(); | ||
| 269 | EVP_CIPHER_CTX ctx; | ||
| 270 | int len, len2; | ||
| 271 | bool ok = true; | ||
| 272 | |||
| 273 | output.resize(data.size() + EVP_CIPHER_block_size(cipher)); | ||
| 274 | |||
| 275 | if (!EVP_OpenInit( | ||
| 276 | &ctx, cipher, | ||
| 277 | const_cast<unsigned char *>(&ek[0]), ek.size(), | ||
| 278 | const_cast<unsigned char *>(&iv[0]), | ||
| 279 | priv | ||
| 280 | )) { | ||
| 281 | ok = false; | ||
| 282 | goto failout; | ||
| 283 | } | ||
| 284 | if (!EVP_OpenUpdate(&ctx, &output[0], &len, &data[0], data.size())) { | ||
| 285 | ok = false; | ||
| 286 | goto failout; | ||
| 287 | } | ||
| 288 | if (!EVP_OpenFinal(&ctx, &output[len], &len2)) { | ||
| 289 | ok = false; | ||
| 290 | goto failout; | ||
| 291 | } | ||
| 292 | |||
| 293 | output.resize(len + len2); | ||
| 294 | |||
| 295 | failout: | ||
| 296 | |||
| 297 | if (priv) EVP_PKEY_free(priv); | ||
| 298 | if (!ok) throwSslError(); | ||
| 299 | } | ||
| 300 | |||
| 301 | std::string SecurityImpl::getCommonName( | ||
| 302 | const std::string& certificateFile | ||
| 303 | ) { | ||
| 304 | X509 *x509 = readX509(certificateFile); | ||
| 305 | X509_NAME *subj = 0; | ||
| 306 | char data[256]; | ||
| 307 | bool ok = true; | ||
| 308 | |||
| 309 | subj = X509_get_subject_name(x509); | ||
| 310 | |||
| 311 | if (subj == 0) { | ||
| 312 | ok = false; | ||
| 313 | goto failout; | ||
| 314 | } | ||
| 315 | |||
| 316 | if (! X509_NAME_get_text_by_NID(subj, NID_commonName, data, sizeof(data))) { | ||
| 317 | ok = false; | ||
| 318 | goto failout; | ||
| 319 | } | ||
| 320 | |||
| 321 | failout: | ||
| 322 | |||
| 323 | X509_free(x509); | ||
| 324 | |||
| 325 | if (!ok) { | ||
| 326 | throwSslError(); | ||
| 327 | } | ||
| 328 | return data; | ||
| 329 | |||
| 330 | } | ||
diff --git a/task1/security.h b/task1/security.h new file mode 100644 index 0000000..b85266c --- /dev/null +++ b/task1/security.h | |||
| @@ -0,0 +1,119 @@ | |||
| 1 | /** | ||
| 2 | * Wrapper for OpenSSL cryptographic functions. | ||
| 3 | * @author SE/Linux Team <se-linux@inso.tuwien.ac.at> | ||
| 4 | * | ||
| 5 | * NOTE: you need to link with -lcrypto when using this class! | ||
| 6 | */ | ||
| 7 | |||
| 8 | #ifndef _SECURITY_H | ||
| 9 | #define _SECURITY_H | ||
| 10 | |||
| 11 | #include <string> | ||
| 12 | #include <vector> | ||
| 13 | #include <exception> | ||
| 14 | |||
| 15 | #include <Ice/Config.h> // For Ice::Byte | ||
| 16 | |||
| 17 | //! Exception thrown by security class | ||
| 18 | class SecurityException : public std::exception { | ||
| 19 | public: | ||
| 20 | //! Construtor. | ||
| 21 | //! @param what Error message. | ||
| 22 | SecurityException(const std::string& what); | ||
| 23 | //! Returns the error message | ||
| 24 | virtual const char *what() const throw() { return _what.c_str(); } | ||
| 25 | virtual ~SecurityException() throw() {} | ||
| 26 | private: | ||
| 27 | std::string _what; | ||
| 28 | }; | ||
| 29 | |||
| 30 | //! Interface of the Security class. | ||
| 31 | //! Use the instance() member to get the singleton instance. | ||
| 32 | class Security { | ||
| 33 | |||
| 34 | public: | ||
| 35 | virtual ~Security() | ||
| 36 | {}; | ||
| 37 | |||
| 38 | //! Definition of Byte, for compatibility with ICE. | ||
| 39 | typedef Ice::Byte Byte; | ||
| 40 | |||
| 41 | //! Vector (sequence) of Bytes. | ||
| 42 | typedef std::vector<Byte> ByteStream; | ||
| 43 | |||
| 44 | //! Returns the singleton Security instance. | ||
| 45 | static Security& instance(); | ||
| 46 | |||
| 47 | //! Encrypts binary data using envelope encryption (RSA + aes_256_cbc). | ||
| 48 | //! See the man page for EVP_SealInit(3SSL) for an explenation of envelope | ||
| 49 | //! ecnryption. | ||
| 50 | //! @param certificateFile Path to certificate in PEM format used for | ||
| 51 | //! encryption. | ||
| 52 | //! @param data Data to encrypt. | ||
| 53 | //! @param iv Output parameter. Randoml initia vector for AES. | ||
| 54 | //! @param ek Output parameter. Ramdom AES key encrypted with RSA. | ||
| 55 | //! @param output Output paramenter. Encrypted data. | ||
| 56 | //! @throws SecurityException on error. | ||
| 57 | virtual void encryptPublic( | ||
| 58 | const std::string& certificateFile, | ||
| 59 | const ByteStream& data, | ||
| 60 | ByteStream& iv, | ||
| 61 | ByteStream& ek, | ||
| 62 | ByteStream& output | ||
| 63 | ) = 0; | ||
| 64 | |||
| 65 | //! Decrypts binary data using envelope encryption (RSA + aes_256_cbc) | ||
| 66 | //! See the man page for EVP_SealInit(3SSL) for an expenation of envelope | ||
| 67 | //! ecnryption. | ||
| 68 | //! @param privateKeyFile Path to private key in PEM format used for | ||
| 69 | //! decryption. | ||
| 70 | //! @param data Data to decrypt. | ||
| 71 | //! @param iv Initial vector for AES. | ||
| 72 | //! @param ek Key for AES encrypted with RSA. | ||
| 73 | //! @param output. Output parameter. Decrypted data. | ||
| 74 | //! @throws SecurityException on error. | ||
| 75 | virtual void decryptPrivate( | ||
| 76 | const std::string& privateKeyFile, | ||
| 77 | const ByteStream& data, | ||
| 78 | const ByteStream& iv, | ||
| 79 | const ByteStream& ek, | ||
| 80 | ByteStream& output | ||
| 81 | ) = 0; | ||
| 82 | |||
| 83 | //! Signs binary data using SHA1 + RSA. | ||
| 84 | //! @param privateKeyFile Path to private key in PEM format used for | ||
| 85 | //! encryption. | ||
| 86 | //! @param data Data to sign. | ||
| 87 | //! @param output Output parameter. The signature. | ||
| 88 | //! @throws SecurityException on error. | ||
| 89 | virtual void sign( | ||
| 90 | const std::string& privateKeyFile, | ||
| 91 | const ByteStream& data, | ||
| 92 | ByteStream& output | ||
| 93 | ) = 0; | ||
| 94 | |||
| 95 | //! Verifies a signature using SHA1 + RSA. | ||
| 96 | //! @param certificateFile Path to certificate file in PEM format used for | ||
| 97 | //! decryption. | ||
| 98 | //! @param data Data to verify. | ||
| 99 | //! @param signature Signature to verify. | ||
| 100 | //! @throws SecurityException On error or if the signature could not be verified. | ||
| 101 | virtual void verifySignature( | ||
| 102 | const std::string& certificateFile, | ||
| 103 | const ByteStream& data, | ||
| 104 | const ByteStream& signature | ||
| 105 | ) = 0; | ||
| 106 | |||
| 107 | //! Returns the common name (CN) field of a certificate. | ||
| 108 | //! @param certificateFile Path to certificate in PEM format. | ||
| 109 | //! @throws SecurityException on error. | ||
| 110 | virtual std::string getCommonName( | ||
| 111 | const std::string& certificateFile | ||
| 112 | ) = 0; | ||
| 113 | |||
| 114 | private: | ||
| 115 | |||
| 116 | static Security *_instance; | ||
| 117 | }; | ||
| 118 | |||
| 119 | #endif | ||
diff --git a/task1/utils.h b/task1/utils.h new file mode 100644 index 0000000..fefa24e --- /dev/null +++ b/task1/utils.h | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | /** | ||
| 2 | * $Id: utils.h 2 2009-10-31 02:48:23Z l0728348 $ | ||
| 3 | * | ||
| 4 | * Copyright 2009 | ||
| 5 | * | ||
| 6 | * @author Manuel Mausz (0728348) | ||
| 7 | * @brief implements some common utility functions, methods and templates | ||
| 8 | * available in namespace Utils. | ||
| 9 | */ | ||
| 10 | |||
| 11 | #ifndef UTILS_H | ||
| 12 | #define UTILS_H | ||
| 13 | |||
| 14 | #include <sstream> | ||
| 15 | #include <stdexcept> | ||
| 16 | |||
| 17 | namespace Utils | ||
| 18 | { | ||
| 19 | /** | ||
| 20 | * @brief exception thrown by lexical_cast | ||
| 21 | */ | ||
| 22 | class bad_lexical_cast : public std::runtime_error { | ||
| 23 | public: | ||
| 24 | /** | ||
| 25 | * @brief Default exception ctor | ||
| 26 | * @param what message to pass along | ||
| 27 | */ | ||
| 28 | bad_lexical_cast(const std::string& what) | ||
| 29 | : std::runtime_error(what) | ||
| 30 | {} | ||
| 31 | }; | ||
| 32 | |||
| 33 | /** | ||
| 34 | * @brief simple implementation of boost::lexical_cast | ||
| 35 | * can be used to convert string to number | ||
| 36 | * mainly uses operator<< of stringstream | ||
| 37 | * @param source source value | ||
| 38 | * @return target target value | ||
| 39 | **/ | ||
| 40 | template <typename Target, typename Source> | ||
| 41 | Target lexical_cast(const Source& source) | ||
| 42 | { | ||
| 43 | Target target; | ||
| 44 | std::stringstream interpreter; | ||
| 45 | if(!(interpreter << source && interpreter >> target && interpreter.get() == std::char_traits<char>::eof())) | ||
| 46 | throw bad_lexical_cast("bad lexical cast"); | ||
| 47 | return target; | ||
| 48 | }; | ||
| 49 | }; | ||
| 50 | |||
| 51 | #endif | ||
| 52 | |||
| 53 | /* vim: set et sw=2 ts=2: */ | ||
