dcSubatomicType.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // Filename: dcSubatomicType.h
  2. // Created by: drose (05Oct00)
  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 DCSUBATOMICTYPE_H
  19. #define DCSUBATOMICTYPE_H
  20. #include "dcbase.h"
  21. BEGIN_PUBLISH
  22. ////////////////////////////////////////////////////////////////////
  23. // Enum : DCSubatomicType
  24. // Description : This defines the numeric type of each element of a
  25. // DCAtomicField; that is, the particular values that
  26. // will get added to the message when the atomic field
  27. // method is called.
  28. ////////////////////////////////////////////////////////////////////
  29. enum DCSubatomicType {
  30. ST_int8,
  31. ST_int16,
  32. ST_int32,
  33. ST_int64,
  34. ST_uint8,
  35. ST_uint16,
  36. ST_uint32,
  37. ST_uint64,
  38. ST_float64,
  39. ST_string, // a human-printable string
  40. ST_blob, // any variable length message, stored as a string
  41. ST_int16array,
  42. ST_int32array,
  43. ST_uint16array,
  44. ST_uint32array,
  45. ST_int8array,
  46. ST_uint8array,
  47. // A special-purpose array: a list of alternating uint32 and uint8
  48. // values. In Python, this becomes a list of 2-tuples.
  49. ST_uint32uint8array,
  50. // New additions should be added at the end to prevent the file hash
  51. // code from changing.
  52. ST_invalid
  53. };
  54. END_PUBLISH
  55. ostream &operator << (ostream &out, DCSubatomicType type);
  56. #endif