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 10cdf0e10cSrcweir * 11*d291ea28SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 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. 19cdf0e10cSrcweir * 20*d291ea28SAndrew Rist *************************************************************/ 21cdf0e10cSrcweir 22cdf0e10cSrcweir #include <precomp.h> 23cdf0e10cSrcweir #include <ary/cpp/c_vari.hxx> 24cdf0e10cSrcweir 25cdf0e10cSrcweir 26cdf0e10cSrcweir // NOT FULLY DECLARED SERVICES 27cdf0e10cSrcweir 28cdf0e10cSrcweir 29cdf0e10cSrcweir 30cdf0e10cSrcweir namespace ary 31cdf0e10cSrcweir { 32cdf0e10cSrcweir namespace cpp 33cdf0e10cSrcweir { 34cdf0e10cSrcweir 35cdf0e10cSrcweir Variable::Variable( const String & i_sLocalName, 36cdf0e10cSrcweir Cid i_nOwner, 37cdf0e10cSrcweir E_Protection i_eProtection, 38cdf0e10cSrcweir Lid i_nFile, 39cdf0e10cSrcweir Tid i_nType, 40cdf0e10cSrcweir VariableFlags i_aFlags, 41cdf0e10cSrcweir const String & i_sArraySize, 42cdf0e10cSrcweir const String & i_sInitValue ) 43cdf0e10cSrcweir : aEssentials( i_sLocalName, 44cdf0e10cSrcweir i_nOwner, 45cdf0e10cSrcweir i_nFile ), 46cdf0e10cSrcweir nType(i_nType), 47cdf0e10cSrcweir eProtection(i_eProtection), 48cdf0e10cSrcweir aFlags(i_aFlags), 49cdf0e10cSrcweir sArraySize(i_sArraySize), 50cdf0e10cSrcweir sInitialisation(i_sInitValue) 51cdf0e10cSrcweir { 52cdf0e10cSrcweir } 53cdf0e10cSrcweir 54cdf0e10cSrcweir Variable::~Variable() 55cdf0e10cSrcweir { 56cdf0e10cSrcweir } 57cdf0e10cSrcweir 58cdf0e10cSrcweir const String & 59cdf0e10cSrcweir Variable::inq_LocalName() const 60cdf0e10cSrcweir { 61cdf0e10cSrcweir return aEssentials.LocalName(); 62cdf0e10cSrcweir } 63cdf0e10cSrcweir 64cdf0e10cSrcweir Cid 65cdf0e10cSrcweir Variable::inq_Owner() const 66cdf0e10cSrcweir { 67cdf0e10cSrcweir return aEssentials.Owner(); 68cdf0e10cSrcweir } 69cdf0e10cSrcweir 70cdf0e10cSrcweir Lid 71cdf0e10cSrcweir Variable::inq_Location() const 72cdf0e10cSrcweir { 73cdf0e10cSrcweir return aEssentials.Location(); 74cdf0e10cSrcweir } 75cdf0e10cSrcweir 76cdf0e10cSrcweir void 77cdf0e10cSrcweir Variable::do_Accept(csv::ProcessorIfc & io_processor) const 78cdf0e10cSrcweir { 79cdf0e10cSrcweir csv::CheckedCall(io_processor,*this); 80cdf0e10cSrcweir } 81cdf0e10cSrcweir 82cdf0e10cSrcweir ClassId 83cdf0e10cSrcweir Variable::get_AryClass() const 84cdf0e10cSrcweir { 85cdf0e10cSrcweir return class_id; 86cdf0e10cSrcweir } 87cdf0e10cSrcweir 88cdf0e10cSrcweir 89cdf0e10cSrcweir } // namespace cpp 90cdf0e10cSrcweir } // namespace ary 91