#include <Local_Name_Space_T.h>
Inheritance diagram for ACE_Local_Name_Space:
Public Types | |
typedef ACE_Allocator_Adapter< ACE_Malloc< ACE_MEM_POOL_2, ACE_LOCK > > | ALLOCATOR |
Public Methods | |
ACE_Local_Name_Space (void) | |
"Do-nothing" constructor. More... | |
ACE_Local_Name_Space (ACE_Naming_Context::Context_Scope_Type scope_in, ACE_Name_Options *name_options) | |
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. More... | |
int | open (ACE_Naming_Context::Context_Scope_Type scope_in) |
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. More... | |
~ACE_Local_Name_Space (void) | |
destructor, do some cleanup :TBD: last dtor should "compress" file. More... | |
virtual int | bind (const ACE_NS_WString &name, const ACE_NS_WString &value, const char *type="") |
Bind a new name to a naming context (Wide character strings). More... | |
virtual int | rebind (const ACE_NS_WString &name, const ACE_NS_WString &value, const char *type="") |
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. More... | |
virtual int | unbind (const ACE_NS_WString &name) |
Delete a name from a ACE_Local_Name_Space (Wide charcter strings Interface). More... | |
virtual int | unbind_i (const ACE_NS_WString &name) |
virtual int | resolve (const ACE_NS_WString &name, ACE_NS_WString &value, char *&type) |
Get value and type of a given name binding (Wide chars). The caller is responsible for deleting <type>! More... | |
virtual int | resolve_i (const ACE_NS_WString &name, ACE_NS_WString &value, char *&type) |
virtual int | list_names (ACE_WSTRING_SET &set, const ACE_NS_WString &pattern) |
Get a set of names matching a specified pattern (wchars). Matching means the names must begin with the pattern string. More... | |
virtual int | list_names_i (ACE_WSTRING_SET &set, const ACE_NS_WString &pattern) |
virtual int | list_values (ACE_WSTRING_SET &set, const ACE_NS_WString &pattern) |
Get a set of values matching a specified pattern (wchars). Matching means the values must begin with the pattern string. More... | |
virtual int | list_values_i (ACE_WSTRING_SET &set, const ACE_NS_WString &pattern) |
virtual int | list_types (ACE_WSTRING_SET &set, const ACE_NS_WString &pattern) |
Get a set of types matching a specified pattern (wchars). Matching means the types must begin with the pattern string. More... | |
virtual int | list_types_i (ACE_WSTRING_SET &set, const ACE_NS_WString &pattern) |
virtual int | list_name_entries (ACE_BINDING_SET &set, const ACE_NS_WString &pattern) |
Get a set of names matching a specified pattern (wchars). More... | |
virtual int | list_name_entries_i (ACE_BINDING_SET &set, const ACE_NS_WString &pattern) |
virtual int | list_value_entries (ACE_BINDING_SET &set, const ACE_NS_WString &pattern) |
Get a set of values matching a specified pattern (wchars). More... | |
virtual int | list_value_entries_i (ACE_BINDING_SET &set, const ACE_NS_WString &pattern) |
virtual int | list_type_entries (ACE_BINDING_SET &set, const ACE_NS_WString &pattern) |
Get a set of types matching a specified pattern (wchars). More... | |
virtual int | list_type_entries_i (ACE_BINDING_SET &set, const ACE_NS_WString &pattern) |
virtual void | dump (void) const |
Dump the state of the object. More... | |
virtual void | dump_i (void) const |
Private Methods | |
int | remap (EXCEPTION_POINTERS *ep) |
Remap the backing store. More... | |
int | shared_bind (const ACE_NS_WString &name, const ACE_NS_WString &value, const char *type, int rebind) |
Factor out code from <bind> and <rebind>. More... | |
int | shared_bind_i (const ACE_NS_WString &name, const ACE_NS_WString &value, const char *type, int rebind) |
int | create_manager (void) |
Allocate the appropriate type of map manager that stores the key/value binding. More... | |
int | create_manager_i (void) |
Private Attributes | |
ALLOCATOR * | allocator_ |
Pointer to the allocator. More... | |
ACE_Name_Space_Map< ALLOCATOR > * | name_space_map_ |
Pointer to the allocated map manager. More... | |
ACE_Naming_Context::Context_Scope_Type | ns_scope_ |
Scope of this naming context (e.g., PROC_LOCAL, NODE_LOCAL, or NET_LOCAL). More... | |
ACE_Name_Options * | name_options_ |
Keep track of the options such as database name etc. More... | |
ACE_TCHAR | context_file_ [MAXPATHLEN+MAXNAMELEN] |
Name of the file used as the backing store. More... | |
ACE_LOCK * | lock_ |
Synchronization variable. More... |
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).
|
|
|
"Do-nothing" constructor.
|
|
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.
|
|
destructor, do some cleanup :TBD: last dtor should "compress" file.
|
|
Bind a new name to a naming context (Wide character strings).
Reimplemented from ACE_Name_Space. |
|
Allocate the appropriate type of map manager that stores the key/value binding.
|
|
|
|
Dump the state of the object.
Reimplemented from ACE_Name_Space. |
|
|
|
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. Reimplemented from ACE_Name_Space. |
|
|
|
Get a set of names matching a specified pattern (wchars). Matching means the names must begin with the pattern string.
Reimplemented from ACE_Name_Space. |
|
|
|
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. Reimplemented from ACE_Name_Space. |
|
|
|
Get a set of types matching a specified pattern (wchars). Matching means the types must begin with the pattern string.
Reimplemented from ACE_Name_Space. |
|
|
|
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. Reimplemented from ACE_Name_Space. |
|
|
|
Get a set of values matching a specified pattern (wchars). Matching means the values must begin with the pattern string.
Reimplemented from ACE_Name_Space. |
|
|
|
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.
|
|
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). Reimplemented from ACE_Name_Space. |
|
Remap the backing store.
|
|
Get value and type of a given name binding (Wide chars). The caller is responsible for deleting <type>!
Reimplemented from ACE_Name_Space. |
|
|
|
Factor out code from <bind> and <rebind>.
|
|
|
|
Delete a name from a ACE_Local_Name_Space (Wide charcter strings Interface).
Reimplemented from ACE_Name_Space. |
|
|
|
Pointer to the allocator.
|
|
Name of the file used as the backing store.
|
|
Synchronization variable.
|
|
Keep track of the options such as database name etc.
|
|
Pointer to the allocated map manager.
|
|
Scope of this naming context (e.g., PROC_LOCAL, NODE_LOCAL, or NET_LOCAL).
|