Added GPLv3 headers all over the place.
[fail.git] / src / core / idlast / signal.h
blob2bf50eaf96518aa8eb8ea27518117029389d6632
1 /*
2 Fail game engine
3 Copyright 2007 Antoine Chavasse <a.chavasse@gmail.com>
5 This file is part of Fail.
7 Fail is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 3
9 as published by the Free Software Foundation.
11 Fail is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef FAIL_IDLAST_SIGNAL_H_
20 #define FAIL_IDLAST_SIGNAL_H_
22 #include <vector>
23 #include "named.h"
24 #include "type.h"
25 #include "flags.h"
27 namespace fail { namespace idlast
29 class Signal : public Named, public Flaggable, public Element, public RefCounted
31 public:
32 Signal( std::string Name_, std::string FileName_, unsigned long Line_ ) :
33 Named( Name_ ),
34 Element( FileName_, Line_ )
36 //std::cout << "new method '" << Name_ << "'\n";
39 typedef std::vector< Pointer< Type > > paramlist_type;
41 void addParamType( Type* pType_ )
43 m_ParamTypes.push_back( pType_ );
46 const paramlist_type& getParamTypes() const
48 return m_ParamTypes;
51 void resolveRefs( const Class* pClass_, DependencyList& DepList_ ) const;
53 private:
54 paramlist_type m_ParamTypes;
55 };
58 #endif