00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file SStringfwd.h 00006 * 00007 * SStringfwd.h,v 4.5 2005/10/28 16:14:55 ossama Exp 00008 * 00009 * Forward declarations and typedefs of ACE string types. 00010 * 00011 * @author Douglas C. Schmidt <schmidt@cs.wustl.edu> 00012 * @author Nanbor Wang <nanbor@cs.wustl.edu> 00013 * @author Ossama Othman <ossama@uci.edu> 00014 */ 00015 //============================================================================= 00016 00017 #ifndef ACE_SSTRINGFWD_H 00018 #define ACE_SSTRINGFWD_H 00019 00020 #include /**/ "ace/pre.h" 00021 00022 #include "ace/Basic_Types.h" /* ACE_WCHAR_T definition */ 00023 00024 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00025 # pragma once 00026 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00027 00028 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00029 00030 template <class CHAR> class ACE_String_Base; // Forward declaration. 00031 00032 typedef ACE_WCHAR_T ACE_WSTRING_TYPE; 00033 00034 typedef ACE_String_Base<char> ACE_CString; 00035 typedef ACE_String_Base<ACE_WSTRING_TYPE> ACE_WString; 00036 00037 // This allows one to use W or C String based on the Unicode 00038 // setting 00039 #if defined (ACE_USES_WCHAR) 00040 typedef ACE_WString ACE_TString; 00041 #else /* ACE_USES_WCHAR */ 00042 typedef ACE_CString ACE_TString; 00043 #endif /* ACE_USES_WCHAR */ 00044 00045 ACE_END_VERSIONED_NAMESPACE_DECL 00046 00047 #include /**/ "ace/post.h" 00048 00049 #endif /* ACE_SSTRINGFWD_H */