Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tao / Resource_Factory.cpp
blob9a7299be1a68c89f6614c85380456c3ac7a8fca5
1 #include "tao/Resource_Factory.h"
2 #include "tao/Protocol_Factory.h"
3 #include "tao/orbconf.h"
4 #include "ace/ACE.h"
6 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
8 TAO_Protocol_Item::TAO_Protocol_Item (const ACE_CString &name)
9 : name_ (name),
10 factory_ (nullptr),
11 factory_owner_ (0)
15 TAO_Protocol_Item::~TAO_Protocol_Item ()
17 if (this->factory_owner_ == 1)
18 delete this->factory_;
21 const ACE_CString &
22 TAO_Protocol_Item::protocol_name ()
24 return this->name_;
27 TAO_Protocol_Factory *
28 TAO_Protocol_Item::factory ()
30 return this->factory_;
33 void
34 TAO_Protocol_Item::factory (TAO_Protocol_Factory *factory,
35 int owner)
37 this->factory_ = factory;
38 this->factory_owner_ = owner;
41 // **********************************************************************
43 // ********************************************************************
45 TAO_Resource_Factory::TAO_Resource_Factory ()
49 TAO_Resource_Factory::~TAO_Resource_Factory ()
53 int
54 TAO_Resource_Factory::use_locked_data_blocks () const
56 return 0;
59 ACE_Reactor *
60 TAO_Resource_Factory::get_reactor ()
62 return nullptr;
65 void
66 TAO_Resource_Factory::reclaim_reactor (ACE_Reactor *)
68 return;
71 TAO_Connector_Registry *
72 TAO_Resource_Factory::get_connector_registry ()
74 return nullptr;
77 TAO_Acceptor_Registry *
78 TAO_Resource_Factory::get_acceptor_registry ()
80 return nullptr;
83 void
84 TAO_Resource_Factory::use_local_memory_pool (bool)
88 ACE_Allocator *
89 TAO_Resource_Factory::input_cdr_dblock_allocator ()
91 return nullptr;
94 ACE_Allocator *
95 TAO_Resource_Factory::input_cdr_buffer_allocator ()
97 return nullptr;
100 ACE_Allocator *
101 TAO_Resource_Factory::input_cdr_msgblock_allocator ()
103 return nullptr;
107 TAO_Resource_Factory::input_cdr_allocator_type_locked ()
109 return -1;
112 ACE_Allocator *
113 TAO_Resource_Factory::output_cdr_dblock_allocator ()
115 return nullptr;
118 ACE_Allocator *
119 TAO_Resource_Factory::output_cdr_buffer_allocator ()
121 return nullptr;
124 ACE_Allocator *
125 TAO_Resource_Factory::output_cdr_msgblock_allocator ()
127 return nullptr;
130 ACE_Allocator *
131 TAO_Resource_Factory::amh_response_handler_allocator ()
133 return nullptr;
136 ACE_Allocator *
137 TAO_Resource_Factory::ami_response_handler_allocator ()
139 return nullptr;
142 TAO_ProtocolFactorySet *
143 TAO_Resource_Factory::get_protocol_factories ()
145 return nullptr;
149 TAO_Resource_Factory::init_protocol_factories ()
151 return -1;
154 TAO_Codeset_Manager *
155 TAO_Resource_Factory::codeset_manager ()
157 return nullptr;
161 TAO_Resource_Factory::cache_maximum () const
163 return TAO_CONNECTION_CACHE_MAXIMUM;
167 TAO_Resource_Factory::purge_percentage () const
169 return 0;
173 TAO_Resource_Factory::max_muxed_connections () const
175 return 0;
180 TAO_Resource_Factory::get_parser_names (char **&, int &)
182 return 0;
185 ACE_Lock *
186 TAO_Resource_Factory::create_cached_connection_lock ()
188 return nullptr;
192 TAO_Resource_Factory::locked_transport_cache ()
194 return 0;
198 TAO_Resource_Factory::load_default_protocols ()
200 return 0;
203 TAO_END_VERSIONED_NAMESPACE_DECL