Panda3D
bamReaderParam.h
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 bamReaderParam.h
10  * @author jason
11  * @date 2000-06-13
12  */
13 
14 #ifndef BAMREADERPARAM_H
15 #define BAMREADERPARAM_H
16 
17 #include "pandabase.h"
18 
19 #include "factoryParam.h"
20 
21 class BamReader;
22 class DatagramIterator;
23 
24 /**
25  * The parameters that are passed through the Factory to any object
26  * constructing itself from a Bam file.
27  */
28 class EXPCL_PANDA_PUTIL BamReaderParam : public FactoryParam {
29 public:
30  INLINE const DatagramIterator &get_iterator();
31  INLINE BamReader *get_manager();
32 
33 private:
34  const DatagramIterator &_iterator;
35  BamReader *_manager;
36 
37 public:
38  INLINE BamReaderParam(const DatagramIterator &dgi, BamReader *manager);
39  INLINE ~BamReaderParam();
40 
41 public:
42  virtual TypeHandle get_type() const {
43  return get_class_type();
44  }
45  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
46  static TypeHandle get_class_type() {
47  return _type_handle;
48  }
49  static void init_type() {
50  FactoryParam::init_type();
51  register_type(_type_handle, "BamReaderParam",
52  FactoryParam::get_class_type());
53  }
54 
55 private:
56  static TypeHandle _type_handle;
57 };
58 
59 #include "bamReaderParam.I"
60 
61 #endif
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Definition: bamReader.h:110
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition: register_type.I:22
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The base class of any number of specific pieces of parameter information that might be passed to a Fa...
Definition: factoryParam.h:30
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A class to retrieve the individual data elements previously stored in a Datagram.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
The parameters that are passed through the Factory to any object constructing itself from a Bam file.