Panda3D
panda
src
event
eventParameter.cxx
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 eventParameter.cxx
10
* @author drose
11
* @date 1999-02-08
12
*/
13
14
#include "
eventParameter.h
"
15
#include "
dcast.h
"
16
17
template
class
ParamValue<int>
;
18
template
class
ParamValue<double>
;
19
20
/**
21
*
22
*/
23
void
EventParameter::
24
output(std::ostream &out)
const
{
25
if
(_ptr ==
nullptr
) {
26
out <<
"(empty)"
;
27
28
}
else
if
(_ptr->is_of_type(ParamValueBase::get_class_type())) {
29
const
ParamValueBase
*sv_ptr;
30
DCAST_INTO_V(sv_ptr, _ptr);
31
sv_ptr->output(out);
32
33
}
else
{
34
out << _ptr->get_type();
35
}
36
}
eventParameter.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
dcast.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
ParamValue
A handy class object for storing simple values (like integers or strings) passed along with an Event ...
Definition:
paramValue.h:103
ParamValueBase
A non-template base class of ParamValue (below), which serves mainly to define the placeholder for th...
Definition:
paramValue.h:31
Generated on Sat Jan 11 2020 15:15:01 for Panda3D by
1.8.17