File: ACE_Local_Name_Space.3

package info (click to toggle)
ace 5.2.1-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 26,856 kB
  • ctags: 18,677
  • sloc: cpp: 171,831; makefile: 48,840; sh: 10,192; perl: 8,582; exp: 787; yacc: 387; lex: 140; csh: 20
file content (305 lines) | stat: -rw-r--r-- 14,727 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
.TH ACE_Local_Name_Space 3 "1 Dec 2001" "ACE" \" -*- nroff -*-
.ad l
.nh
.SH NAME
ACE_Local_Name_Space \- Maintaining accesses Local Name Server Database. Allows to add NameBindings, change them, remove them and resolve NameBindings. 
.SH SYNOPSIS
.br
.PP
\fC#include <Local_Name_Space_T.h>\fR
.PP
Inherits \fBACE_Name_Space\fR.
.PP
.SS Public Types

.in +1c
.ti -1c
.RI "typedef \fBACE_Allocator_Adapter\fR<\fBACE_Malloc\fR <ACE_MEM_POOL_2, ACE_LOCK> > \fBALLOCATOR\fR"
.br
.in -1c
.SS Public Methods

.in +1c
.ti -1c
.RI "\fBACE_Local_Name_Space\fR (void)"
.br
.RI "\fI"Do-nothing" constructor.\fR"
.ti -1c
.RI "\fBACE_Local_Name_Space\fR (\fBACE_Naming_Context::Context_Scope_Type\fR scope_in, \fBACE_Name_Options\fR *name_options)"
.br
.ti -1c
.RI "int \fBopen\fR (\fBACE_Naming_Context::Context_Scope_Type\fR scope_in)"
.br
.ti -1c
.RI "\fB~ACE_Local_Name_Space\fR (void)"
.br
.RI "\fIdestructor, do some cleanup :TBD: last dtor should "compress" file.\fR"
.ti -1c
.RI "virtual int \fBbind\fR (const \fBACE_WString\fR &name, const \fBACE_WString\fR &value, const char *type = "")"
.br
.RI "\fIBind a new name to a naming context (Wide character strings).\fR"
.ti -1c
.RI "virtual int \fBrebind\fR (const \fBACE_WString\fR &name, const \fBACE_WString\fR &value, const char *type = "")"
.br
.ti -1c
.RI "virtual int \fBunbind\fR (const \fBACE_WString\fR &name)"
.br
.RI "\fIDelete a name from a ACE_Local_Name_Space (Wide charcter strings Interface).\fR"
.ti -1c
.RI "virtual int \fBunbind_i\fR (const \fBACE_WString\fR &name)"
.br
.ti -1c
.RI "virtual int \fBresolve\fR (const \fBACE_WString\fR &name, \fBACE_WString\fR &value, char *&type)"
.br
.RI "\fIGet value and type of a given name binding (Wide chars). The caller is responsible for deleting <type>!\fR"
.ti -1c
.RI "virtual int \fBresolve_i\fR (const \fBACE_WString\fR &name, \fBACE_WString\fR &value, char *&type)"
.br
.ti -1c
.RI "virtual int \fBlist_names\fR (\fBACE_WSTRING_SET\fR &set, const \fBACE_WString\fR &pattern)"
.br
.RI "\fIGet a set of names matching a specified pattern (wchars). Matching means the names must begin with the pattern string.\fR"
.ti -1c
.RI "virtual int \fBlist_names_i\fR (\fBACE_WSTRING_SET\fR &set, const \fBACE_WString\fR &pattern)"
.br
.ti -1c
.RI "virtual int \fBlist_values\fR (\fBACE_WSTRING_SET\fR &set, const \fBACE_WString\fR &pattern)"
.br
.RI "\fIGet a set of values matching a specified pattern (wchars). Matching means the values must begin with the pattern string.\fR"
.ti -1c
.RI "virtual int \fBlist_values_i\fR (\fBACE_WSTRING_SET\fR &set, const \fBACE_WString\fR &pattern)"
.br
.ti -1c
.RI "virtual int \fBlist_types\fR (\fBACE_WSTRING_SET\fR &set, const \fBACE_WString\fR &pattern)"
.br
.RI "\fIGet a set of types matching a specified pattern (wchars). Matching means the types must begin with the pattern string.\fR"
.ti -1c
.RI "virtual int \fBlist_types_i\fR (\fBACE_WSTRING_SET\fR &set, const \fBACE_WString\fR &pattern)"
.br
.ti -1c
.RI "virtual int \fBlist_name_entries\fR (\fBACE_BINDING_SET\fR &set, const \fBACE_WString\fR &pattern)"
.br
.ti -1c
.RI "virtual int \fBlist_name_entries_i\fR (\fBACE_BINDING_SET\fR &set, const \fBACE_WString\fR &pattern)"
.br
.ti -1c
.RI "virtual int \fBlist_value_entries\fR (\fBACE_BINDING_SET\fR &set, const \fBACE_WString\fR &pattern)"
.br
.ti -1c
.RI "virtual int \fBlist_value_entries_i\fR (\fBACE_BINDING_SET\fR &set, const \fBACE_WString\fR &pattern)"
.br
.ti -1c
.RI "virtual int \fBlist_type_entries\fR (\fBACE_BINDING_SET\fR &set, const \fBACE_WString\fR &pattern)"
.br
.ti -1c
.RI "virtual int \fBlist_type_entries_i\fR (\fBACE_BINDING_SET\fR &set, const \fBACE_WString\fR &pattern)"
.br
.ti -1c
.RI "virtual void \fBdump\fR (void) const"
.br
.RI "\fIDump the state of the object.\fR"
.ti -1c
.RI "virtual void \fBdump_i\fR (void) const"
.br
.in -1c
.SS Private Methods

.in +1c
.ti -1c
.RI "int \fBremap\fR (EXCEPTION_POINTERS *ep)"
.br
.RI "\fIRemap the backing store.\fR"
.ti -1c
.RI "int \fBshared_bind\fR (const \fBACE_WString\fR &name, const \fBACE_WString\fR &value, const char *type, int rebind)"
.br
.RI "\fIFactor out code from <bind> and <rebind>.\fR"
.ti -1c
.RI "int \fBshared_bind_i\fR (const \fBACE_WString\fR &name, const \fBACE_WString\fR &value, const char *type, int rebind)"
.br
.ti -1c
.RI "int \fBcreate_manager\fR (void)"
.br
.RI "\fIAllocate the appropriate type of map manager that stores the key/value binding.\fR"
.ti -1c
.RI "int \fBcreate_manager_i\fR (void)"
.br
.in -1c
.SS Private Attributes

.in +1c
.ti -1c
.RI "\fBALLOCATOR\fR* \fBallocator_\fR"
.br
.RI "\fIPointer to the allocator.\fR"
.ti -1c
.RI "\fBACE_Name_Space_Map\fR<\fBALLOCATOR\fR>* \fBname_space_map_\fR"
.br
.RI "\fIPointer to the allocated map manager.\fR"
.ti -1c
.RI "\fBACE_Naming_Context::Context_Scope_Type\fR \fBns_scope_\fR"
.br
.RI "\fIScope of this naming context (e.g., PROC_LOCAL, NODE_LOCAL, or NET_LOCAL).\fR"
.ti -1c
.RI "\fBACE_Name_Options\fR* \fBname_options_\fR"
.br
.RI "\fIKeep track of the options such as database name etc.\fR"
.ti -1c
.RI "\fBACE_TCHAR\fR \fBcontext_file_\fR [MAXPATHLEN + MAXNAMELEN]"
.br
.RI "\fIName of the file used as the backing store.\fR"
.ti -1c
.RI "ACE_LOCK* \fBlock_\fR"
.br
.RI "\fISynchronization variable.\fR"
.in -1c
.SH DETAILED DESCRIPTION
.PP 

.SS template<ACE_MEM_POOL_1, class ACE_LOCK>  template class ACE_Local_Name_Space
Maintaining accesses Local Name Server Database. Allows to add NameBindings, change them, remove them and resolve NameBindings.
.PP
.PP
 Manages a Naming Service for a local name space which includes bindings for node_local and host_local naming contexts. All strings are stored in wide character format. A Name Binding consists of a name (that's the key), a value string and an optional type string (no wide chars). 
.PP
.SH MEMBER TYPEDEF DOCUMENTATION
.PP 
.SS template<ACE_MEM_POOL_1, classACE_LOCK> typedef \fBACE_Allocator_Adapter\fR<\fBACE_Malloc\fR <ACE_MEM_POOL_2, ACE_LOCK> > ACE_Local_Name_Space<, ACE_LOCK>::ALLOCATOR
.PP
.SH CONSTRUCTOR & DESTRUCTOR DOCUMENTATION
.PP 
.SS template<ACE_MEM_POOL_1, classACE_LOCK> ACE_Local_Name_Space<, ACE_LOCK>::ACE_Local_Name_Space<, ACE_LOCK> (void)
.PP
"Do-nothing" constructor.
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> ACE_Local_Name_Space<, ACE_LOCK>::ACE_Local_Name_Space<, ACE_LOCK> (\fBACE_Naming_Context::Context_Scope_Type\fR scope_in, \fBACE_Name_Options\fR * name_options)
.PP
Specifies the scope of this namespace, opens and memory-maps the associated file (if accessible) or contacts the dedicated name server process for NET_LOCAL namespace. 
.SS template<ACE_MEM_POOL_1, classACE_LOCK> ACE_Local_Name_Space<, ACE_LOCK>::~ACE_Local_Name_Space<, ACE_LOCK> (void)
.PP
destructor, do some cleanup :TBD: last dtor should "compress" file.
.PP
.SH MEMBER FUNCTION DOCUMENTATION
.PP 
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::bind (const \fBACE_WString\fR & name, const \fBACE_WString\fR & value, const char * type = "")\fC [virtual]\fR
.PP
Bind a new name to a naming context (Wide character strings).
.PP
Reimplemented from \fBACE_Name_Space\fR.
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::create_manager (void)\fC [private]\fR
.PP
Allocate the appropriate type of map manager that stores the key/value binding.
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::create_manager_i (void)\fC [private]\fR
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> void ACE_Local_Name_Space<, ACE_LOCK>::dump (void) const\fC [virtual]\fR
.PP
Dump the state of the object.
.PP
Reimplemented from \fBACE_Name_Space\fR.
.SS template<ACE_MEM_POOL_1, classACE_LOCK> virtual void ACE_Local_Name_Space<, ACE_LOCK>::dump_i (void) const\fC [virtual]\fR
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::list_name_entries (\fBACE_BINDING_SET\fR & set, const \fBACE_WString\fR & pattern)\fC [virtual]\fR
.PP
Get a set of names matching a specified pattern (wchars). Matching means the names must begin with the pattern string. Returns the complete binding associated each pattern match. 
.PP
Reimplemented from \fBACE_Name_Space\fR.
.SS template<ACE_MEM_POOL_1, classACE_LOCK> virtual int ACE_Local_Name_Space<, ACE_LOCK>::list_name_entries_i (\fBACE_BINDING_SET\fR & set, const \fBACE_WString\fR & pattern)\fC [virtual]\fR
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::list_names (\fBACE_WSTRING_SET\fR & set, const \fBACE_WString\fR & pattern)\fC [virtual]\fR
.PP
Get a set of names matching a specified pattern (wchars). Matching means the names must begin with the pattern string.
.PP
Reimplemented from \fBACE_Name_Space\fR.
.SS template<ACE_MEM_POOL_1, classACE_LOCK> virtual int ACE_Local_Name_Space<, ACE_LOCK>::list_names_i (\fBACE_WSTRING_SET\fR & set, const \fBACE_WString\fR & pattern)\fC [virtual]\fR
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::list_type_entries (\fBACE_BINDING_SET\fR & set, const \fBACE_WString\fR & pattern)\fC [virtual]\fR
.PP
Get a set of types matching a specified pattern (wchars). Matching means the types must begin with the pattern string. Returns the complete binding associated each pattern match. 
.PP
Reimplemented from \fBACE_Name_Space\fR.
.SS template<ACE_MEM_POOL_1, classACE_LOCK> virtual int ACE_Local_Name_Space<, ACE_LOCK>::list_type_entries_i (\fBACE_BINDING_SET\fR & set, const \fBACE_WString\fR & pattern)\fC [virtual]\fR
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::list_types (\fBACE_WSTRING_SET\fR & set, const \fBACE_WString\fR & pattern)\fC [virtual]\fR
.PP
Get a set of types matching a specified pattern (wchars). Matching means the types must begin with the pattern string.
.PP
Reimplemented from \fBACE_Name_Space\fR.
.SS template<ACE_MEM_POOL_1, classACE_LOCK> virtual int ACE_Local_Name_Space<, ACE_LOCK>::list_types_i (\fBACE_WSTRING_SET\fR & set, const \fBACE_WString\fR & pattern)\fC [virtual]\fR
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::list_value_entries (\fBACE_BINDING_SET\fR & set, const \fBACE_WString\fR & pattern)\fC [virtual]\fR
.PP
Get a set of values matching a specified pattern (wchars). Matching means the values must begin with the pattern string. Returns the complete binding associated each pattern match. 
.PP
Reimplemented from \fBACE_Name_Space\fR.
.SS template<ACE_MEM_POOL_1, classACE_LOCK> virtual int ACE_Local_Name_Space<, ACE_LOCK>::list_value_entries_i (\fBACE_BINDING_SET\fR & set, const \fBACE_WString\fR & pattern)\fC [virtual]\fR
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::list_values (\fBACE_WSTRING_SET\fR & set, const \fBACE_WString\fR & pattern)\fC [virtual]\fR
.PP
Get a set of values matching a specified pattern (wchars). Matching means the values must begin with the pattern string.
.PP
Reimplemented from \fBACE_Name_Space\fR.
.SS template<ACE_MEM_POOL_1, classACE_LOCK> virtual int ACE_Local_Name_Space<, ACE_LOCK>::list_values_i (\fBACE_WSTRING_SET\fR & set, const \fBACE_WString\fR & pattern)\fC [virtual]\fR
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::open (\fBACE_Naming_Context::Context_Scope_Type\fR scope_in)
.PP
Specifies the scope of this namespace, opens and memory-maps the associated file (if accessible) or contacts the dedicated name server process for NET_LOCAL namespace. 
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::rebind (const \fBACE_WString\fR & name, const \fBACE_WString\fR & value, const char * type = "")\fC [virtual]\fR
.PP
Overwrite the value or type of an existing name in a ACE_Local_Name_Space or bind a new name to the context, if it didn't exist yet. (Wide charcter strings interface). 
.PP
Reimplemented from \fBACE_Name_Space\fR.
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::remap (EXCEPTION_POINTERS * ep)\fC [private]\fR
.PP
Remap the backing store.
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::resolve (const \fBACE_WString\fR & name, \fBACE_WString\fR & value, char *& type)\fC [virtual]\fR
.PP
Get value and type of a given name binding (Wide chars). The caller is responsible for deleting <type>!
.PP
Reimplemented from \fBACE_Name_Space\fR.
.SS template<ACE_MEM_POOL_1, classACE_LOCK> virtual int ACE_Local_Name_Space<, ACE_LOCK>::resolve_i (const \fBACE_WString\fR & name, \fBACE_WString\fR & value, char *& type)\fC [virtual]\fR
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::shared_bind (const \fBACE_WString\fR & name, const \fBACE_WString\fR & value, const char * type, int rebind)\fC [private]\fR
.PP
Factor out code from <bind> and <rebind>.
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::shared_bind_i (const \fBACE_WString\fR & name, const \fBACE_WString\fR & value, const char * type, int rebind)\fC [private]\fR
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> int ACE_Local_Name_Space<, ACE_LOCK>::unbind (const \fBACE_WString\fR & name)\fC [virtual]\fR
.PP
Delete a name from a ACE_Local_Name_Space (Wide charcter strings Interface).
.PP
Reimplemented from \fBACE_Name_Space\fR.
.SS template<ACE_MEM_POOL_1, classACE_LOCK> virtual int ACE_Local_Name_Space<, ACE_LOCK>::unbind_i (const \fBACE_WString\fR & name)\fC [virtual]\fR
.PP
.SH MEMBER DATA DOCUMENTATION
.PP 
.SS template<ACE_MEM_POOL_1, classACE_LOCK> \fBALLOCATOR\fR * ACE_Local_Name_Space<, ACE_LOCK>::allocator_\fC [private]\fR
.PP
Pointer to the allocator.
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> \fBACE_TCHAR\fR ACE_Local_Name_Space<, ACE_LOCK>::context_file_[MAXPATHLEN+MAXNAMELEN]\fC [private]\fR
.PP
Name of the file used as the backing store.
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> ACE_LOCK * ACE_Local_Name_Space<, ACE_LOCK>::lock_\fC [private]\fR
.PP
Synchronization variable.
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> \fBACE_Name_Options\fR * ACE_Local_Name_Space<, ACE_LOCK>::name_options_\fC [private]\fR
.PP
Keep track of the options such as database name etc.
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> \fBACE_Name_Space_Map\fR< \fBALLOCATOR\fR >* ACE_Local_Name_Space<, ACE_LOCK>::name_space_map_\fC [private]\fR
.PP
Pointer to the allocated map manager.
.PP
.SS template<ACE_MEM_POOL_1, classACE_LOCK> \fBACE_Naming_Context::Context_Scope_Type\fR ACE_Local_Name_Space<, ACE_LOCK>::ns_scope_\fC [private]\fR
.PP
Scope of this naming context (e.g., PROC_LOCAL, NODE_LOCAL, or NET_LOCAL).
.PP


.SH AUTHOR
.PP 
Generated automatically by Doxygen for ACE from the source code.