2000-04-01 21:31:57 +02:00
|
|
|
/*
|
2024-02-18 17:22:50 +01:00
|
|
|
* Copyright (c) 2004-2024 Stephen Williams (steve@icarus.com)
|
2000-04-01 21:31:57 +02:00
|
|
|
*
|
|
|
|
|
* This source code is free software; you can redistribute it
|
|
|
|
|
* and/or modify it in source code form under the terms of the GNU
|
|
|
|
|
* General Public License as published by the Free Software
|
|
|
|
|
* Foundation; either version 2 of the License, or (at your option)
|
|
|
|
|
* any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-08-29 03:41:23 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2000-04-01 21:31:57 +02:00
|
|
|
*/
|
|
|
|
|
|
2001-07-25 05:10:48 +02:00
|
|
|
# include "config.h"
|
|
|
|
|
|
2000-04-01 21:31:57 +02:00
|
|
|
# include "PEvent.h"
|
|
|
|
|
|
2024-02-18 17:22:50 +01:00
|
|
|
PEvent::PEvent(perm_string n, unsigned lexical_pos)
|
|
|
|
|
: name_(n), lexical_pos_(lexical_pos)
|
2000-04-01 21:31:57 +02:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PEvent::~PEvent()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2004-02-19 07:57:10 +01:00
|
|
|
perm_string PEvent::name() const
|
2000-04-01 21:31:57 +02:00
|
|
|
{
|
|
|
|
|
return name_;
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-24 00:17:31 +02:00
|
|
|
PNamedItem::SymbolType PEvent::symbol_type() const
|
|
|
|
|
{
|
|
|
|
|
return EVENT;
|
|
|
|
|
}
|