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
31
32
33
34
|
#ifndef Cond_Summary_h
#define Cond_Summary_h
#include "CondFormats/Serialization/interface/Serializable.h"
#include <string>
#include <iosfwd>
namespace cond {
/** Base class for summary of condition payoad
*/
class Summary {
public:
Summary();
virtual ~Summary();
// short message (just content to be used in a table)
virtual void shortMessage(std::ostream& os) const = 0;
// long message (ot be used in pop-up, single views)
virtual void longMessage(std::ostream& os) const = 0;
COND_SERIALIZABLE;
};
} // namespace cond
inline std::ostream& operator<<(std::ostream& os, cond::Summary const& s) {
s.shortMessage(os);
return os;
}
#endif
|