PointSystem.h 593 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // Created by jovian on 15/01/18.
  3. //
  4. #ifndef SERIALIZATION_POINTSYSTEM_H
  5. #define SERIALIZATION_POINTSYSTEM_H
  6. #include <ostream>
  7. #include "Serializable.h"
  8. #define MAX_SIZE 10
  9. class PointSystem : public Serializable {
  10. // Methods
  11. public:
  12. PointSystem();
  13. void addPoint(int p);
  14. void display();
  15. friend std::ostream &operator<<(std::ostream &os, const PointSystem &pointSystem);
  16. friend std::istream &operator>>(std::istream &is, PointSystem &pointSystem);
  17. // Attributes
  18. private:
  19. int points[MAX_SIZE];
  20. int nb;
  21. };
  22. #endif //SERIALIZATION_POINTSYSTEM_H