mirror of
https://github.com/AdaCore/PolyORB.git
synced 2026-02-12 13:01:15 -08:00
[imported from CVS by cvs2p4 at 2000/03/21 18:27:10] [Imported from Perforce change 634 at 2006-12-01 18:26:40] Subversion-branch: /trunk/adabroker Subversion-revision: 31390
80 lines
3.6 KiB
C++
80 lines
3.6 KiB
C++
//--------------------------------------------------------------------------//
|
|
// //
|
|
// ADABROKER COMPONENTS //
|
|
// //
|
|
// A D A B R O K E R //
|
|
// //
|
|
// $Revision: 1.6 $
|
|
// //
|
|
// Copyright (C) 1999-2000 ENST Paris University, France. //
|
|
// //
|
|
// AdaBroker is free software; you can redistribute it and/or modify it //
|
|
// under terms of the GNU General Public License as published by the Free //
|
|
// Software Foundation; either version 2, or (at your option) any later //
|
|
// version. AdaBroker is distributed in the hope that it will be useful, //
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- //
|
|
// TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public //
|
|
// License for more details. You should have received a copy of the GNU //
|
|
// General Public License distributed with AdaBroker; see file COPYING. If //
|
|
// not, write to the Free Software Foundation, 59 Temple Place - Suite 330, //
|
|
// Boston, MA 02111-1307, USA. //
|
|
// //
|
|
// As a special exception, if other files instantiate generics from this //
|
|
// unit, or you link this unit with other files to produce an executable, //
|
|
// this unit does not by itself cause the resulting executable to be //
|
|
// covered by the GNU General Public License. This exception does not //
|
|
// however invalidate any other reasons why the executable file might be //
|
|
// covered by the GNU Public License. //
|
|
// //
|
|
// AdaBroker is maintained by ENST Paris University. //
|
|
// (email: broker@inf.enst.fr) //
|
|
// //
|
|
//--------------------------------------------------------------------------//
|
|
#ifndef __PROXYOBJECTFACTORY_C2ADA_H__
|
|
#define __PROXYOBJECTFACTORY_C2ADA_H__
|
|
|
|
#ifndef __CORBA_H_EXTERNAL_GUARD__
|
|
#define __CORBA_H_EXTERNAL_GUARD__
|
|
#include <omniORB2/CORBA.h>
|
|
#endif
|
|
|
|
class proxyObjectFactory_C2Ada : proxyObjectFactory {
|
|
|
|
public:
|
|
|
|
proxyObjectFactory_C2Ada (const char * repoID, int interface)
|
|
: proxyObjectFactory ()
|
|
{
|
|
pd_interface = interface;
|
|
pd_repoID = repoID;
|
|
}
|
|
// Default constructor.
|
|
|
|
virtual ~proxyObjectFactory_C2Ada () {}
|
|
// Default destructor.
|
|
|
|
virtual const char* irRepoId() const;
|
|
// Return the RepoId of the object.
|
|
|
|
virtual CORBA::Object_ptr newProxyObject (Rope * r,
|
|
CORBA::Octet * key,
|
|
size_t keysize,
|
|
IOP::TaggedProfileList * profiles,
|
|
CORBA::Boolean release);
|
|
// Return a new proxy object.
|
|
|
|
virtual CORBA::Boolean is_a (const char * repoId) const;
|
|
// Return True if repoId corresponds to the local repoId.
|
|
|
|
private:
|
|
|
|
const char * pd_repoID;
|
|
int pd_interface;
|
|
|
|
};
|
|
|
|
void createProxyObjectFactory (const char * repoID, int interface);
|
|
// Procedure called from the Ada code.
|
|
|
|
#endif
|