#include <l1394_vcr.h>
Inheritance diagram for L1394::Vcr:
Public Member Functions | |
Vcr (Node *parent_node) | |
virtual | ~Vcr () |
destructor | |
Vcr Interface | |
This functions describe the interface of any vcr | |
virtual DeviceType | getDeviceType () const |
This abstract method must be implemented by all devices. | |
virtual int | play ()=0 |
With this method you can access the play feature. | |
virtual int | pause ()=0 |
With this method you can access the pause feature. | |
virtual Timecode | getTimeCode ()=0 |
With this method you can get the actual timecode. | |
virtual const DeviceRegister * | recordingDate (const Timecode time_begin)=0 |
With this method you can access the recording date feature. | |
virtual const DeviceRegister * | transportState ()=0 |
With this method you can get the actual status of a vcr. | |
virtual const DeviceRegister * | search (const Timecode)=0 |
This method stop the tape at a specific position. | |
virtual const DeviceRegister * | nextFrame ()=0 |
With this method you can access the nextFrame feature. | |
virtual const DeviceRegister * | previousFrame ()=0 |
With this method you can access the nextFrame feature. | |
virtual const DeviceRegister * | slowForward ()=0 |
With this method you can access the slowForward feature. | |
virtual const DeviceRegister * | slowReverse ()=0 |
With this method you can access the slowReverse feature. | |
virtual const DeviceRegister * | forward ()=0 |
With this method you can access the forward feature. | |
virtual const DeviceRegister * | reverse ()=0 |
With this method you can access the reverse feature. | |
virtual const DeviceRegister * | fastForward ()=0 |
With this method you can access the fastForward feature. | |
virtual const DeviceRegister * | rewind ()=0 |
With this method you can access the rewind feature. | |
virtual const DeviceRegister * | record ()=0 |
With this method you can access the record feature. | |
virtual const DeviceRegister * | recordingSpeed (const int speed)=0 |
With this method you can access the recordingSpeed feature. |
This class is base-class for all Vcrs. The interface provides functions for the most common features. If you access a feature of the Vcr object the DeviceRegister object is returned and you can specify how to execute the command. (See also the DeviceRegister class documentation.) A little example show the idea.
Session *session = GetSession(); Vcr* my_vcr = session->findVcr(); if( my_vcr->fastForward()->hasFeature() ) { int response = my_vcr->forward()->send(); switch(response) //for all response codes see method send() in class DeviceRegister. { case ACCEPTED : cout << "Command accepted" << endl; break; case REJECTED : cout << "Command rejected" << endl; break; default : cout << "Unhandled case" << endl; break; } }
Definition at line 76 of file l1394_vcr.h.
|
Definition at line 21 of file l1394_vcr.cpp. |
|
destructor
Definition at line 85 of file l1394_vcr.h. |
|
With this method you can access the fastForward feature.
Implemented in L1394::AvcVcr. |
|
With this method you can access the forward feature.
Implemented in L1394::AvcVcr. |
|
This abstract method must be implemented by all devices. This method is normaly for internal use. You can use it for save down_casting. The following types are defined: return int : type of the device. Implements L1394::Device. Definition at line 91 of file l1394_vcr.h. References L1394::_Vcr. |
|
With this method you can get the actual timecode.
Implemented in L1394::AvcVcr. |
|
With this method you can access the nextFrame feature. If you execute the command, the vcr increase one frame, from actual position.
Implemented in L1394::AvcVcr. |
|
With this method you can access the pause feature.
Implemented in L1394::AvcVcr. |
|
With this method you can access the play feature.
Implemented in L1394::AvcVcr. |
|
With this method you can access the nextFrame feature. If you execute the command, the vcr decrease one frame, from actual position.
Implemented in L1394::AvcVcr. |
|
With this method you can access the record feature.
Implemented in L1394::AvcVcr. |
|
With this method you can access the recording date feature.
|
|
With this method you can access the recordingSpeed feature.
Implemented in L1394::AvcVcr. |
|
With this method you can access the reverse feature.
Implemented in L1394::AvcVcr. |
|
With this method you can access the rewind feature.
Implemented in L1394::AvcVcr. |
|
This method stop the tape at a specific position.
Implemented in L1394::AvcVcr. |
|
With this method you can access the slowForward feature.
Implemented in L1394::AvcVcr. |
|
With this method you can access the slowReverse feature.
Implemented in L1394::AvcVcr. |
|
With this method you can get the actual status of a vcr.
Implemented in L1394::AvcVcr. |