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: RecordingDeviceFactory.cpp 91813 2010-09-17 07:52:52Z johnnyw $
#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;
}
|