~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- C++ -*- */
2
 
// TypedefDef_i.cpp,v 1.3 2003/03/12 16:17:51 parsons Exp
3
 
 
4
 
#include "Repository_i.h"
5
 
#include "TypedefDef_i.h"
6
 
 
7
 
ACE_RCSID (IFRService, 
8
 
           TypedefDef_i, 
9
 
           "TypedefDef_i.cpp,v 1.3 2003/03/12 16:17:51 parsons Exp")
10
 
 
11
 
TAO_TypedefDef_i::TAO_TypedefDef_i (
12
 
    TAO_Repository_i *repo
13
 
  )
14
 
  : TAO_IRObject_i (repo),
15
 
    TAO_Contained_i (repo),
16
 
    TAO_IDLType_i (repo)
17
 
{
18
 
}
19
 
 
20
 
TAO_TypedefDef_i::~TAO_TypedefDef_i (void)
21
 
{
22
 
}
23
 
 
24
 
CORBA::Contained::Description *
25
 
TAO_TypedefDef_i::describe (ACE_ENV_SINGLE_ARG_DECL)
26
 
  ACE_THROW_SPEC ((CORBA::SystemException))
27
 
{
28
 
  TAO_IFR_READ_GUARD_RETURN (0);
29
 
 
30
 
  this->update_key (ACE_ENV_SINGLE_ARG_PARAMETER);
31
 
  ACE_CHECK_RETURN (0);
32
 
 
33
 
  return this->describe_i (ACE_ENV_SINGLE_ARG_PARAMETER);
34
 
}
35
 
 
36
 
CORBA::Contained::Description *
37
 
TAO_TypedefDef_i::describe_i (ACE_ENV_SINGLE_ARG_DECL)
38
 
  ACE_THROW_SPEC ((CORBA::SystemException))
39
 
{
40
 
  CORBA::Contained::Description *desc_ptr = 0;
41
 
  ACE_NEW_THROW_EX (desc_ptr,
42
 
                    CORBA::Contained::Description,
43
 
                    CORBA::NO_MEMORY ());
44
 
  ACE_CHECK_RETURN (0);
45
 
 
46
 
  CORBA::Contained::Description_var retval = desc_ptr;
47
 
 
48
 
  retval->kind = this->def_kind (ACE_ENV_SINGLE_ARG_PARAMETER);
49
 
  ACE_CHECK_RETURN (0);
50
 
 
51
 
  CORBA::TypeDescription td;
52
 
 
53
 
  ACE_CHECK_RETURN (0);
54
 
  td.name = this->name_i (ACE_ENV_SINGLE_ARG_PARAMETER);
55
 
 
56
 
  td.id = this->id_i (ACE_ENV_SINGLE_ARG_PARAMETER);
57
 
  ACE_CHECK_RETURN (0);
58
 
 
59
 
  ACE_TString container_id;
60
 
 
61
 
  this->repo_->config ()->get_string_value (this->section_key_,
62
 
                                            "container_id",
63
 
                                            container_id);
64
 
 
65
 
  td.defined_in = container_id.c_str ();
66
 
 
67
 
  td.version = this->version_i (ACE_ENV_SINGLE_ARG_PARAMETER);
68
 
  ACE_CHECK_RETURN (0);
69
 
 
70
 
  td.type = this->type_i (ACE_ENV_SINGLE_ARG_PARAMETER);
71
 
  ACE_CHECK_RETURN (0);
72
 
 
73
 
  retval->value <<= td;
74
 
 
75
 
  return retval._retn ();
76
 
}