Panda3D
 All Classes Functions Variables Enumerations
bamReaderParam.h
1 // Filename: bamReaderParam.h
2 // Created by: jason (13Jun00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef BAMREADERPARAM_H
16 #define BAMREADERPARAM_H
17 
18 #include "pandabase.h"
19 
20 #include "factoryParam.h"
21 
22 class BamReader;
23 class DatagramIterator;
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : BamReaderParam
27 // Description : The parameters that are passed through the Factory to
28 // any object constructing itself from a Bam file.
29 ////////////////////////////////////////////////////////////////////
30 class EXPCL_PANDA_PUTIL BamReaderParam : public FactoryParam {
31 public:
32  INLINE const DatagramIterator &get_iterator();
33  INLINE BamReader *get_manager();
34 
35 private:
36  const DatagramIterator &_iterator;
37  BamReader *_manager;
38 
39 public:
40  INLINE BamReaderParam(const DatagramIterator &dgi, BamReader *manager);
41  INLINE ~BamReaderParam();
42 
43 public:
44  virtual TypeHandle get_type() const {
45  return get_class_type();
46  }
47  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
48  static TypeHandle get_class_type() {
49  return _type_handle;
50  }
51  static void init_type() {
52  FactoryParam::init_type();
53  register_type(_type_handle, "BamReaderParam",
54  FactoryParam::get_class_type());
55  }
56 
57 private:
58  static TypeHandle _type_handle;
59 };
60 
61 #include "bamReaderParam.I"
62 
63 #endif
64 
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Definition: bamReader.h:122
The base class of any number of specific pieces of parameter information that might be passed to a Fa...
Definition: factoryParam.h:34
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:85
The parameters that are passed through the Factory to any object constructing itself from a Bam file...