Panda3D
panda
src
event
event.I
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file event.I
10
* @author drose
11
* @date 2001-05-15
12
*/
13
14
/**
15
*
16
*/
17
INLINE
void
Event::
18
set_name(
const
std::string &name) {
19
_name = name;
20
}
21
22
/**
23
* Resets the Event's name to empty.
24
*/
25
INLINE
void
Event::
26
clear_name
() {
27
_name =
""
;
28
}
29
30
/**
31
* Returns true if the Event has a nonempty name set, false if the name is
32
* empty.
33
*/
34
INLINE
bool
Event::
35
has_name
()
const
{
36
return
!_name.empty();
37
}
38
39
/**
40
*
41
*/
42
INLINE
const
std::string &Event::
43
get_name()
const
{
44
return
_name;
45
}
46
47
48
INLINE std::ostream &operator << (std::ostream &out,
const
Event
&n) {
49
n.output(out);
50
return
out;
51
}
Event::clear_name
void clear_name()
Resets the Event's name to empty.
Definition:
event.I:26
Event::has_name
bool has_name() const
Returns true if the Event has a nonempty name set, false if the name is empty.
Definition:
event.I:35
Event
A named event, possibly with parameters.
Definition:
event.h:33
Generated on Mon Sep 14 2020 15:06:51 for Panda3D by
1.8.20