/usr/include/tao/LocateRequest_Invocation_Adapter.h is in libtao-dev 6.0.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | // -*- C++ -*-
//=============================================================================
/**
* @file LocateRequest_Invocation_Adapter.h
*
* $Id: LocateRequest_Invocation_Adapter.h 79705 2007-09-24 07:45:37Z johnnyw $
*
* @author Balachandran Natarajan <bala@dre.vanderbilt.edu>
*/
//=============================================================================
#ifndef TAO_LOCATEREQUEST_INVOCATION_ADAPTER_H
#define TAO_LOCATEREQUEST_INVOCATION_ADAPTER_H
#include /**/ "ace/pre.h"
#include "tao/Policy_ForwardC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/Pseudo_VarOut_T.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Time_Value;
ACE_END_VERSIONED_NAMESPACE_DECL
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
class Object;
typedef Object *Object_ptr;
typedef TAO_Pseudo_Var_T<Object> Object_var;
}
class TAO_Stub;
namespace TAO
{
/**
* @class LocateRequest_Invocation_Adapter
*
* @brief Adapter class for locate request invocations.
*
* This class provides a look and feel similar to the
* TAO::Invocation_Adapter though the functionalities are
* different. For the record, IDL compiler doesn't know the
* existence of this class. This class is concerned with the
* creation and invocation of locate request invocations to the
* target object
*
* @todo Need to think what happens if the target is
* collocated. Looks like there are no ways to utilize the
* opportunity that may have been presented.
*/
class LocateRequest_Invocation_Adapter
{
public:
LocateRequest_Invocation_Adapter (CORBA::Object_ptr target);
/// Start the invocation on the target
void invoke (void);
/// Accessor to the inconsistent policy list
CORBA::PolicyList *get_inconsistent_policies (void);
private:
bool get_timeout (ACE_Time_Value &val);
/// Helper method that takes care of setting the profiles within
/// the stub object if the target gets forwarded
void object_forwarded (CORBA::Object_var &effective_target,
TAO_Stub *stub,
CORBA::Boolean permanent_forward);
private:
CORBA::Object_ptr target_;
CORBA::PolicyList_var list_;
};
}
TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /*TAO_LOCATEREQUEST_INVOCATION_ADAPTER_H*/
|