00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CEYLAN_TEXT_DISPLAYABLE_H_
00028 #define CEYLAN_TEXT_DISPLAYABLE_H_
00029
00030
00031 #include "CeylanDisplayable.h"
00032
00033
00034 #include <string>
00035 #include <list>
00036 #include <iosfwd>
00037
00038
00039 namespace Ceylan
00040 {
00041
00042
00043
00059 class CEYLAN_DLL TextDisplayable : public Displayable
00060 {
00061
00062
00063 public:
00064
00065
00066
00068 TextDisplayable()
00069 {
00070
00071 }
00072
00073
00075 virtual ~TextDisplayable() throw()
00076 {
00077
00078 }
00079
00080
00091 virtual const std::string toString( Ceylan::VerbosityLevels level
00092 = Ceylan::high ) const = 0 ;
00093
00094
00095
00096
00097
00098
00113 static const std::string ToString(
00114 std::list<TextDisplayable*> displayables,
00115 Ceylan::VerbosityLevels level = Ceylan::high ) ;
00116
00117
00118
00124 enum TextOutputFormat { rawText, html } ;
00125
00126
00127
00133 static TextOutputFormat GetOutputFormat() ;
00134
00135
00136
00144 static void SetOutputFormat( TextOutputFormat newOutputFormat ) ;
00145
00146
00147
00148 protected:
00149
00150
00158 static TextOutputFormat _OutputFormat ;
00159
00160
00161
00162 private:
00163
00164
00184 } ;
00185
00186
00187 }
00188
00189
00190
00199 std::ostream & operator << ( std::ostream & os,
00200 const Ceylan::TextDisplayable & textDisplayable ) ;
00201
00202
00203
00204 #endif // CEYLAN_TEXT_DISPLAYABLE_H_
00205