All pastes #253675 Raw Edit

Mine

public text v1 · immutable
#253675 ·published 2006-11-20 23:59 UTC
rendered paste body
#ifndef ITEM__H
#define ITEM__H

#include <string>
#include "point.h"

class Item {
public:
  // Constructors
  Item();
  Item(std::string& tName);
  Item(std::string& tName, Point& tP);
  Item(const Item& I);
  
  // Destructor
  ~Item();

  // Point Functions
  void SetPoint(int x, int y);
  void SetPoint(Point& tP);
  Point GetPoint() const;

  // Name Functions
  void SetName(std::string& tName);
  std::string GetName() const;

  // Serial Functions
  int GetSerial();

  // Utility Functions
  void Report();

  // Operators
  bool operator==(Item& I);
  //abstract Item operator=(Item& I);

protected:

private:
  Point P;
  std::string Name;
  int Serial;
  static int ICount;
};
#endif