Merge pull request #2316 from jwillemsen/jwi-taskcommenttypo
[ACE_TAO.git] / TAO / tao / Codeset / Codeset.cpp
blobd1dc744d38da9d2e54312e6d117d2e4e06694d09
1 // -*- C++ -*-
3 // =================================================================
4 /**
5 * @file Codeset.cpp
7 * @author Phil Mesnier <mesnier_p@ociweb.com>
8 */
9 // =================================================================
11 #include "tao/Codeset/Codeset.h"
12 #include "tao/Codeset/Codeset_Manager_Factory.h"
13 #include "tao/Codeset/UTF8_Latin1_Factory.h"
14 #include "tao/Codeset/UTF16_BOM_Factory.h"
16 #include "ace/Dynamic_Service.h"
18 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
20 int
21 TAO_Codeset_Initializer::init ()
23 int result = 0;
25 result += ACE_Service_Config::process_directive (ace_svc_desc_TAO_UTF8_Latin1_Factory);
27 result += ACE_Service_Config::process_directive (ace_svc_desc_TAO_UTF16_BOM_Factory);
29 TAO_Codeset_Manager_Factory *cmf = ACE_Dynamic_Service<TAO_Codeset_Manager_Factory>::instance("TAO_Codeset");
31 if (cmf != 0)
33 return result;
36 result += ACE_Service_Config::process_directive (ace_svc_desc_TAO_Codeset_Manager_Factory,1); // force replacement
38 return result;
41 TAO_END_VERSIONED_NAMESPACE_DECL