bamFile.I 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. // Filename: bamFile.I
  2. // Created by: drose (02Jul00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. ////////////////////////////////////////////////////////////////////
  6. // Function: BamFile::is_valid_read
  7. // Access: Public
  8. // Description: Returns true if the Bam file is open and ready for
  9. // reading with no errors so far detected, or false
  10. // otherwise.
  11. ////////////////////////////////////////////////////////////////////
  12. INLINE bool BamFile::
  13. is_valid_read() const {
  14. return (_reader != (BamReader *)NULL);
  15. }
  16. ////////////////////////////////////////////////////////////////////
  17. // Function: BamFile::is_valid_write
  18. // Access: Public
  19. // Description: Returns true if the Bam file is open and ready for
  20. // writing with no errors so far detected, or false
  21. // otherwise.
  22. ////////////////////////////////////////////////////////////////////
  23. INLINE bool BamFile::
  24. is_valid_write() const {
  25. return (_writer != (BamWriter *)NULL);
  26. }