Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / TAO / tao / DynamicAny / DynamicAny.h
blob6c64249fdca881fb4aed04e1fc757dc4d677383d
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file DynamicAny.h
7 * @author Carlos O'Ryan <coryan@uci.edu>
8 */
9 //=============================================================================
12 #ifndef TAO_DYNAMICANY_H
13 #define TAO_DYNAMICANY_H
14 #include /**/ "ace/pre.h"
16 #include "tao/DynamicAny/dynamicany_export.h"
18 #define TAO_DYNAMICANY_SAFE_INCLUDE
19 #include "tao/DynamicAny/DynamicAnyC.h"
20 #undef TAO_DYNAMICANY_SAFE_INCLUDE
22 #if !defined (ACE_LACKS_PRAGMA_ONCE)
23 # pragma once
24 #endif /* ACE_LACKS_PRAGMA_ONCE */
26 #include "tao/Object_Loader.h"
27 #include "ace/Service_Config.h"
29 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
31 class TAO_DynamicAny_Export TAO_DynamicAny_Loader : public TAO_Object_Loader
33 public:
34 /// Constructor
35 TAO_DynamicAny_Loader ();
37 /// Creates a DynamicAny factory and returns it.
38 virtual CORBA::Object_ptr create_object (CORBA::ORB_ptr orb,
39 int argc,
40 ACE_TCHAR *argv []);
42 /// Used to force the initialization of the ORB code.
43 static int Initializer ();
46 static int
47 TAO_Requires_DynamicAny_Initializer = TAO_DynamicAny_Loader::Initializer ();
50 ACE_STATIC_SVC_DECLARE (TAO_DynamicAny_Loader)
51 ACE_FACTORY_DECLARE (TAO_DynamicAny, TAO_DynamicAny_Loader)
53 TAO_END_VERSIONED_NAMESPACE_DECL
55 #include /**/ "ace/post.h"
56 #endif /* TAO_DYNAMICANY_H */