loaderFileTypeBam.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Filename: loaderFileTypeBam.h
  2. // Created by: drose (20Jun00)
  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. #ifndef LOADERFILETYPEBAM_H
  15. #define LOADERFILETYPEBAM_H
  16. #include "pandabase.h"
  17. #include "loaderFileType.h"
  18. ////////////////////////////////////////////////////////////////////
  19. // Class : LoaderFileTypeBam
  20. // Description : This defines the Loader interface to read Bam files.
  21. ////////////////////////////////////////////////////////////////////
  22. class EXPCL_PANDA_PGRAPH LoaderFileTypeBam : public LoaderFileType {
  23. public:
  24. LoaderFileTypeBam();
  25. virtual string get_name() const;
  26. virtual string get_extension() const;
  27. virtual bool supports_compressed() const;
  28. virtual PT(PandaNode) load_file(const Filename &path, const LoaderOptions &options,
  29. BamCacheRecord *record) const;
  30. public:
  31. static TypeHandle get_class_type() {
  32. return _type_handle;
  33. }
  34. static void init_type() {
  35. LoaderFileType::init_type();
  36. register_type(_type_handle, "LoaderFileTypeBam",
  37. LoaderFileType::get_class_type());
  38. }
  39. virtual TypeHandle get_type() const {
  40. return get_class_type();
  41. }
  42. virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
  43. private:
  44. static TypeHandle _type_handle;
  45. };
  46. #endif