recordingdevicefactory.cpp
来自「ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识」· C++ 代码 · 共 26 行
CPP
26 行
// $Id: RecordingDeviceFactory.cpp 55034 2004-01-01 21:01:01Z shuston $#include "RecordingDevice.h"#include "RecordingDeviceFactory.h"#include "RecordingDevice_Text.h"RecordingDevice *RecordingDeviceFactory::instantiate (int argc, ACE_TCHAR *argv[]){ RecordingDevice * device = 0; // Determine the implementation based on the values of argv // Exclude 2 device = new TextListenerAcceptor (); // Exclude 2 // Initialize the device with the remaining parameters. if (device->init (argc, argv) < 0) ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("RecordingDeviceFactory::instantiate() - ") ACE_TEXT ("%s->init(argc, argv)"), device->get_name()), 0); return device;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?