eggObject.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Filename: eggObject.h
  2. // Created by: drose (17Jan99)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef EGGOBJECT_H
  19. #define EGGOBJECT_H
  20. #include <pandabase.h>
  21. #include <typedReferenceCount.h>
  22. #ifndef WIN32_VC
  23. class ostream;
  24. #endif
  25. ////////////////////////////////////////////////////////////////////
  26. // Class : EggObject
  27. // Description : The highest-level base class in the egg directory.
  28. // (Almost) all things egg inherit from this.
  29. ////////////////////////////////////////////////////////////////////
  30. class EXPCL_PANDAEGG EggObject : public TypedReferenceCount {
  31. public:
  32. INLINE EggObject();
  33. INLINE EggObject(const EggObject &copy);
  34. INLINE EggObject &operator = (const EggObject &copy);
  35. virtual ~EggObject();
  36. public:
  37. static TypeHandle get_class_type() {
  38. return _type_handle;
  39. }
  40. static void init_type() {
  41. TypedReferenceCount::init_type();
  42. register_type(_type_handle, "EggObject",
  43. TypedReferenceCount::get_class_type());
  44. }
  45. virtual TypeHandle get_type() const {
  46. return get_class_type();
  47. }
  48. virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
  49. private:
  50. static TypeHandle _type_handle;
  51. };
  52. #include "eggObject.I"
  53. #endif