Panda3D
 All Classes Functions Variables Enumerations
fltUnsupportedRecord.h
1 // Filename: fltUnsupportedRecord.h
2 // Created by: drose (24Aug00)
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 FLTUNSUPPORTEDRECORD_H
16 #define FLTUNSUPPORTEDRECORD_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "fltRecord.h"
21 
22 #include "datagram.h"
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : FltUnsupportedRecord
26 // Description :
27 ////////////////////////////////////////////////////////////////////
29 public:
31 
32  virtual void output(ostream &out) const;
33 
34 protected:
35  virtual bool extract_record(FltRecordReader &reader);
36  virtual bool build_record(FltRecordWriter &writer) const;
37 
38 private:
39  FltOpcode _opcode;
40  Datagram _datagram;
41 
42 public:
43  virtual TypeHandle get_type() const {
44  return get_class_type();
45  }
46  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
47  static TypeHandle get_class_type() {
48  return _type_handle;
49  }
50  static void init_type() {
51  FltRecord::init_type();
52  register_type(_type_handle, "FltUnsupportedRecord",
53  FltRecord::get_class_type());
54  }
55 
56 private:
57  static TypeHandle _type_handle;
58 
59  friend class FltHeader;
60 };
61 
62 #endif
63 
64 
This class writes a sequence of FltRecords to an ostream, handling opcode and size counts properly...
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
virtual void output(ostream &out) const
Writes a quick one-line description of the bead, but not its children.
This is the first bead in the file, the top of the bead hierarchy, and the primary interface to readi...
Definition: fltHeader.h:48
The base class for all kinds of records in a MultiGen OpenFlight file.
Definition: fltRecord.h:40
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
Definition: datagram.h:43