Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:58

0001 #ifndef Cond_Summary_h
0002 #define Cond_Summary_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 #include <string>
0007 #include <iosfwd>
0008 
0009 namespace cond {
0010 
0011   /** Base class for summary of condition payoad
0012   */
0013   class Summary {
0014   public:
0015     Summary();
0016     virtual ~Summary();
0017 
0018     // short message (just content to be used in a table)
0019     virtual void shortMessage(std::ostream& os) const = 0;
0020 
0021     // long message (ot be used in pop-up, single views)
0022     virtual void longMessage(std::ostream& os) const = 0;
0023 
0024     COND_SERIALIZABLE;
0025   };
0026 
0027 }  // namespace cond
0028 
0029 inline std::ostream& operator<<(std::ostream& os, cond::Summary const& s) {
0030   s.shortMessage(os);
0031   return os;
0032 }
0033 
0034 #endif