00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef ACE_CE_SCREEN_OUTPUT_H
00014 #define ACE_CE_SCREEN_OUTPUT_H
00015
00016 #include "ace/config-all.h"
00017
00018 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00019 #pragma once
00020 #endif
00021
00022 #if defined (ACE_HAS_WINCE)
00023
00024 #include "ace/OS.h"
00025 #include "ace/Log_Msg_Callback.h"
00026 #include "ace/Log_Record.h"
00027
00028 const ACE_TCHAR endl[] = ACE_LIB_TEXT("\r\n");
00029 const ACE_TCHAR tab[] = ACE_LIB_TEXT("\t");
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044 class ACE_Export ACE_CE_Screen_Output : public ACE_Log_Msg_Callback
00045 {
00046 public:
00047
00048 ACE_CE_Screen_Output (HWND hEdit);
00049
00050 ACE_CE_Screen_Output (void);
00051
00052 virtual ~ACE_CE_Screen_Output();
00053
00054
00055 virtual void log (ACE_Log_Record &log_record);
00056
00057
00058 void SetOutputWindow (HWND hWnd);
00059
00060 void clear (void);
00061
00062
00063
00064
00065
00066
00067
00068 ACE_CE_Screen_Output& operator << (ACE_TCHAR*);
00069 ACE_CE_Screen_Output& operator << (const ACE_TCHAR*);
00070
00071 ACE_CE_Screen_Output& operator << (ACE_ANTI_TCHAR* output);
00072 ACE_CE_Screen_Output& operator << (const ACE_ANTI_TCHAR* output);
00073
00074 ACE_CE_Screen_Output& operator << (char output);
00075 ACE_CE_Screen_Output& operator << (unsigned char output);
00076
00077 ACE_CE_Screen_Output& operator << (unsigned short output);
00078
00079 ACE_CE_Screen_Output& operator << (int output);
00080 ACE_CE_Screen_Output& operator << (unsigned int output);
00081
00082 ACE_CE_Screen_Output& operator << (float output);
00083
00084 ACE_CE_Screen_Output& operator << (long output);
00085 ACE_CE_Screen_Output& operator << (unsigned long output);
00086
00087 ACE_CE_Screen_Output& operator << (FILE* pFile);
00088
00089 private:
00090
00091 ACE_CE_Screen_Output(ACE_CE_Screen_Output&);
00092
00093 private:
00094
00095 HWND handler_;
00096
00097
00098
00099 FILE* pFile_;
00100 };
00101
00102 #endif // ACE_HAS_WINCE
00103 #endif // ACE_CE_SCREEN_OUTPUT_H