00001 #ifndef __DEFAULTPRINTFPORT_H__
00002 #define __DEFAULTPRINTFPORT_H__
00003
00007 #ifndef HAVE_PRINTFPORT
00008 #define HAVE_PRINTFPORT 0
00009 #else
00010 #if (HAVE_PRINTFPORT+1)==1
00011 #undef HAVE_PRINTFPORT
00012 #define HAVE_PRINTFPORT 0
00013 #endif
00014 #endif // HAVE_PRINTFPORT init
00015
00028 class DefaultPrintfPort
00029 #ifdef HAVE_CLASSIC
00030 #if HAVE_PRINTFPORT
00031 : public virtual classic::gov::cca::PrintfPort
00032 #else
00033 : public virtual classic::gov::cca::Port
00034 #endif
00035 #endif
00036 {
00037
00038 public:
00039
00040 DefaultPrintfPort();
00041 virtual ~DefaultPrintfPort(){}
00042
00043 #if HAVE_PRINTFPORT
00044
00045 virtual void p(char* fmt, ...) ;
00046 virtual void p(char const* fmt, ...) ;
00048 virtual void pn(char * fmt, ...) ;
00049 virtual void pn(const char * fmt, ...) ;
00050
00052 virtual void e(char* fmt, ...) ;
00053 virtual void e(const char* fmt, ...) ;
00055 virtual void en(char* fmt, ...) ;
00056 virtual void en(const char* fmt, ...) ;
00057
00059 virtual void l(char* fmt, ...) ;
00060 virtual void l(const char* fmt, ...) ;
00062 virtual void ln(char* fmt, ...) ;
00063 virtual void ln(const char* fmt, ...) ;
00064 #endif
00065
00066 };
00067
00068
00069 #endif //__DEFAULTPRINTFPORT_H__