summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/CSIv2/CSI_Utils.h
blob: 2f1ec3c1fc6948f5b4600cf956721922a950eb63 (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
// -*- C++ -*-

//=============================================================================
/**
 * @file CSI_Util.h
 *
 * $Id$
 *
 * @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.

// Forward declarations
namespace IOP
{
  class 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 == 1, Failure == 0.
     */
    int extract_sas_service_context (const IOP::ServiceContext & sc,
                                     CSI::SASContextBody & sas_context);
  }
}

#endif  /* TAO_CSI_UTILS_H */