aboutsummaryrefslogtreecommitdiff
path: root/dep/ACE_wrappers/ace/Registry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dep/ACE_wrappers/ace/Registry.cpp')
-rw-r--r--dep/ACE_wrappers/ace/Registry.cpp70
1 files changed, 0 insertions, 70 deletions
diff --git a/dep/ACE_wrappers/ace/Registry.cpp b/dep/ACE_wrappers/ace/Registry.cpp
index 897df00a9af..5244f9feb16 100644
--- a/dep/ACE_wrappers/ace/Registry.cpp
+++ b/dep/ACE_wrappers/ace/Registry.cpp
@@ -24,7 +24,6 @@ ACE_RCSID (ace,
return 0; \
} while (0)
-
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_TCHAR const ACE_Registry::STRING_SEPARATOR[] = ACE_TEXT ("\\");
@@ -50,7 +49,6 @@ ACE_Registry::Binding::Binding ()
{
}
-
// Binding constructor
// (Name version)
ACE_Registry::Binding::Binding (const Name &name,
@@ -60,7 +58,6 @@ ACE_Registry::Binding::Binding (const Name &name,
{
}
-
// Binding constructor
// (String version)
ACE_Registry::Binding::Binding (const ACE_TString &name,
@@ -70,7 +67,6 @@ ACE_Registry::Binding::Binding (const ACE_TString &name,
{
}
-
bool
ACE_Registry::Binding::operator== (const Binding &rhs) const
{
@@ -93,7 +89,6 @@ ACE_Registry::Binding::name (Name &name)
name = ACE_Registry::make_name (this->name_);
}
-
// Name accessors
// (String version)
void
@@ -102,7 +97,6 @@ ACE_Registry::Binding::name (ACE_TString &name)
name = this->name_;
}
-
// Name accessors
// (String version)
ACE_TString
@@ -111,7 +105,6 @@ ACE_Registry::Binding::name (void)
return this->name_;
}
-
// Type accessor
ACE_Registry::Binding_Type
ACE_Registry::Binding::type (void)
@@ -119,7 +112,6 @@ ACE_Registry::Binding::type (void)
return this->type_;
}
-
// Simple object constructor
ACE_Registry::Object::Object (void *data,
u_long size,
@@ -137,42 +129,36 @@ ACE_Registry::Object::data (void *data)
this->data_ = data;
}
-
void *
ACE_Registry::Object::data (void) const
{
return this->data_;
}
-
void
ACE_Registry::Object::size (u_long size)
{
this->size_ = size;
}
-
u_long
ACE_Registry::Object::size (void) const
{
return this->size_;
}
-
void
ACE_Registry::Object::type (u_long type)
{
this->type_ = type;
}
-
u_long
ACE_Registry::Object::type (void) const
{
return this->type_;
}
-
// Simple context constructor
ACE_Registry::Naming_Context::Naming_Context (void)
: key_ ((HKEY) 0),
@@ -181,7 +167,6 @@ ACE_Registry::Naming_Context::Naming_Context (void)
{
}
-
// Context constructor
ACE_Registry::Naming_Context::Naming_Context (const HKEY &key)
: key_ (key),
@@ -190,7 +175,6 @@ ACE_Registry::Naming_Context::Naming_Context (const HKEY &key)
{
}
-
ACE_Registry::Naming_Context::Naming_Context (const Naming_Context &rhs)
: key_ (rhs.key_),
parent_key_ (rhs.parent_key_),
@@ -201,7 +185,6 @@ ACE_Registry::Naming_Context::Naming_Context (const Naming_Context &rhs)
// But since this is private (and not used), I don't care much
}
-
const ACE_Registry::Naming_Context &
ACE_Registry::Naming_Context::operator= (const Naming_Context &rhs)
{
@@ -211,14 +194,12 @@ ACE_Registry::Naming_Context::operator= (const Naming_Context &rhs)
return *this;
}
-
// Destructor
ACE_Registry::Naming_Context::~Naming_Context ()
{
this->close ();
}
-
// Insert <object> with <name> into <this> context
// (Name version)
int
@@ -228,7 +209,6 @@ ACE_Registry::Naming_Context::bind_new (const Name &name,
return this->bind_new (ACE_Registry::make_string (name), object);
}
-
// Insert <object> with <name> into <this> context
// (String version)
int
@@ -247,7 +227,6 @@ ACE_Registry::Naming_Context::bind_new (const ACE_TString &name,
return result;
}
-
// Insert or update <object> with <name> into <this> context
// (Name version)
int
@@ -257,7 +236,6 @@ ACE_Registry::Naming_Context::bind (const Name &name,
return this->bind (ACE_Registry::make_string (name), object);
}
-
// Insert or update <object> with <name> into <this> context
// (String version)
int
@@ -273,7 +251,6 @@ ACE_Registry::Naming_Context::bind (const ACE_TString &name,
ACE_REGISTRY_CALL_RETURN (result);
}
-
// Update <object> with <name> in <this> context
// (Name version)
int
@@ -283,7 +260,6 @@ ACE_Registry::Naming_Context::rebind (const Name &name,
return this->rebind (ACE_Registry::make_string (name), new_object);
}
-
// Update <object> with <name> in <this> context
// (String version)
int
@@ -299,7 +275,6 @@ ACE_Registry::Naming_Context::rebind (const ACE_TString &name,
return result;
}
-
// Find <object> with <name> in <this> context
// (Name version)
int
@@ -309,7 +284,6 @@ ACE_Registry::Naming_Context::resolve (const Name &name,
return this->resolve (ACE_Registry::make_string (name), object);
}
-
// Find <object> with <name> in <this> context
// (String version)
int
@@ -338,7 +312,6 @@ ACE_Registry::Naming_Context::resolve (const ACE_TString &name,
ACE_REGISTRY_CALL_RETURN (result);
}
-
// Remove object with <name> in <this> context
// (Name version)
int
@@ -347,7 +320,6 @@ ACE_Registry::Naming_Context::unbind (const Name &name)
return this->unbind (ACE_Registry::make_string (name));
}
-
// Remove object with <name> in <this> context
// (String version)
int
@@ -359,7 +331,6 @@ ACE_Registry::Naming_Context::unbind (const ACE_TString &name)
ACE_REGISTRY_CALL_RETURN (result);
}
-
// Create new <naming_context> relative to <this> context
// This method may not mean a lot in this implementation
int
@@ -369,7 +340,6 @@ ACE_Registry::Naming_Context::new_context (Naming_Context &naming_context)
return naming_context.close ();
}
-
// Insert <naming_context> with <name> relative to <this> context
// (Name version)
int
@@ -386,7 +356,6 @@ ACE_Registry::Naming_Context::bind_new_context (const Name &name,
security_attributes);
}
-
// Insert <naming_context> with <name> relative to <this> context
// (String version)
int
@@ -434,7 +403,6 @@ ACE_Registry::Naming_Context::bind_new_context (const ACE_TString &name,
ACE_REGISTRY_CALL_RETURN (result);
}
-
// Insert or update <naming_context> with <name> relative to <this> context
// (Name version)
int
@@ -451,7 +419,6 @@ ACE_Registry::Naming_Context::bind_context (const Name &name,
security_attributes);
}
-
// Insert or update <naming_context> with <name> relative to <this> context
// (String version)
int
@@ -483,7 +450,6 @@ ACE_Registry::Naming_Context::bind_context (const ACE_TString &name,
ACE_REGISTRY_CALL_RETURN (result);
}
-
// Rename <naming_context> to <name>
// (Name version)
int
@@ -494,7 +460,6 @@ ACE_Registry::Naming_Context::rebind_context (const Name &name,
new_naming_context);
}
-
// Rename <naming_context> to <name>
// (String version)
int
@@ -520,7 +485,6 @@ ACE_Registry::Naming_Context::rebind_context (const ACE_TString &name,
return result;
}
-
// Remove naming_context with <name> from <this> context
// (Name version)
int
@@ -529,7 +493,6 @@ ACE_Registry::Naming_Context::unbind_context (const Name &name)
return this->unbind_context (ACE_Registry::make_string (name));
}
-
// Remove naming_context with <name> from <this> context
// (String version)
int
@@ -541,7 +504,6 @@ ACE_Registry::Naming_Context::unbind_context (const ACE_TString &name)
ACE_REGISTRY_CALL_RETURN (result);
}
-
// Find <naming_context> with <name> in <this> context
// (Name version)
int
@@ -554,7 +516,6 @@ ACE_Registry::Naming_Context::resolve_context (const Name &name,
security_access);
}
-
// Find <naming_context> with <name> in <this> context
// (String version)
int
@@ -578,7 +539,6 @@ ACE_Registry::Naming_Context::resolve_context (const ACE_TString &name,
ACE_REGISTRY_CALL_RETURN (result);
}
-
// Same as unbind_context() with <this> as naming_context
int
ACE_Registry::Naming_Context::destroy (void)
@@ -590,7 +550,6 @@ ACE_Registry::Naming_Context::destroy (void)
ACE_REGISTRY_CALL_RETURN (result);
}
-
// Sync content of context to disk
int
ACE_Registry::Naming_Context::flush (void)
@@ -599,7 +558,6 @@ ACE_Registry::Naming_Context::flush (void)
ACE_REGISTRY_CALL_RETURN (result);
}
-
// Close the handle of the context
int
ACE_Registry::Naming_Context::close (void)
@@ -608,7 +566,6 @@ ACE_Registry::Naming_Context::close (void)
ACE_REGISTRY_CALL_RETURN (result);
}
-
// Convert a <name> to a <string>
ACE_TString
ACE_Registry::make_string (const Name &const_name)
@@ -632,7 +589,6 @@ ACE_Registry::make_string (const Name &const_name)
return string;
}
-
// Convert a <string> to a <name>
ACE_Registry::Name
ACE_Registry::make_name (const ACE_TString &string)
@@ -671,7 +627,6 @@ ACE_Registry::make_name (const ACE_TString &string)
return name;
}
-
// Set key
void
ACE_Registry::Naming_Context::key (HKEY key)
@@ -679,7 +634,6 @@ ACE_Registry::Naming_Context::key (HKEY key)
this->key_ = key;
}
-
// Get key
HKEY
ACE_Registry::Naming_Context::key (void)
@@ -687,7 +641,6 @@ ACE_Registry::Naming_Context::key (void)
return this->key_;
}
-
// Set parent
void
ACE_Registry::Naming_Context::parent (HKEY parent)
@@ -695,7 +648,6 @@ ACE_Registry::Naming_Context::parent (HKEY parent)
this->parent_key_ = parent;
}
-
// Get parent
HKEY
ACE_Registry::Naming_Context::parent (void)
@@ -703,7 +655,6 @@ ACE_Registry::Naming_Context::parent (void)
return this->parent_key_;
}
-
// Set name
// (Name version)
void
@@ -712,7 +663,6 @@ ACE_Registry::Naming_Context::name (const Name &name)
this->name_ = ACE_Registry::make_string (name);
}
-
// Get name
// (Name version)
void
@@ -721,7 +671,6 @@ ACE_Registry::Naming_Context::name (Name &name)
name = ACE_Registry::make_name (this->name_);
}
-
// Set name
// (String version)
void
@@ -730,7 +679,6 @@ ACE_Registry::Naming_Context::name (const ACE_TString &name)
this->name_ = name;
}
-
// Get name
// (String version)
ACE_TString
@@ -739,7 +687,6 @@ ACE_Registry::Naming_Context::name (void)
return this->name_;
}
-
// Get name
// (String version)
void
@@ -776,7 +723,6 @@ ACE_Registry::Naming_Context::list (u_long how_many,
return iter.next_n (how_many, list);
}
-
// listing function: iterator creator
// This gives back a listing of all entries in <this> context.
int
@@ -807,7 +753,6 @@ ACE_Registry::Naming_Context::list (Binding_List &list)
return 0;
}
-
// Default constructor
ACE_Registry::Binding_Iterator::Binding_Iterator ()
{
@@ -817,7 +762,6 @@ ACE_Registry::Binding_Iterator::Binding_Iterator ()
this->reset ();
}
-
void
ACE_Registry::Binding_Iterator::reset ()
{
@@ -827,27 +771,23 @@ ACE_Registry::Binding_Iterator::reset ()
this->context_iteration_.reset ();
}
-
void
ACE_Registry::Binding_Iterator::Iteration_State::reset ()
{
this->index_ = 0;
}
-
void
ACE_Registry::Binding_Iterator::Iteration_State::iterator (Binding_Iterator *iter)
{
this->parent_ = iter;
}
-
ACE_Registry::Binding_Iterator::Iteration_State::Iteration_State ()
: index_ (0)
{
}
-
// Next entry
int
ACE_Registry::Binding_Iterator::next_one (Binding &binding)
@@ -865,7 +805,6 @@ ACE_Registry::Binding_Iterator::next_one (Binding &binding)
return result;
}
-
// Next <how_many> entries
int
ACE_Registry::Binding_Iterator::next_n (u_long how_many,
@@ -877,7 +816,6 @@ ACE_Registry::Binding_Iterator::next_n (u_long how_many,
return this->current_enumeration_->next_n (how_many, list);
}
-
// Destroy iterator
int
ACE_Registry::Binding_Iterator::destroy (void)
@@ -886,7 +824,6 @@ ACE_Registry::Binding_Iterator::destroy (void)
return 0;
}
-
// Set/Get naming_context
void
ACE_Registry::Binding_Iterator::naming_context (Naming_Context &naming_context)
@@ -894,14 +831,12 @@ ACE_Registry::Binding_Iterator::naming_context (Naming_Context &naming_context)
this->naming_context_ = &naming_context;
}
-
ACE_Registry::Naming_Context &
ACE_Registry::Binding_Iterator::naming_context (void)
{
return *this->naming_context_;
}
-
// Set/Get current enumeration
void
ACE_Registry::Binding_Iterator::current_enumeration (Iteration_State &current_enumeration)
@@ -909,14 +844,12 @@ ACE_Registry::Binding_Iterator::current_enumeration (Iteration_State &current_en
this->current_enumeration_ = &current_enumeration;
}
-
ACE_Registry::Binding_Iterator::Iteration_State &
ACE_Registry::Binding_Iterator::current_enumeration (void)
{
return *this->current_enumeration_;
}
-
int
ACE_Registry::Binding_Iterator::Object_Iteration::next_n (u_long how_many,
Binding_List &list)
@@ -986,7 +919,6 @@ ACE_Registry::Binding_Iterator::Object_Iteration::next_n (u_long how_many,
return 0;
}
-
int
ACE_Registry::Binding_Iterator::Context_Iteration::next_n (u_long how_many,
Binding_List &list)
@@ -1051,7 +983,6 @@ ACE_Registry::Binding_Iterator::Context_Iteration::next_n (u_long how_many,
return 0;
}
-
int
ACE_Registry::Binding_Iterator::Iteration_Complete::next_n (u_long how_many,
Binding_List &list)
@@ -1063,7 +994,6 @@ ACE_Registry::Binding_Iterator::Iteration_Complete::next_n (u_long how_many,
return -1;
}
-
// Factory method to connect to predefined registries
// This method works for both remote and local machines
// However, for remote machines CLASSES_ROOT and CURRENT_USER