TrueReality  v0.1.1912
Invokable.cpp
Go to the documentation of this file.
1 /*
2 * True Reality Open Source Game and Simulation Engine
3 * Copyright © 2021 Acid Rain Studios LLC
4 *
5 * This library is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU Lesser General Public License as published by the Free
7 * Software Foundation; either version 3.0 of the License, or (at your option)
8 * any later version.
9 *
10 * This library is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this library; if not, write to the Free Software Foundation, Inc.,
17 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * @author David Guthrie
20 * @author Maxim Serebrennik
21 */
22 
23 
24 #include <trManager/Invokable.h>
25 
26 
27 namespace trManager
28 {
29  const trUtil::RefStr InvokableFunctorCallerBase::CLASS_TYPE = trUtil::RefStr("trManager::InvokableFunctorCallerBase");
33 
34  const trUtil::RefStr Invokable::CLASS_TYPE = trUtil::RefStr("trManager::Invokable");
35 
38  {
39  }
40 
43  {
44  mCaller->Call(message);
45  }
46 }
static const trUtil::RefStr CLASS_TYPE
Definition: Invokable.h:88
virtual ~Invokable()
referenced classes should always have protected destructor
Definition: Invokable.cpp:37
A string wrapper that will make sure that all of the strings with the same value will point to the sa...
Definition: RefStr.h:50
void Invoke(const trManager::MessageBase &message)
Invoke this.
Definition: Invokable.cpp:42
static const trUtil::RefStr CLASS_TYPE
Definition: Invokable.h:40
This is the base class for all the messages in TR.
Definition: MessageBase.h:40
trBase::SmrtPtr< InvokableFunctorCallerBase > mCaller
Definition: Invokable.h:131