Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / CodecFactory / CodecFactory.h
blob36729d3dcb32f9f7aede4a5268bd9303f805e5a5
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file CodecFactory.h
7 * @author Carlos O'Ryan <coryan@uci.edu>
8 */
9 //=============================================================================
11 #ifndef TAO_CODECFACTORY_H
12 #define TAO_CODECFACTORY_H
14 #include /**/ "ace/pre.h"
16 #include "tao/CodecFactory/codecfactory_export.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #define TAO_CODECFACTORY_SAFE_INCLUDE
23 #include "tao/CodecFactory/IOP_CodecC.h"
24 #undef TAO_CODECFACTORY_SAFE_INCLUDE
26 #include "tao/Object_Loader.h"
27 #include "ace/Service_Config.h"
29 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
31 class TAO_CODECFACTORY_Export TAO_CodecFactory_Loader
32 : public TAO_Object_Loader
34 public:
35 /// Creates a Codec factory and returns it.
36 virtual CORBA::Object_ptr create_object (CORBA::ORB_ptr orb,
37 int argc,
38 ACE_TCHAR *argv []);
40 /// Used to force the initialization of the ORB code.
41 static int Initializer ();
44 static int
45 TAO_Requires_CodecFactory_Initializer = TAO_CodecFactory_Loader::Initializer ();
47 ACE_STATIC_SVC_DECLARE (TAO_CodecFactory_Loader)
48 ACE_FACTORY_DECLARE (TAO_CODECFACTORY, TAO_CodecFactory_Loader)
50 TAO_END_VERSIONED_NAMESPACE_DECL
52 #include /**/ "ace/post.h"
54 #endif /* TAO_CODECFACTORY_H */