7 #ifndef __STDAIR_BOM_KEYABSTRACT_HPP
8 #define __STDAIR_BOM_KEYABSTRACT_HPP
36 virtual void toStream (std::ostream& ioOut)
const {}
56 virtual const std::string
toString()
const {
return std::string(
"Hello!"); }
71 template <
class charT,
class traits>
73 std::basic_ostream<charT, traits>&
74 operator<< (std::basic_ostream<charT, traits>& ioOut,
81 std::basic_ostringstream<charT,traits> ostr;
99 template <
class charT,
class traits>
101 std::basic_istream<charT, traits>&
109 #endif // __STDAIR_BOM_KEYABSTRACT_HPP
virtual void toStream(std::ostream &ioOut) const
Dump a Business Object Key into an output stream.
Handle on the StdAir library context.
Base class for the keys of Business Object Model (BOM) layer.
virtual void fromStream(std::istream &ioIn)
Read a Business Object Key from an input stream.
std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &ioIn, stdair::KeyAbstract &ioKey)
virtual const std::string toString() const
Get the serialised version of the Business Object Key.
virtual ~KeyAbstract()
Default destructor.