blob: 66acd3b71fd4c1847dfcc2ef4725b9e42c1ae594 [file] [log] [blame]
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef _IDLC_ASTPARAMETER_HXX_
#define _IDLC_ASTPARAMETER_HXX_
#include <idlc/astmember.hxx>
enum Direction { DIR_IN, DIR_OUT, DIR_INOUT };
class AstParameter: public AstMember {
public:
AstParameter(
Direction direction, bool rest, AstType const * type,
rtl::OString const & name, AstScope * scope):
AstMember(NT_parameter, type, name, scope), m_direction(direction),
m_rest(rest) {}
virtual ~AstParameter() {}
Direction getDirection() const { return m_direction; }
bool isRest() const { return m_rest; }
private:
Direction m_direction;
bool m_rest;
};
#endif