blob: f5585e1ec0a1d014b0c34212f9373cdca6653c04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// $Id$
#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;
}
|