Panda3D
Loading...
Searching...
No Matches
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
17template class ParamValue<int>;
18template class ParamValue<double>;
19
20/**
21 *
22 */
23void EventParameter::
24output(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}
A non-template base class of ParamValue (below), which serves mainly to define the placeholder for th...
Definition paramValue.h:31
A handy class object for storing simple values (like integers or strings) passed along with an Event ...
Definition paramValue.h:103
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.