blob: 99619a369d34d0a4dde3cae3571720aa8e3d2b2e (
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
|
// -*- 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 */
class IOGR_Maker
{
public:
IOGR_Maker();
void init(CORBA::ORB_ptr orb
ACE_ENV_ARG_DECL);
/// 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&
ACE_ENV_ARG_DECL);
/// 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&
ACE_ENV_ARG_DECL);
/// Make an new IOGR with obj as primary.
CORBA::Object_ptr forge_iogr(CORBA::Object_ptr obj
ACE_ENV_ARG_DECL);
CORBA::Object_ptr ior_replace_key(CORBA::Object_ptr obj,
const TAO::ObjectKey& key
ACE_ENV_ARG_DECL);
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
ACE_ENV_ARG_DECL);
TAO_IOP::TAO_IOR_Manipulation_var iorm_;
FT::TagFTGroupTaggedComponent ft_tag_component_;
};
#endif
|