Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / APG / Streams / RecordingDeviceFactory.cpp
blob992aee3bf0d4ac096011decd95723b14e8e6d612
1 #include "RecordingDevice.h"
2 #include "RecordingDeviceFactory.h"
3 #include "RecordingDevice_Text.h"
5 RecordingDevice *RecordingDeviceFactory::instantiate (int argc,
6 ACE_TCHAR *argv[])
8 RecordingDevice * device = 0;
10 // Determine the implementation based on the values of argv
11 // Exclude 2
12 device = new TextListenerAcceptor ();
13 // Exclude 2
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)"),
20 device->get_name()),
21 0);
22 return device;