Panda3D
 All Classes Functions Variables Enumerations
bamFile.I
1 // Filename: bamFile.I
2 // Created by: drose (02Jul00)
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 
16 ////////////////////////////////////////////////////////////////////
17 // Function: BamFile::is_valid_read
18 // Access: Public
19 // Description: Returns true if the Bam file is open and ready for
20 // reading with no errors so far detected, or false
21 // otherwise.
22 ////////////////////////////////////////////////////////////////////
23 INLINE bool BamFile::
24 is_valid_read() const {
25  return (_reader != (BamReader *)NULL);
26 }
27 
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: BamFile::is_valid_write
31 // Access: Public
32 // Description: Returns true if the Bam file is open and ready for
33 // writing with no errors so far detected, or false
34 // otherwise.
35 ////////////////////////////////////////////////////////////////////
36 INLINE bool BamFile::
37 is_valid_write() const {
38  return (_writer != (BamWriter *)NULL);
39 }
40 
bool is_valid_write() const
Returns true if the Bam file is open and ready for writing with no errors so far detected, or false otherwise.
Definition: bamFile.I:37
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Definition: bamReader.h:122
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
Definition: bamWriter.h:73
bool is_valid_read() const
Returns true if the Bam file is open and ready for reading with no errors so far detected, or false otherwise.
Definition: bamFile.I:24