Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / orbsvcs / examples / ORT / Gateway_ObjRef_Factory.h
blob3a3889856dfdc85064297b626bc4aa88f38f9acf
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:
18 Gateway_ObjRef_Factory (
19 Gateway::Object_Factory_ptr gateway_object_factory,
20 PortableInterceptor::ObjectReferenceFactory *old_factory);
22 virtual ::CORBA::ValueBase *_copy_value (void);
24 virtual CORBA::Object_ptr make_object (
25 const char *repository_id,
26 const PortableInterceptor::ObjectId &id);
28 private:
29 Gateway::Object_Factory_var gateway_object_factory_;
31 PortableInterceptor::ObjectReferenceFactory_var old_factory_;
34 #endif /* GATEWAY_OBJREF_FACTORY_H */