31class EXPCL_PANDA_PUTIL ParamValueBase :
public TypedWritableReferenceCount {
33 INLINE ParamValueBase();
36 virtual ~ParamValueBase();
38 virtual void output(std::ostream &out)
const=0;
42 return get_class_type();
44 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
48 static void init_type() {
49 TypedWritableReferenceCount::init_type();
51 TypedWritableReferenceCount::get_class_type());
62class EXPCL_PANDA_PUTIL ParamTypedRefCount :
public ParamValueBase {
65 virtual ~ParamTypedRefCount();
72 virtual void output(std::ostream &out)
const;
79 return get_class_type();
81 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
82 static TypeHandle get_class_type() {
85 static void init_type() {
86 ParamValueBase::init_type();
88 ParamValueBase::get_class_type());
92 static TypeHandle _type_handle;
103class ParamValue :
public ParamValueBase {
108 INLINE ParamValue(
const Type &value);
109 INLINE
virtual ~ParamValue();
112 INLINE
void set_value(
const Type &value);
117 INLINE
virtual void output(std::ostream &out)
const;
134 static void init_type(
const std::string &type_name =
"UndefinedParamValue") {
135 ParamValueBase::init_type();
137 (type_name, ParamValueBase::get_class_type());
139 virtual TypeHandle get_type()
const {
140 return get_class_type();
142 virtual TypeHandle force_init_type() {
145 return get_class_type();
149 static TypeHandle _type_handle;
196#ifdef STDFLOAT_DOUBLE
197typedef ParamVecBase2d ParamVecBase2;
198typedef ParamVecBase3d ParamVecBase3;
199typedef ParamVecBase4d ParamVecBase4;
201typedef ParamMatrix3d ParamMatrix3;
202typedef ParamMatrix4d ParamMatrix4;
204typedef ParamVecBase2f ParamVecBase2;
205typedef ParamVecBase3f ParamVecBase3;
206typedef ParamVecBase4f ParamVecBase4;
208typedef ParamMatrix3f ParamMatrix3;
209typedef ParamMatrix4f ParamMatrix4;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
get_value
Retrieves the value stored in the parameter.
virtual TypeHandle get_value_type() const
Retrieves the type of the value stored in the parameter.
virtual TypeHandle get_value_type() const
Returns the type of the underlying value.
A handy class object for storing simple values (like integers or strings) passed along with an Event ...
set_value
Changes the value stored in the parameter.
virtual TypeHandle get_value_type() const
Retrieves the type of the value stored in the parameter.
get_value
Retrieves the value stored in the parameter.
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
static void register_with_read_factory()
Tells the BamReader how to create objects of type ParamValue.
TypeHandle is the identifier used to differentiate C++ class types.
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
Base class for objects that can be written to and read from Bam files.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
TypeHandle register_dynamic_type(const std::string &name)
This is essentially similar to register_type(), except that it doesn't store a reference to any TypeH...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.