1 #ifndef __TRADEMGEN_TRADEMGEN_ABSTRACT_HPP
2 #define __TRADEMGEN_TRADEMGEN_ABSTRACT_HPP
21 virtual void toStream (std::ostream& ioOut)
const = 0;
25 virtual void fromStream (std::istream& ioIn) = 0;
28 virtual std::string
toString()
const = 0;
46 template <
class charT,
class traits>
48 std::basic_ostream<charT, traits>&
49 operator<< (std::basic_ostream<charT, traits>& ioOut,
56 std::basic_ostringstream<charT,traits> ostr;
61 iStructure.toStream (ostr);
74 template <
class charT,
class traits>
76 std::basic_istream<charT, traits>&
84 #endif // __TRADEMGEN_TRADEMGEN_ABSTRACT_HPP