CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Summary.h
Go to the documentation of this file.
1 #ifndef Cond_Summary_h
2 #define Cond_Summary_h
3 
5 
6 #include <string>
7 #include <iosfwd>
8 
9 namespace cond {
10 
13  class Summary {
14  public:
15  Summary();
16  virtual ~Summary();
17 
18  // short message (just content to be used in a table)
19  virtual void shortMessage(std::ostream& os) const = 0;
20 
21  // long message (ot be used in pop-up, single views)
22  virtual void longMessage(std::ostream& os) const = 0;
23 
25  };
26 
27 } // namespace cond
28 
29 inline std::ostream& operator<<(std::ostream& os, cond::Summary const& s) {
30  s.shortMessage(os);
31  return os;
32 }
33 
34 #endif
virtual void shortMessage(std::ostream &os) const =0
virtual ~Summary()
Definition: Summary.cc:7
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
#define COND_SERIALIZABLE
Definition: Serializable.h:39
virtual void longMessage(std::ostream &os) const =0