typedObject.cxx 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Filename: typedObject.cxx
  2. // Created by: drose (11May01)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. #include "typedObject.h"
  6. #include "config_express.h"
  7. TypeHandle TypedObject::_type_handle;
  8. ////////////////////////////////////////////////////////////////////
  9. // Function: TypedObject::Destructor
  10. // Access: Public, Virtual
  11. // Description:
  12. ////////////////////////////////////////////////////////////////////
  13. TypedObject::
  14. ~TypedObject() {
  15. }
  16. ////////////////////////////////////////////////////////////////////
  17. // Function: TypedObject::get_type
  18. // Access: Public, Virtual
  19. // Description:
  20. ////////////////////////////////////////////////////////////////////
  21. TypeHandle TypedObject::
  22. get_type() const {
  23. // Normally, this function should never be called, because it is a
  24. // pure virtual function. If it is called, you probably called
  25. // get_type() on a recently-destructed object.
  26. express_cat.warning()
  27. << "TypedObject::get_type() called!\n";
  28. return _type_handle;
  29. }