3 //=============================================================================
7 * $Id: SStringfwd.h 80826 2008-03-04 14:51:23Z wotte $
9 * Forward declarations and typedefs of ACE string types.
11 * @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
12 * @author Nanbor Wang <nanbor@cs.wustl.edu>
13 * @author Ossama Othman <ossama@uci.edu>
15 //=============================================================================
17 #ifndef ACE_SSTRINGFWD_H
18 #define ACE_SSTRINGFWD_H
20 #include /**/ "ace/pre.h"
22 #include "ace/Basic_Types.h" /* ACE_WCHAR_T definition */
24 #if !defined (ACE_LACKS_PRAGMA_ONCE)
26 #endif /* ACE_LACKS_PRAGMA_ONCE */
28 #if (defined (__HP_aCC) && (36300 <= __HP_aCC) && (__HP_aCC <= 37300))
29 // Due to a bug in the aCC 3.xx compiler need to define the ACE_String_Base
30 // template before we can typedef ACE_CString
31 # include "ace/String_Base.h"
34 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
36 template <class CHAR
> class ACE_String_Base
; // Forward declaration.
38 typedef ACE_WCHAR_T ACE_WSTRING_TYPE
;
40 typedef ACE_String_Base
<char> ACE_CString
;
41 typedef ACE_String_Base
<ACE_WSTRING_TYPE
> ACE_WString
;
43 // This allows one to use W or C String based on the Unicode
45 #if defined (ACE_USES_WCHAR)
46 typedef ACE_WString ACE_TString
;
47 #else /* ACE_USES_WCHAR */
48 typedef ACE_CString ACE_TString
;
49 #endif /* ACE_USES_WCHAR */
51 ACE_END_VERSIONED_NAMESPACE_DECL
53 #include /**/ "ace/post.h"
55 #endif /* ACE_SSTRINGFWD_H */