1 #ifndef __OPENTREP_OPENTREP_ABSTRACT_HPP
2 #define __OPENTREP_OPENTREP_ABSTRACT_HPP
24 virtual void toStream (std::ostream& ioOut)
const = 0;
31 virtual void fromStream (std::istream& ioIn) = 0;
36 virtual std::string
toString()
const = 0;
58 template <
class charT,
class traits>
60 std::basic_ostream<charT, traits>&
61 operator<< (std::basic_ostream<charT, traits>& ioOut,
68 std::basic_ostringstream<charT,traits> ostr;
73 iStructure.toStream (ostr);
86 template <
class charT,
class traits>
88 std::basic_istream<charT, traits>&
96 #endif // __OPENTREP_OPENTREP_ABSTRACT_HPP
virtual ~OPENTREP_Abstract()
virtual void fromStream(std::istream &ioIn)=0
virtual std::string toString() const =0
virtual void toStream(std::ostream &ioOut) const =0
OPENTREP_Abstract(const OPENTREP_Abstract &)
std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &ioIn, OPENTREP::OPENTREP_Abstract &ioStucture)