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/Log_Msg_Callback.h"
00025 #include "ace/Log_Record.h"
00026
00027 namespace
00028 {
00029 const ACE_TCHAR endl[] = ACE_LIB_TEXT("\r\n");
00030 const ACE_TCHAR tab[] = ACE_LIB_TEXT("\t");
00031 }
00032
00033 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048 class ACE_Export ACE_CE_Screen_Output : public ACE_Log_Msg_Callback
00049 {
00050 public:
00051
00052 ACE_CE_Screen_Output (HWND hEdit);
00053
00054 ACE_CE_Screen_Output (void);
00055
00056 virtual ~ACE_CE_Screen_Output();
00057
00058
00059 virtual void log (ACE_Log_Record &log_record);
00060
00061
00062 void SetOutputWindow (HWND hWnd);
00063
00064 void clear (void);
00065
00066
00067
00068
00069
00070
00071
00072 ACE_CE_Screen_Output& operator << (ACE_TCHAR*);
00073 ACE_CE_Screen_Output& operator << (const ACE_TCHAR*);
00074
00075 ACE_CE_Screen_Output& operator << (ACE_ANTI_TCHAR* output);
00076 ACE_CE_Screen_Output& operator << (const ACE_ANTI_TCHAR* output);
00077
00078 ACE_CE_Screen_Output& operator << (char output);
00079 ACE_CE_Screen_Output& operator << (unsigned char output);
00080
00081 ACE_CE_Screen_Output& operator << (unsigned short output);
00082
00083 ACE_CE_Screen_Output& operator << (int output);
00084 ACE_CE_Screen_Output& operator << (unsigned int output);
00085
00086 ACE_CE_Screen_Output& operator << (float output);
00087
00088 ACE_CE_Screen_Output& operator << (long output);
00089 ACE_CE_Screen_Output& operator << (unsigned long output);
00090
00091 ACE_CE_Screen_Output& operator << (FILE* pFile);
00092
00093 private:
00094
00095 ACE_CE_Screen_Output (ACE_CE_Screen_Output&);
00096
00097 private:
00098
00099 HWND handler_;
00100
00101
00102
00103 FILE* pFile_;
00104 };
00105
00106 ACE_END_VERSIONED_NAMESPACE_DECL
00107
00108 #endif // ACE_HAS_WINCE
00109 #endif // ACE_CE_SCREEN_OUTPUT_H