3 //=========================================================================
5 * @file Encoding_Converter_Factory.h
7 * This class can be used to create encoding converters of various types.
9 * @author Chad Elliott <elliott_c@ociweb.com>
11 //=========================================================================
13 #ifndef ACE_ENCODING_CONVERTER_FACTORY_H
14 #define ACE_ENCODING_CONVERTER_FACTORY_H
16 #include /**/ "ace/pre.h"
18 #include "ace/Basic_Types.h"
20 #if defined (ACE_USES_WCHAR)
21 #include /**/ "ace/ACE_export.h"
23 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
25 class ACE_Encoding_Converter
;
27 /** Create an encoding converter based on the source or hint.
28 * This class allows users to avoid knowing any concrete converter types.
30 class ACE_Export ACE_Encoding_Converter_Factory
33 /// This enum is used to tell what type of converter to create.
34 enum Encoding_Hint
{ ACE_UTF_32BE
, ACE_UTF_32LE
,
35 ACE_UTF_16BE
, ACE_UTF_16LE
,
39 /// Create an encoding converter based on the source. If a hint is
40 /// given, it just creates the specified type of converter without looking
42 static ACE_Encoding_Converter
* create (const ACE_Byte
* source
,
44 Encoding_Hint hint
= ACE_NONE
);
47 ACE_END_VERSIONED_NAMESPACE_DECL
48 #endif /* ACE_USES_WCHAR */
50 #include /**/ "ace/post.h"
52 #endif /* ACE_ENCODING_CONVERTER_FACTORY_H */