#include <Registry.h>
Collaboration diagram for ACE_Registry::Naming_Context:
Public Types | |
enum | { MAX_OBJECT_NAME_SIZE = BUFSIZ, MAX_CONTEXT_NAME_SIZE = MAXPATHLEN + 1 } |
Public Methods | |
Naming_Context (void) | |
Empty constructor: keys will be NULL. | |
Naming_Context (const HKEY &key) | |
Constructor: key_ will be set to <key>. | |
~Naming_Context (void) | |
Destructor will call <Naming_Context::close>. | |
int | bind_new (const Name &name, const Object &object) |
int | bind_new (const ACE_TString &name, const Object &object) |
int | bind (const Name &name, const Object &object) |
int | bind (const ACE_TString &name, const Object &object) |
int | rebind (const Name &name, const Object &object) |
int | rebind (const ACE_TString &name, const Object &object) |
Update <object> with <name> in <this> context. | |
int | resolve (const Name &name, Object &object) |
int | resolve (const ACE_TString &name, Object &object) |
Find <object> with <name> in <this> context. | |
int | unbind (const Name &name) |
int | unbind (const ACE_TString &name) |
Delete object with <name> in <this> context. | |
int | new_context (Naming_Context &naming_context) |
Create new <naming_context>. | |
int | bind_new_context (const Name &name, Naming_Context &naming_context, u_long persistence=REG_OPTION_NON_VOLATILE, u_long security_access=KEY_ALL_ACCESS, LPSECURITY_ATTRIBUTES security_attributes=0) |
int | bind_new_context (const ACE_TString &name, Naming_Context &naming_context, u_long persistence=REG_OPTION_NON_VOLATILE, u_long security_access=KEY_ALL_ACCESS, LPSECURITY_ATTRIBUTES security_attributes=0) |
int | bind_context (const Name &name, Naming_Context &naming_context, u_long persistence=REG_OPTION_NON_VOLATILE, u_long security_access=KEY_ALL_ACCESS, LPSECURITY_ATTRIBUTES security_attributes=0) |
int | bind_context (const ACE_TString &name, Naming_Context &naming_context, u_long persistence=REG_OPTION_NON_VOLATILE, u_long security_access=KEY_ALL_ACCESS, LPSECURITY_ATTRIBUTES security_attributes=0) |
int | rebind_context (const Name &name, Naming_Context &naming_context) |
int | rebind_context (const ACE_TString &name, Naming_Context &naming_context) |
Rename <naming_context> to <name>. | |
int | resolve_context (const Name &name, Naming_Context &naming_context, u_long security_access=KEY_ALL_ACCESS) |
int | resolve_context (const ACE_TString &name, Naming_Context &naming_context, u_long security_access=KEY_ALL_ACCESS) |
Find <naming_context> with <name> in <this> context. | |
int | unbind_context (const Name &name) |
int | unbind_context (const ACE_TString &name) |
Remove naming_context with <name> from <this> context. | |
int | destroy (void) |
Same as <unbind_context> with <this> as naming_context. | |
int | list (u_long how_many, Binding_List &list, Binding_Iterator &iterator) |
int | list (Binding_List &list) |
int | flush (void) |
Sync content of context to disk. | |
int | close (void) |
HKEY | key (void) |
Get key. | |
HKEY | parent (void) |
Get parent. | |
void | name (Name &name) |
void | name (ACE_TString &name) |
Set name (String version). | |
ACE_TString | name (void) |
Get name (String version). | |
Protected Methods | |
void | key (HKEY key) |
Set key. | |
void | parent (HKEY parent) |
Set parent. | |
void | name (const Name &name) |
void | name (const ACE_TString &name) |
Private Methods | |
Naming_Context (const Naming_Context &rhs) | |
Disallow copy constructors. | |
const Naming_Context & | operator= (const Naming_Context &rhs) |
Disallow assignment. | |
Private Attributes | |
HKEY | key_ |
Key for self. | |
HKEY | parent_key_ |
Key for parent. | |
ACE_TString | name_ |
Name of self. | |
Friends | |
class | ACE_Predefined_Naming_Contexts |
Friend factory. |
Think about a context as being similar to a directory in a file system.
|
|
|
Empty constructor: keys will be NULL.
|
|
Constructor: key_ will be set to <key>.
|
|
Destructor will call <Naming_Context::close>.
|
|
Disallow copy constructors.
|
|
Insert or update <object> with <name> into <this> context This will not fail if <name> already exists (String version) |
|
Insert or update <object> with <name> into <this> context This will not fail if <name> already exists (Name version) |
|
Insert or update <naming_context> with <name> relative to <this> context This will not fail if <name> already exists |
|
Insert or update <naming_context> with <name> relative to <this> context This will not fail if <name> already exists (Name version) |
|
Insert <object> with <name> into <this> context This will fail if <name> already exists (String version) |
|
Insert <object> with <name> into <this> context This will fail if <name> already exists (Name version) |
|
Insert <naming_context> with <name> relative to <this> context This will fail if <name> already exists |
|
Insert <naming_context> with <name> relative to <this> context This will fail if <name> already exists (Name version) |
|
Close the handle of the context Note: <close> does not call <flush> |
|
Same as <unbind_context> with <this> as naming_context.
|
|
Sync content of context to disk.
|
|
Set key.
|
|
Get key.
|
|
listing function: iterator creator This gives back a listing of all entries in <this> context. |
|
listing function: iterator creator This is useful when there are many objects and contexts in <this> context and you only want to look at a few entries at a time |
|
Set name (String version) |
|
Set name (Name version) |
|
Get name (String version).
|
|
Set name (String version).
|
|
Get name (Name version) |
|
Create new <naming_context>.
|
|
Disallow assignment.
|
|
Set parent.
|
|
Get parent.
|
|
Update <object> with <name> in <this> context.
|
|
Update <object> with <name> in <this> context (Name version) |
|
Rename <naming_context> to <name>.
|
|
Rename <naming_context> to <name> (Name version) |
|
Find <object> with <name> in <this> context.
|
|
Find <object> with <name> in <this> context (Name version) |
|
Find <naming_context> with <name> in <this> context.
|
|
Find <naming_context> with <name> in <this> context (Name version) |
|
Delete object with <name> in <this> context.
|
|
Delete object with <name> in <this> context (Name version) |
|
Remove naming_context with <name> from <this> context.
|
|
Remove naming_context with <name> from <this> context (Name version) |
|
Friend factory.
|
|
Key for self.
|
|
Name of self.
|
|
Key for parent.
|