p3dIntObject.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Filename: p3dIntObject.h
  2. // Created by: drose (30Jun09)
  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 P3DINTOBJECT_H
  15. #define P3DINTOBJECT_H
  16. #include "p3d_plugin_common.h"
  17. #include "p3dObject.h"
  18. ////////////////////////////////////////////////////////////////////
  19. // Class : P3DIntObject
  20. // Description : An object type that contains an integer value.
  21. ////////////////////////////////////////////////////////////////////
  22. class P3DIntObject : public P3DObject {
  23. public:
  24. P3DIntObject(int value);
  25. P3DIntObject(const P3DIntObject &copy);
  26. public:
  27. virtual P3D_object_type get_type();
  28. virtual bool get_bool();
  29. virtual int get_int();
  30. virtual void make_string(string &value);
  31. private:
  32. int _value;
  33. };
  34. #endif