xref: /trunk/main/autodoc/source/ary/cpp/c_vari.cxx (revision d291ea28)
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_vari.hxx>
24 
25 
26 // NOT FULLY DECLARED SERVICES
27 
28 
29 
30 namespace ary
31 {
32 namespace cpp
33 {
34 
Variable(const String & i_sLocalName,Cid i_nOwner,E_Protection i_eProtection,Lid i_nFile,Tid i_nType,VariableFlags i_aFlags,const String & i_sArraySize,const String & i_sInitValue)35 Variable::Variable( const String  &     i_sLocalName,
36                     Cid                 i_nOwner,
37                     E_Protection        i_eProtection,
38                     Lid                 i_nFile,
39                     Tid                 i_nType,
40                     VariableFlags       i_aFlags,
41                     const String  &     i_sArraySize,
42                     const String  &     i_sInitValue )
43     :   aEssentials( i_sLocalName,
44                      i_nOwner,
45                      i_nFile ),
46    		nType(i_nType),
47 	    eProtection(i_eProtection),
48         aFlags(i_aFlags),
49         sArraySize(i_sArraySize),
50         sInitialisation(i_sInitValue)
51 {
52 }
53 
~Variable()54 Variable::~Variable()
55 {
56 }
57 
58 const String  &
inq_LocalName() const59 Variable::inq_LocalName() const
60 {
61 	return aEssentials.LocalName();
62 }
63 
64 Cid
inq_Owner() const65 Variable::inq_Owner() const
66 {
67 	return aEssentials.Owner();
68 }
69 
70 Lid
inq_Location() const71 Variable::inq_Location() const
72 {
73 	return aEssentials.Location();
74 }
75 
76 void
do_Accept(csv::ProcessorIfc & io_processor) const77 Variable::do_Accept(csv::ProcessorIfc & io_processor) const
78 {
79     csv::CheckedCall(io_processor,*this);
80 }
81 
82 ClassId
get_AryClass() const83 Variable::get_AryClass() const
84 {
85 	return class_id;
86 }
87 
88 
89 }   // namespace cpp
90 }   // namespace ary
91