00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 #ifndef ACE_LOCAL_NAME_SPACE_H
00016 #define ACE_LOCAL_NAME_SPACE_H
00017 
00018 #include  "ace/pre.h"
00019 
00020 #include "ace/Malloc_T.h"
00021 
00022 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00023 # pragma once
00024 #endif 
00025 
00026 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00027 
00028 class ACE_NS_WString;
00029 
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 
00039 class ACE_Export ACE_NS_String
00040 {
00041 public:
00042   
00043 
00044   ACE_NS_String (void);
00045 
00046 
00047   ACE_NS_String (ACE_WCHAR_T *dst,
00048                  const ACE_WCHAR_T *src,
00049                  size_t len);
00050 
00051 
00052   ACE_NS_String (const ACE_NS_WString &);
00053 
00054 
00055   ~ACE_NS_String (void);
00056 
00057 
00058   operator ACE_NS_WString () const;
00059 
00060 
00061   char *char_rep (void) const;
00062 
00063 
00064   int strstr (const ACE_NS_String &) const;
00065 
00066 
00067   bool operator == (const ACE_NS_String &) const;
00068 
00069 
00070   bool operator != (const ACE_NS_String &) const;
00071 
00072 
00073   size_t len (void) const;
00074 
00075 
00076   ACE_WCHAR_T *fast_rep (void) const;
00077 
00078 
00079   u_long hash (void) const;
00080 
00081 private:
00082 
00083   size_t len_;
00084 
00085 
00086   ACE_WCHAR_T *rep_;
00087 
00088 
00089 
00090   int delete_rep_;
00091 };
00092 
00093 
00094 
00095 
00096 
00097 
00098 
00099 class ACE_Export ACE_NS_Internal
00100 {
00101 public:
00102 
00103   ACE_NS_Internal (void);
00104 
00105 
00106   ACE_NS_Internal (ACE_NS_String &value, const char *type);
00107 
00108 
00109   bool operator == (const ACE_NS_Internal &) const;
00110 
00111 
00112   ACE_NS_String value (void);
00113 
00114 
00115   const char *type (void);
00116 
00117 private:
00118 
00119   ACE_NS_String value_;
00120 
00121 
00122   const char *type_;
00123 };
00124 
00125 ACE_END_VERSIONED_NAMESPACE_DECL
00126 
00127 
00128 #include "ace/Local_Name_Space_T.h"
00129 
00130 #include  "ace/post.h"
00131 
00132 #endif