1*d291ea28SAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3*d291ea28SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d291ea28SAndrew Rist * or more contributor license agreements. See the NOTICE file
5*d291ea28SAndrew Rist * distributed with this work for additional information
6*d291ea28SAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*d291ea28SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d291ea28SAndrew Rist * "License"); you may not use this file except in compliance
9*d291ea28SAndrew Rist * with the License. You may obtain a copy of the License at
10*d291ea28SAndrew Rist *
11*d291ea28SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12*d291ea28SAndrew Rist *
13*d291ea28SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d291ea28SAndrew Rist * software distributed under the License is distributed on an
15*d291ea28SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d291ea28SAndrew Rist * KIND, either express or implied. See the License for the
17*d291ea28SAndrew Rist * specific language governing permissions and limitations
18*d291ea28SAndrew Rist * under the License.
19*d291ea28SAndrew Rist *
20*d291ea28SAndrew Rist *************************************************************/
21cdf0e10cSrcweir
22cdf0e10cSrcweir #include <precomp.h>
23cdf0e10cSrcweir #include "it_xnameroom.hxx"
24cdf0e10cSrcweir
25cdf0e10cSrcweir
26cdf0e10cSrcweir // NOT FULLY DEFINED SERVICES
27cdf0e10cSrcweir #include <cosv/tpl/processor.hxx>
28cdf0e10cSrcweir #include <cosv/tpl/tpltools.hxx>
29cdf0e10cSrcweir #include <ary/idl/i_gate.hxx>
30cdf0e10cSrcweir #include <ary/idl/ip_type.hxx>
31cdf0e10cSrcweir
32cdf0e10cSrcweir
33cdf0e10cSrcweir
34cdf0e10cSrcweir namespace ary
35cdf0e10cSrcweir {
36cdf0e10cSrcweir namespace idl
37cdf0e10cSrcweir {
38cdf0e10cSrcweir
39cdf0e10cSrcweir
ExplicitNameRoom()40cdf0e10cSrcweir ExplicitNameRoom::ExplicitNameRoom()
41cdf0e10cSrcweir : aImpl()
42cdf0e10cSrcweir {
43cdf0e10cSrcweir }
44cdf0e10cSrcweir
ExplicitNameRoom(const String & i_sName,const ExplicitNameRoom & i_rParent)45cdf0e10cSrcweir ExplicitNameRoom::ExplicitNameRoom( const String & i_sName,
46cdf0e10cSrcweir const ExplicitNameRoom & i_rParent )
47cdf0e10cSrcweir : aImpl( i_sName, i_rParent.aImpl, i_rParent.TypeId() )
48cdf0e10cSrcweir {
49cdf0e10cSrcweir }
50cdf0e10cSrcweir
~ExplicitNameRoom()51cdf0e10cSrcweir ExplicitNameRoom::~ExplicitNameRoom()
52cdf0e10cSrcweir {
53cdf0e10cSrcweir }
54cdf0e10cSrcweir
55cdf0e10cSrcweir ClassId
get_AryClass() const56cdf0e10cSrcweir ExplicitNameRoom::get_AryClass() const
57cdf0e10cSrcweir {
58cdf0e10cSrcweir return class_id;
59cdf0e10cSrcweir }
60cdf0e10cSrcweir
61cdf0e10cSrcweir void
do_Accept(csv::ProcessorIfc & io_processor) const62cdf0e10cSrcweir ExplicitNameRoom::do_Accept( csv::ProcessorIfc & io_processor ) const
63cdf0e10cSrcweir {
64cdf0e10cSrcweir csv::CheckedCall(io_processor, *this);
65cdf0e10cSrcweir }
66cdf0e10cSrcweir
67cdf0e10cSrcweir void
inq_Get_Text(StringVector & o_module,String &,Ce_id &,int &,const Gate &) const68cdf0e10cSrcweir ExplicitNameRoom::inq_Get_Text( StringVector & o_module,
69cdf0e10cSrcweir String & , // o_name
70cdf0e10cSrcweir Ce_id & , // o_nRelatedCe
71cdf0e10cSrcweir int & , // o_nSequemceCount
72cdf0e10cSrcweir const Gate & ) const // i_rGate
73cdf0e10cSrcweir {
74cdf0e10cSrcweir StringVector::const_iterator it = NameChain_Begin();
75cdf0e10cSrcweir if ( it != NameChain_End()
76cdf0e10cSrcweir ? (*it).empty()
77cdf0e10cSrcweir : false )
78cdf0e10cSrcweir { // Don't put out the root global namespace
79cdf0e10cSrcweir ++it;
80cdf0e10cSrcweir }
81cdf0e10cSrcweir
82cdf0e10cSrcweir for ( ;
83cdf0e10cSrcweir it != NameChain_End();
84cdf0e10cSrcweir ++it )
85cdf0e10cSrcweir {
86cdf0e10cSrcweir o_module.push_back(*it);
87cdf0e10cSrcweir }
88cdf0e10cSrcweir }
89cdf0e10cSrcweir
90cdf0e10cSrcweir
91cdf0e10cSrcweir
92cdf0e10cSrcweir
93cdf0e10cSrcweir } // namespace idl
94cdf0e10cSrcweir } // namespace ary
95