ここでは、サーバアプリケーションを制御するためのインタフェースを提供するBOAクラスについて説明します。
class CORBA
{
typedef ImplementationDef_ptr *ImplementationDef;
typedef InterfaceDef_ptr *InterfaceDef;
class BOA
{
public:
Object_ptr create(
const ReferenceData &,
InterfaceDef _ptr,
ImplementationDef_ptr,
CORBA::Environment& );
void dispose(Object_ptr, CORBA::Environment& );
ReferenceData *get_id(Object _ptr, CORBA::Environment& );
void impl_is_ready(ImplementationDef_ptr, CORBA::Environment& );
void deactivate_impl(ImplementationDef_ptr, CORBA::Environment& );
void obj_is_ready(Object_ptr, ImplementationDef_ptr, CORBA::Environment& );
void deactivate_obj(Object_ptr, CORBA::Environment& );
};
class ReferenceData
{
public:
ReferenceData();
ReferenceData( ULong max );
ReferenceData(
ULong max,
ULong length,
Request_ptr *value,
Boolean release = FALSE );
~ReferenceData();
private:
ULong _maximum;
ULong _length;
CORBA::octet *_buffer;
};
};