blob: 682405edeb22958f06fbd1341179fad209ab549e (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
// -*- C++ -*-
//=============================================================================
/**
* @file IOGR_Maker.h
*
* $Id$
*
* @author Huang-Ming Huang <hh1@cse.wustl.edu>
*/
//=============================================================================
#ifndef IOGR_MAKER_H
#define IOGR_MAKER_H
#include "orbsvcs/FT_CORBA_ORBC.h"
#include "tao/IORManipulation/IORManipulation.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class IOGR_Maker
{
public:
IOGR_Maker();
void init(CORBA::ORB_ptr orb);
/// instance() will only return a valid object after an
/// instance is explicitly created by client and init() is called.
static IOGR_Maker* instance();
/// Create a new object reference by merging the profiles lists in the
/// supplied list of one or more object references.
CORBA::Object_ptr merge_iors(const TAO_IOP::TAO_IOR_Manipulation::IORList&);
/// Create a new IOGR (with FT_PRIMARY and FT_GROUP components) by merging
/// the profiles lists in the supplied list of one or more object references.
CORBA::Object_ptr make_iogr(const TAO_IOP::TAO_IOR_Manipulation::IORList&,
CORBA::ULong object_group_ref_version);
/// Make an new IOGR with obj as primary.
CORBA::Object_ptr forge_iogr(CORBA::Object_ptr obj);
CORBA::Object_ptr ior_replace_key(CORBA::Object_ptr obj,
const TAO::ObjectKey& key);
bool copy_ft_group_component(CORBA::Object_ptr obj);
void set_ft_domain_id(const char*);
void set_group_id(CORBA::ULongLong);
void set_ref_version(CORBA::ULong);
CORBA::ULong increment_ref_version();
CORBA::ULong get_ref_version() const;
private:
void set_tag_components(CORBA::Object_ptr merged,
CORBA::Object_ptr primary,
FT::TagFTGroupTaggedComponent& ft_tag_component);
TAO_IOP::TAO_IOR_Manipulation_var iorm_;
FT::TagFTGroupTaggedComponent ft_tag_component_;
};
TAO_END_VERSIONED_NAMESPACE_DECL
#endif
|