diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
commit | c44379cc7d9c7aa113989237ab0f56db12aa5219 (patch) | |
tree | 66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/ace/SStringfwd.h | |
parent | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff) | |
download | ATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz |
Repo restructuring
Diffstat (limited to 'ACE/ace/SStringfwd.h')
-rw-r--r-- | ACE/ace/SStringfwd.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/ACE/ace/SStringfwd.h b/ACE/ace/SStringfwd.h new file mode 100644 index 00000000000..315553751ce --- /dev/null +++ b/ACE/ace/SStringfwd.h @@ -0,0 +1,49 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file SStringfwd.h + * + * $Id$ + * + * Forward declarations and typedefs of ACE string types. + * + * @author Douglas C. Schmidt <schmidt@cs.wustl.edu> + * @author Nanbor Wang <nanbor@cs.wustl.edu> + * @author Ossama Othman <ossama@uci.edu> + */ +//============================================================================= + +#ifndef ACE_SSTRINGFWD_H +#define ACE_SSTRINGFWD_H + +#include /**/ "ace/pre.h" + +#include "ace/Basic_Types.h" /* ACE_WCHAR_T definition */ + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +template <class CHAR> class ACE_String_Base; // Forward declaration. + +typedef ACE_WCHAR_T ACE_WSTRING_TYPE; + +typedef ACE_String_Base<char> ACE_CString; +typedef ACE_String_Base<ACE_WSTRING_TYPE> ACE_WString; + +// This allows one to use W or C String based on the Unicode +// setting +#if defined (ACE_USES_WCHAR) +typedef ACE_WString ACE_TString; +#else /* ACE_USES_WCHAR */ +typedef ACE_CString ACE_TString; +#endif /* ACE_USES_WCHAR */ + +ACE_END_VERSIONED_NAMESPACE_DECL + +#include /**/ "ace/post.h" + +#endif /* ACE_SSTRINGFWD_H */ |