Data.cpp 741 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #include "Data.h"
  2. Data::Data()
  3. {
  4. }
  5. Data::Data(const Data& orig)
  6. {
  7. }
  8. Data::~Data()
  9. {
  10. }
  11. float Data::getFloat() const
  12. {
  13. throw Exception("get float not possible");
  14. }
  15. void Data::setFloat(float f)
  16. {
  17. throw Exception("set float not possible");
  18. }
  19. bool Data::getBool() const
  20. {
  21. throw Exception("get bool not possible");
  22. }
  23. void Data::setBool(bool b)
  24. {
  25. throw Exception("set bool not possible");
  26. }
  27. string Data::getString() const
  28. {
  29. throw Exception("get string not possible");
  30. }
  31. void Data::setString(string s)
  32. {
  33. throw Exception("set string not possible");
  34. }
  35. std::ostream& operator<<(std::ostream& os, const Data& d)
  36. {
  37. d.print(os);
  38. return os;
  39. }
  40. void Data::print(std::ostream& os) const
  41. {
  42. os << "_no_print_";
  43. }