Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / TAO / orbsvcs / examples / ORT / Gateway_ObjRef_Factory.h
blob8f62819a96abf3d147a76876e95c08732e81b676
1 // -*- C++ -*-
2 #ifndef GATEWAY_OBJREF_FACTORY_H
3 #define GATEWAY_OBJREF_FACTORY_H
5 #include "ObjectReferenceFactoryC.h"
6 #include "GatewayC.h"
8 #if !defined (ACE_LACKS_PRAGMA_ONCE)
9 # pragma once
10 #endif /* ACE_LACKS_PRAGMA_ONCE */
12 class Gateway_ObjRef_Factory
13 : public CORBA::DefaultValueRefCountBase,
14 public virtual OBV_ORT::ObjectReferenceFactory
16 public:
17 Gateway_ObjRef_Factory (
18 Gateway::Object_Factory_ptr gateway_object_factory,
19 PortableInterceptor::ObjectReferenceFactory *old_factory);
21 virtual ::CORBA::ValueBase *_copy_value ();
23 virtual CORBA::Object_ptr make_object (
24 const char *repository_id,
25 const PortableInterceptor::ObjectId &id);
27 private:
28 Gateway::Object_Factory_var gateway_object_factory_;
30 PortableInterceptor::ObjectReferenceFactory_var old_factory_;
33 #endif /* GATEWAY_OBJREF_FACTORY_H */