⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 use_ostream.cpp

📁 ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识
💻 CPP
字号:
// $Id: Use_Ostream.cpp 72163 2006-04-19 13:30:57Z jwillemsen $#include "ace/Log_Msg.h"#include "ace/streams.h"void foo (void);int ACE_TMAIN (int, ACE_TCHAR *[]){  ACE_TRACE ("main");  ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%IHi Mom\n")));  /* Alternatively, you can use the set_flags() method to do the same     thing after the singleton has been created:  */  // Listing 2 code/ch03  ACE_OSTREAM_TYPE *output =    (ACE_OSTREAM_TYPE *) new ofstream ("ostream.output.test");  ACE_LOG_MSG->msg_ostream (output, 1);  ACE_LOG_MSG->set_flags (ACE_Log_Msg::OSTREAM);  ACE_LOG_MSG->clr_flags (ACE_Log_Msg::STDERR);  // Listing 2  foo ();  ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IGoodnight\n")));  return 0;}void foo (void){  ACE_TRACE ("foo");  ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IHowdy Pardner\n")));}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -