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 "tplparam.hxx" 24cdf0e10cSrcweir 25cdf0e10cSrcweir 26cdf0e10cSrcweir // NOT FULLY DEFINED SERVICES 27cdf0e10cSrcweir #include <ary/cpp/c_gate.hxx> 28cdf0e10cSrcweir #include <ary/cpp/cp_type.hxx> 29cdf0e10cSrcweir 30cdf0e10cSrcweir 31cdf0e10cSrcweir namespace ary 32cdf0e10cSrcweir { 33cdf0e10cSrcweir namespace cpp 34cdf0e10cSrcweir { 35cdf0e10cSrcweir namespace ut 36cdf0e10cSrcweir { 37cdf0e10cSrcweir TplParameter_Type(Tid i_nType)38cdf0e10cSrcweirTplParameter_Type::TplParameter_Type( Tid i_nType ) 39cdf0e10cSrcweir : nType(i_nType) 40cdf0e10cSrcweir { 41cdf0e10cSrcweir } 42cdf0e10cSrcweir ~TplParameter_Type()43cdf0e10cSrcweirTplParameter_Type::~TplParameter_Type() 44cdf0e10cSrcweir { 45cdf0e10cSrcweir } 46cdf0e10cSrcweir 47cdf0e10cSrcweir intt Compare(const TemplateParameter & i_rOther) const48cdf0e10cSrcweirTplParameter_Type::Compare( const TemplateParameter & i_rOther ) const 49cdf0e10cSrcweir { 50cdf0e10cSrcweir const TplParameter_Type * pOther 51cdf0e10cSrcweir = dynamic_cast< const TplParameter_Type* >( &i_rOther ); 52cdf0e10cSrcweir if (pOther == 0) 53cdf0e10cSrcweir return -1; 54cdf0e10cSrcweir 55cdf0e10cSrcweir return static_cast<long>(nType.Value()) 56cdf0e10cSrcweir - static_cast<long>(pOther->nType.Value()); 57cdf0e10cSrcweir } 58cdf0e10cSrcweir 59cdf0e10cSrcweir void Get_Text(StreamStr & o_rOut,const ary::cpp::Gate & i_rGate) const60cdf0e10cSrcweirTplParameter_Type::Get_Text( StreamStr & o_rOut, 61cdf0e10cSrcweir const ary::cpp::Gate & i_rGate ) const 62cdf0e10cSrcweir { 63cdf0e10cSrcweir i_rGate.Types().Get_TypeText( o_rOut, nType ); 64cdf0e10cSrcweir } 65cdf0e10cSrcweir 66cdf0e10cSrcweir } // namespace ut 67cdf0e10cSrcweir } // namespace cpp 68cdf0e10cSrcweir } // namespace ary 69