p3dUndefinedObject.cxx 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Filename: p3dUndefinedObject.cxx
  2. // Created by: drose (07Jul09)
  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. #include "p3dUndefinedObject.h"
  15. ////////////////////////////////////////////////////////////////////
  16. // Function: P3DUndefinedObject::Constructor
  17. // Access: Public
  18. // Description:
  19. ////////////////////////////////////////////////////////////////////
  20. P3DUndefinedObject::
  21. P3DUndefinedObject() {
  22. }
  23. ////////////////////////////////////////////////////////////////////
  24. // Function: P3DUndefinedObject::get_type
  25. // Access: Public, Virtual
  26. // Description: Returns the fundamental type of this kind of object.
  27. ////////////////////////////////////////////////////////////////////
  28. P3D_object_type P3DUndefinedObject::
  29. get_type() {
  30. return P3D_OT_undefined;
  31. }
  32. ////////////////////////////////////////////////////////////////////
  33. // Function: P3DUndefinedObject::get_bool
  34. // Access: Public, Virtual
  35. // Description: Returns the object value coerced to a boolean, if
  36. // possible.
  37. ////////////////////////////////////////////////////////////////////
  38. bool P3DUndefinedObject::
  39. get_bool() {
  40. return false;
  41. }
  42. ////////////////////////////////////////////////////////////////////
  43. // Function: P3DUndefinedObject::make_string
  44. // Access: Public, Virtual
  45. // Description: Fills the indicated C++ string object with the value
  46. // of this object coerced to a string.
  47. ////////////////////////////////////////////////////////////////////
  48. void P3DUndefinedObject::
  49. make_string(string &value) {
  50. value = "Undefined";
  51. }