summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-15 15:00:13 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-15 15:00:13 +0000
commit652946a8d90ebf98dae9e0f012fbfcc834f1a3b6 (patch)
tree52697e9c026bf287b35af7e6d61a758763b94621 /ace
parentcfc589596fff7bcd102189e04100067fee25916b (diff)
downloadATCD-652946a8d90ebf98dae9e0f012fbfcc834f1a3b6.tar.gz
*** empty log message ***
Diffstat (limited to 'ace')
-rw-r--r--ace/Registry.h36
1 files changed, 30 insertions, 6 deletions
diff --git a/ace/Registry.h b/ace/Registry.h
index 9dc5a07e785..d7bbcdb8466 100644
--- a/ace/Registry.h
+++ b/ace/Registry.h
@@ -33,12 +33,6 @@
#endif
// You must configure the STL components in order to use this wrapper.
-#if defined (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB) && \
- (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB != 0)
- using std::vector;
- using std::basic_string;
-#endif /* ACE_HAS_STD_NAMESPACE_FOR_STDCPP_LIB */
-
class ACE_Export ACE_Registry
// = TITLE
// A Name Server implementation
@@ -53,9 +47,19 @@ class ACE_Export ACE_Registry
{
public:
+#if defined (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB) && \
+ (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB != 0)
+
+ typedef std::basic_string<TCHAR> Istring;
+ // International string
+
+#else
+
typedef basic_string<TCHAR> Istring;
// International string
+#endif /* ACE_HAS_STD_NAMESPACE_FOR_STDCPP_LIB */
+
struct ACE_Export Name_Component
{
Istring id_;
@@ -64,9 +68,19 @@ public:
// The <id_> field is used,
// but the <kind_> field is currently ignored
+#if defined (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB) && \
+ (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB != 0)
+
+ typedef std::vector<Name_Component> Name;
+ // A Name is an ordered collections of components (ids)
+
+#else
+
typedef vector<Name_Component> Name;
// A Name is an ordered collections of components (ids)
+#endif /* ACE_HAS_STD_NAMESPACE_FOR_STDCPP_LIB */
+
static LPCTSTR STRING_SEPARATOR;
// Separator for components in a name
@@ -112,9 +126,19 @@ public:
// A binding has a name and a type
};
+#if defined (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB) && \
+ (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB != 0)
+
+ typedef std::vector<Binding> Binding_List;
+ // A list of bindings
+
+#else
+
typedef vector<Binding> Binding_List;
// A list of bindings
+#endif /* ACE_HAS_STD_NAMESPACE_FOR_STDCPP_LIB */
+
class Binding_Iterator;
// Forward declaration of iterator