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