1 #include "RecordingDevice.h"
2 #include "RecordingDeviceFactory.h"
3 #include "RecordingDevice_Text.h"
5 RecordingDevice
*RecordingDeviceFactory::instantiate (int argc
,
8 RecordingDevice
* device
= 0;
10 // Determine the implementation based on the values of argv
12 device
= new TextListenerAcceptor ();
15 // Initialize the device with the remaining parameters.
16 if (device
->init (argc
, argv
) < 0)
17 ACE_ERROR_RETURN ((LM_ERROR
,
18 ACE_TEXT ("RecordingDeviceFactory::instantiate() - ")
19 ACE_TEXT ("%s->init(argc, argv)"),