diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
commit | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (patch) | |
tree | 197c810e5f5bce17b1233a7cb8d7b50c0bcd25e2 /TAO/tao/Codeset/Codeset.cpp | |
parent | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (diff) | |
download | ATCD-3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/tao/Codeset/Codeset.cpp')
-rw-r--r-- | TAO/tao/Codeset/Codeset.cpp | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/TAO/tao/Codeset/Codeset.cpp b/TAO/tao/Codeset/Codeset.cpp new file mode 100644 index 00000000000..c946ad4c3b5 --- /dev/null +++ b/TAO/tao/Codeset/Codeset.cpp @@ -0,0 +1,48 @@ +// -*- C++ -*- + +// ================================================================= +/** + * @file Codeset.cpp + * + * $Id$ + * + * @author Phil Mesnier <mesnier_p@ociweb.com> + */ +// ================================================================= + +#include "tao/Codeset/Codeset.h" +#include "tao/Codeset/Codeset_Manager_Factory.h" +#include "tao/Codeset/UTF8_Latin1_Factory.h" +#include "tao/Codeset/UTF16_BOM_Factory.h" + +#include "ace/Dynamic_Service.h" + + +ACE_RCSID (Codeset, Codeset, "$Id$") + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +int +TAO_Codeset_Initializer::init (void) +{ + int result = 0; + + result += ACE_Service_Config::process_directive + (ace_svc_desc_TAO_UTF8_Latin1_Factory); + + result += ACE_Service_Config::process_directive + (ace_svc_desc_TAO_UTF16_BOM_Factory); + + TAO_Codeset_Manager_Factory *cmf = ACE_Dynamic_Service<TAO_Codeset_Manager_Factory>::instance("TAO_Codeset"); + + if (cmf != 0) + { + return result; + } + + result += ACE_Service_Config::process_directive + (ace_svc_desc_TAO_Codeset_Manager_Factory,1); // force replacement + return result; +} + +TAO_END_VERSIONED_NAMESPACE_DECL |