summaryrefslogtreecommitdiff
path: root/ACE/contrib/FaCE/CE_Screen_Output.cpp
diff options
context:
space:
mode:
authorErik Sohns <erik.sohns@posteo.de>2023-04-05 17:37:54 +0200
committerErik Sohns <erik.sohns@posteo.de>2023-04-05 17:37:54 +0200
commit761e24b54d7fda41ed58a6e2f41ba905e43bf3d9 (patch)
tree69171a8ba215e125cf273ab6bbe4641313df6e6a /ACE/contrib/FaCE/CE_Screen_Output.cpp
parent3e44fb91cf724aeb48b38169482a4878de316afc (diff)
parent9e18d338ec598e1a8da6d32a0fba5a20c76978f7 (diff)
downloadATCD-761e24b54d7fda41ed58a6e2f41ba905e43bf3d9.tar.gz
Merge branch 'message_queue_ex_get_queue' of https://github.com/esohns/ACE_TAO into message_queue_ex_get_queue
Diffstat (limited to 'ACE/contrib/FaCE/CE_Screen_Output.cpp')
-rw-r--r--ACE/contrib/FaCE/CE_Screen_Output.cpp164
1 files changed, 0 insertions, 164 deletions
diff --git a/ACE/contrib/FaCE/CE_Screen_Output.cpp b/ACE/contrib/FaCE/CE_Screen_Output.cpp
deleted file mode 100644
index f0d0caf6b02..00000000000
--- a/ACE/contrib/FaCE/CE_Screen_Output.cpp
+++ /dev/null
@@ -1,164 +0,0 @@
-#include "CE_Screen_Output.h"
-#include <string.h>
-
-// This utility does not use ACE, and shouldn't.
-//FUZZ: disable check_for_lack_ACE_OS
-
-HWND CE_Screen_Output::handler_ = 0;
-
-
-CE_Screen_Output::CE_Screen_Output()
-: pFile_(0)
-{
-}
-
-
-CE_Screen_Output::~CE_Screen_Output()
-{
- if (pFile_ != 0) {
- fclose(pFile_);
- }
-}
-
-
-void CE_Screen_Output::SetOutputWindow(HWND hEdit)
-{
- handler_ = hEdit;
-}
-
-
-void CE_Screen_Output::clear()
-{
- SetWindowText(handler_, 0);
-}
-
-
-CE_Screen_Output& CE_Screen_Output::operator << (wchar_t* output)
-{
- int length = GetWindowTextLength(handler_);
- SendMessage(handler_, EM_SETSEL, length, length);
- SendMessage(handler_, EM_REPLACESEL, 0, (LPARAM)output);
-
- if (pFile_ != 0)
- {
- fwprintf(pFile_, L"%s", output);
- }
-
- return *this;
-}
-
-
-CE_Screen_Output& CE_Screen_Output::operator << (const wchar_t* output)
-{
- wchar_t* buffer = _wcsdup(output);
- if (buffer != 0)
- {
- *this << buffer;
- delete buffer;
- }
- return *this;
-}
-
-
-CE_Screen_Output& CE_Screen_Output::operator << (char* output)
-{
- int len = MultiByteToWideChar(CP_OEMCP, MB_PRECOMPOSED, output, -1, 0, 0);
- wchar_t* w_output = new wchar_t[len];
-
- MultiByteToWideChar(CP_OEMCP, MB_PRECOMPOSED, output, -1, w_output, len);
- *this << w_output;
-
- delete w_output;
-
- return *this;
-}
-
-
-CE_Screen_Output& CE_Screen_Output::operator << (const char* output)
-{
- int len = MultiByteToWideChar(CP_OEMCP, MB_PRECOMPOSED, output, -1, 0, 0);
- wchar_t* w_output = new wchar_t[len];
-
- MultiByteToWideChar(CP_OEMCP, MB_PRECOMPOSED, output, -1, w_output, len);
- *this << w_output;
-
- delete [] w_output;
- return *this;
-}
-
-
-CE_Screen_Output& CE_Screen_Output::operator << (char output)
-{
- *this << (int)output;
- return *this;
-}
-
-
-CE_Screen_Output& CE_Screen_Output::operator << (unsigned char output)
-{
- *this << (int)output;
- return *this;
-}
-
-
-CE_Screen_Output& CE_Screen_Output::operator << (unsigned short output)
-{
- wchar_t buffer[20];
- wsprintf(buffer, L"%u", output);
- *this << buffer;
- return *this;
-}
-
-
-CE_Screen_Output& CE_Screen_Output::operator << (int output)
-{
- wchar_t buffer[20];
- wsprintf(buffer, L"%d", output);
- *this << buffer;
- return *this;
-}
-
-
-CE_Screen_Output& CE_Screen_Output::operator << (unsigned int output)
-{
- wchar_t buffer[20];
- wsprintf(buffer, L"%du", output);
- *this << buffer;
- return *this;
-}
-
-
-CE_Screen_Output& CE_Screen_Output::operator << (float output)
-{
- wchar_t buffer[20];
- swprintf(buffer, L"%f", output);
- *this << buffer;
- return *this;
-}
-
-
-CE_Screen_Output& CE_Screen_Output::operator << (long output)
-{
- wchar_t buffer[20];
- wsprintf(buffer, L"%l", output);
- *this << buffer;
- return *this;
-}
-
-
-CE_Screen_Output& CE_Screen_Output::operator << (unsigned long output)
-{
- wchar_t buffer[20];
- wsprintf(buffer, L"%lu", output);
- *this << buffer;
- return *this;
-}
-
-
-CE_Screen_Output& CE_Screen_Output::operator << (FILE* pFile)
-{
- pFile_ = pFile;
- return *this;
-}
-
-//FUZZ: enable check_for_lack_ACE_OS