1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00
ULib/tests/ulib/plugin/product.h
2015-01-23 17:24:36 +01:00

21 lines
419 B
C++

// product.h
#ifndef product_H
#define product_H
#include <ulib/dynamic/plugin.h>
class Product {
public:
Product() {}
virtual ~Product() { (void) write(1, U_CONSTANT_TO_PARAM("distruttore Product\n")); }
virtual void print(ostream& os) const = 0;
friend ostream& operator<<(ostream& os, const Product& base);
};
ostream& operator<<(ostream& os, const Product& base) { base.print(os); return os; }
#endif