Use =default for skeleton copy constructor
[ACE_TAO.git] / TAO / tao / Codeset / UTF8_Latin1_Factory.h
bloba2a781f2ba1dd9df49b5cc83bc5ef4075bc0aa17
1 // -*- C++ -*-
2 #ifndef UTF8_LATIN1_FACTORY_H
3 #define UTF8_LATIN1_FACTORY_H
5 #include /**/ "ace/pre.h"
6 #include "tao/Codeset/codeset_export.h"
7 #include "ace/Service_Config.h"
8 #include "tao/Codeset/Codeset_Translator_Factory.h"
10 #include "tao/Codeset/UTF8_Latin1_Translator.h"
12 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
14 class TAO_Codeset_Export TAO_UTF8_Latin1_Factory
15 : public TAO_Codeset_Translator_Factory
17 public:
18 TAO_UTF8_Latin1_Factory () = default;
19 virtual ~TAO_UTF8_Latin1_Factory ();
20 virtual int init (int argc, ACE_TCHAR *argv[]);
22 /// ncs returns the translator's native codeset ID.
23 CONV_FRAME::CodeSetId ncs () const;
24 /// tcs returns the translator's transmission codeset ID.
25 CONV_FRAME::CodeSetId tcs () const;
27 /// Assign the translator to the input CDR. The inherited assign_i is used
28 /// to assign either a char or wchar translator, depending on the base type
29 /// of NCS_TO_TCS. A null input CDR is permitted, in which case assign is a
30 /// no-op.
31 virtual void assign (TAO_InputCDR *) const;
32 /// Assign the translator to the output CDR. The inherited assign_i is used
33 /// to assign either a char or wchar translator, depending on the base type
34 /// of NCS_TO_TCS. A null output CDR is permitted, in which case assign is a
35 /// no-op.
36 virtual void assign (TAO_OutputCDR *) const;
38 private:
39 void create_translator () const;
41 private:
42 TAO_UTF8_Latin1_Translator *translator_ {};
45 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_Codeset, TAO_UTF8_Latin1_Factory)
46 ACE_FACTORY_DECLARE (TAO_Codeset, TAO_UTF8_Latin1_Factory)
47 TAO_END_VERSIONED_NAMESPACE_DECL
48 #include /**/ "ace/post.h"
49 #endif /* UTF8_LATIN1_FACTORY_H */