blob: 9228f6f7462e1cba74199c3b7e71c3caf0727bbf (
plain)
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
|
// -*- C++ -*-
//=============================================================================
/**
* @file CSI_Utils.h
*
* @author Ossama Othman <ossama@dre.vanderbilt.edu>
*/
//=============================================================================
#ifndef TAO_CSI_UTILS_H
#define TAO_CSI_UTILS_H
// No need to include "ace/pre.h" and "ace/post.h". This header and
// the declared types/variables are not meant to be used outside TAO's
// CSIv2 implementation.
#include "tao/orbconf.h"
#include "tao/Versioned_Namespace.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// Forward declarations
namespace IOP
{
struct ServiceContext;
}
namespace CSI
{
class SASContextBody;
}
namespace TAO
{
namespace CSI_Utils
{
/// Populate given IOP::ServiceContext with given CSI::SASContextBody.
void create_sas_service_context (const CSI::SASContextBody & sas_context,
IOP::ServiceContext & sc);
/// Extract CSI::SASContextBody from given IOP::ServiceContext.
/**
* @return Success == true, Failure == false.
*/
bool extract_sas_service_context (const IOP::ServiceContext & sc,
CSI::SASContextBody & sas_context);
}
}
TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_CSI_UTILS_H */
|