Merge pull request #1710 from likema/cfg-assign-not-null-str
[ACE_TAO.git] / TAO / tests / POA / DSI / Database.idl
bloba4b6e40a42d95f4989e6fa0e1c70eb41baca219b
1 module Database
3 typedef unsigned long Flags;
5 typedef string Identifier;
7 exception Unknown_Type
9 string type;
12 exception Unknown_Key
14 string key;
17 exception Duplicate_Key
19 string key;
22 exception Not_Found
24 string key;
27 interface Entry
29 readonly attribute string name;
32 interface Employee : Entry
34 attribute long id;
38 interface Machine : Entry
40 attribute string make;
44 struct NamedValue
46 Identifier name;
47 any value;
48 Flags options;
51 typedef sequence<NamedValue> NVPairSequence;
53 interface Agent
55 Entry create_entry (in string key,
56 in Identifier entry_type,
57 in NVPairSequence initial_attributes)
58 raises (Unknown_Type,
59 Duplicate_Key);
61 Entry find_entry (in string key,
62 in Identifier entry_type)
63 raises (Unknown_Type,
64 Not_Found);
66 void destroy_entry (in string key,
67 in Identifier entry_type)
68 raises (Unknown_Type,
69 Unknown_Key);
71 oneway void shutdown ();