OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / doc / mico / examples / siegel / central / DepotImpl.h
1 /*\r
2 \r
3 Copyright (C) 1998, 2000 by the Object Management Group, Inc.  All  \r
4 rights reserved.\r
5 \r
6 Permission to use, copy, modify, and distribute this software for\r
7 any teaching or instructional purpose and without fee is hereby\r
8 granted, provided that the above copyright notice appear in all\r
9 copies and that both that copyright notice and this permission\r
10 notice appear in supporting documentation, and that the names of\r
11 Object Management Group, Inc. (OMG) and John Wiley and Sons, Inc.\r
12 (Wiley) not be used in advertising or publicity pertaining to\r
13 distribution of the software without specific, written prior\r
14 permission.\r
15 \r
16 THIS SOFTWARE IS SOLD AS IS WITHOUT WARRANTY OF ANY KIND, EITHER\r
17 EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED\r
18 WARRANTY OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
19 PURPOSE.  Neither OMG, Wiley, nor their dealers or distributors\r
20 assume any liability of any alleged or actual damages arising\r
21 from the use of or the inability to use this software. Some\r
22 states do not allow the exclusion of implied warranties, so the\r
23 exclusion may not apply to you.\r
24 \r
25 */\r
26     \r
27 #ifndef DEPOTIMPL_H\r
28 #define DEPOTIMPL_H\r
29 \r
30 // Include Depot type information via the skeleton.\r
31 // The file to include depends on the output of\r
32 // your ORBs IDL compiler.\r
33 \r
34 #include <DepotData.h>\r
35 \r
36 #if 1\r
37 // MICO\r
38 #include <Central.h>\r
39 #endif\r
40 \r
41 \r
42 // The super class of your implementation class \r
43 // depends on the output of your ORBs IDL compiler.\r
44 #if 0\r
45 class DepotImpl\r
46 #else\r
47 class DepotImpl : public virtual POA_CentralOffice::Depot\r
48 #endif\r
49 {\r
50 private:\r
51     DepotData m_items;\r
52     CORBA::String_var m_data_file;\r
53     static void _abort(const char *msg);\r
54   \r
55 public:\r
56     DepotImpl(const char* data_file);\r
57 \r
58     void loadDepot();\r
59 \r
60     void find_item_info(\r
61         AStore::AStoreId store_id,\r
62         const char* item, \r
63         CORBA::Long quantity, \r
64         AStore::ItemInfo_out outItemInfo\r
65     \r
66     );\r
67 \r
68 };\r
69 \r
70 #endif\r