blob: 5dd030c9e39e82b10b756597cfacdc0419174119 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* Printable.h
*
* Created on: Mar 16, 2011
* Author: jakob
*/
#ifndef PRINTABLE_H_
#define PRINTABLE_H_
#include <string>
namespace vhc {
/** Classe abstraite héritée par tout objet imprimable. */
class Printable {
public:
/** Retourne une représentation en chaîne de caractères de cet objet imprimable. */
virtual std::string toString() const = 0;
};
/** Ajoute la représentation en chaîne de <code>p</code> à <code>output</code>. */
std::ostream& operator<< (std::ostream& output, const Printable& p);
}
#endif /* PRINTABLE_H_ */
|