1 /**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22 #include <precomp.h>
23 #include <ary/cpp/c_tydef.hxx>
24
25
26 // NOT FULLY DECLARED SERVICES
27 #include <slots.hxx>
28 #include "c_slots.hxx"
29
30
31
32
33 namespace ary
34 {
35 namespace cpp
36 {
37
Typedef(const String & i_sLocalName,Cid i_nOwner,E_Protection i_eProtection,Lid i_nFile,Tid i_nDescribingType)38 Typedef::Typedef( const String & i_sLocalName,
39 Cid i_nOwner,
40 E_Protection i_eProtection,
41 Lid i_nFile,
42 Tid i_nDescribingType )
43 : aEssentials( i_sLocalName,
44 i_nOwner,
45 i_nFile ),
46 nDescribingType(i_nDescribingType),
47 eProtection(i_eProtection)
48 {
49 }
50
~Typedef()51 Typedef::~Typedef()
52 {
53
54 }
55
56 const String &
inq_LocalName() const57 Typedef::inq_LocalName() const
58 {
59 return aEssentials.LocalName();
60 }
61
62 Cid
inq_Owner() const63 Typedef::inq_Owner() const
64 {
65 return aEssentials.Owner();
66 }
67
68 Lid
inq_Location() const69 Typedef::inq_Location() const
70 {
71 return aEssentials.Location();
72 }
73
74 void
do_Accept(csv::ProcessorIfc & io_processor) const75 Typedef::do_Accept(csv::ProcessorIfc & io_processor) const
76 {
77 csv::CheckedCall(io_processor,*this);
78 }
79
80 ClassId
get_AryClass() const81 Typedef::get_AryClass() const
82 {
83 return class_id;
84 }
85
86
87 } // namespace cpp
88 } // namespace ary
89