summaryrefslogtreecommitdiff
path: root/src/main/Printable.h
blob: f7d3f9bd1e96f29a6d7708e01602a7d522d71c7c (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
/*
 * Printable.h
 *
 *  Created on: Mar 16, 2011
 *      Author: jakob
 */

#ifndef PRINTABLE_H_
#define PRINTABLE_H_

#include <string>

namespace vhc {

class Printable {

public:

	/** Retourne une representation en chaine de cet objet imprimable. */
	virtual std::string toString() const = 0;

};

std::ostream& operator<< (std::ostream& output, const Printable& p);

}

#endif /* PRINTABLE_H_ */