summaryrefslogtreecommitdiff
path: root/TAO/tao/Resource_Factory.cpp
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2003-03-04 21:51:05 +0000
committerPhil Mesnier <mesnier_p@ociweb.com>2003-03-04 21:51:05 +0000
commit1175f1628843f1eeac015754ea0d2f96a928e095 (patch)
tree698d5c5f3ffd87a5ccc73bca31cdfe094c044a9b /TAO/tao/Resource_Factory.cpp
parent0d361059291b1efd3eb5bd2a8fee94296d01b540 (diff)
downloadATCD-1175f1628843f1eeac015754ea0d2f96a928e095.tar.gz
ChangeLog tag: Tue Mar 4 13:44:06 2003 Phil Mesnier <mesnier_p@ociweb.com>
Diffstat (limited to 'TAO/tao/Resource_Factory.cpp')
-rw-r--r--TAO/tao/Resource_Factory.cpp68
1 files changed, 68 insertions, 0 deletions
diff --git a/TAO/tao/Resource_Factory.cpp b/TAO/tao/Resource_Factory.cpp
index 22e921674a8..2334a75605e 100644
--- a/TAO/tao/Resource_Factory.cpp
+++ b/TAO/tao/Resource_Factory.cpp
@@ -8,6 +8,7 @@
#include "tao/Protocol_Factory.h"
#include "tao/ORB_Core.h"
#include "tao/Client_Strategy_Factory.h"
+#include "tao/Codeset_Translator_Factory.h"
ACE_RCSID (tao,
Resource_Factory,
@@ -48,6 +49,42 @@ TAO_Protocol_Item::factory (TAO_Protocol_Factory *factory,
this->factory_owner_ = owner;
}
+// Codeset Item
+TAO_Codeset_Item::TAO_Codeset_Item (const ACE_CString &name)
+ : name_ (name),
+ factory_ (0),
+ factory_owner_ (0)
+{
+}
+
+TAO_Codeset_Item::~TAO_Codeset_Item (void)
+{
+ if (this->factory_owner_ == 1)
+ delete this->factory_;
+}
+
+const ACE_CString &
+TAO_Codeset_Item::codeset_name (void)
+{
+ return this->name_;
+}
+
+TAO_Codeset_Translator_Factory *
+TAO_Codeset_Item::factory (void)
+{
+ return this->factory_;
+}
+
+void
+TAO_Codeset_Item::factory (TAO_Codeset_Translator_Factory *factory,
+ int owner)
+{
+ this->factory_ = factory;
+ this->factory_owner_ = owner;
+}
+
+// End of Codeset Item Class
+
TAO_Resource_Factory::TAO_Resource_Factory (void)
{
@@ -144,6 +181,26 @@ TAO_Resource_Factory::get_protocol_factories (void)
return 0;
}
+TAO_Codeset_Manager *
+TAO_Resource_Factory::get_codeset_manager (void)
+{
+ return 0;
+}
+
+TAO_Codeset_Translator_Factory *
+TAO_Resource_Factory::get_char_translator (CONV_FRAME::CodeSetId ,
+ CONV_FRAME::CodeSetId )
+{
+ return 0;
+}
+
+TAO_Codeset_Translator_Factory *
+TAO_Resource_Factory::get_wchar_translator (CONV_FRAME::CodeSetId ,
+ CONV_FRAME::CodeSetId )
+{
+ return 0;
+}
+
int
TAO_Resource_Factory::init_protocol_factories (void)
{
@@ -199,14 +256,25 @@ TAO_Resource_Factory::load_default_protocols (void)
template class ACE_Dynamic_Service<TAO_Resource_Factory>;
template class ACE_Node<TAO_Protocol_Item*>;
+///
+template class ACE_Node<TAO_Codeset_Item*>;
+///
template class ACE_Unbounded_Set<TAO_Protocol_Item*>;
template class ACE_Unbounded_Set_Iterator<TAO_Protocol_Item*>;
+///
+template class ACE_Unbounded_Set<TAO_Codeset_Item*>;
+template class ACE_Unbounded_Set_Iterator<TAO_Codeset_Item*>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Dynamic_Service<TAO_Resource_Factory>
#pragma instantiate ACE_Node<TAO_Protocol_Item*>
+///
+#pragma instantiate ACE_Node<TAO_Codeset_Item*>
+///
#pragma instantiate ACE_Unbounded_Set<TAO_Protocol_Item*>
#pragma instantiate ACE_Unbounded_Set_Iterator<TAO_Protocol_Item*>
+#pragma instantiate ACE_Unbounded_Set<TAO_Codeset_Item*>
+#pragma instantiate ACE_Unbounded_Set_Iterator<TAO_Codeset_Item*>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */