tagfwd.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * libnbt++ - A library for the Minecraft Named Binary Tag format.
  3. * Copyright (C) 2013, 2015 ljfa-ag
  4. *
  5. * This file is part of libnbt++.
  6. *
  7. * libnbt++ is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU Lesser General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * libnbt++ is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public License
  18. * along with libnbt++. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. /** @file
  21. * @brief Provides forward declarations for all tag classes
  22. */
  23. #ifndef TAGFWD_H_INCLUDED
  24. #define TAGFWD_H_INCLUDED
  25. #include <cstdint>
  26. namespace nbt
  27. {
  28. class tag;
  29. template<class T> class tag_primitive;
  30. typedef tag_primitive<int8_t> tag_byte;
  31. typedef tag_primitive<int16_t> tag_short;
  32. typedef tag_primitive<int32_t> tag_int;
  33. typedef tag_primitive<int64_t> tag_long;
  34. typedef tag_primitive<float> tag_float;
  35. typedef tag_primitive<double> tag_double;
  36. class tag_string;
  37. template<class T> class tag_array;
  38. typedef tag_array<int8_t> tag_byte_array;
  39. typedef tag_array<int32_t> tag_int_array;
  40. typedef tag_array<int64_t> tag_long_array;
  41. class tag_list;
  42. class tag_compound;
  43. }
  44. #endif // TAGFWD_H_INCLUDED