Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

L1394::Vcr Class Reference
[L1394_Device]

This class defines the interface for Vcrs. More...

#include <l1394_vcr.h>

Inheritance diagram for L1394::Vcr:

L1394::Device L1394::AvcVcr List of all members.

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 DeviceRegisterrecordingDate (const Timecode time_begin)=0
 With this method you can access the recording date feature.
virtual const DeviceRegistertransportState ()=0
 With this method you can get the actual status of a vcr.
virtual const DeviceRegistersearch (const Timecode)=0
 This method stop the tape at a specific position.
virtual const DeviceRegisternextFrame ()=0
 With this method you can access the nextFrame feature.
virtual const DeviceRegisterpreviousFrame ()=0
 With this method you can access the nextFrame feature.
virtual const DeviceRegisterslowForward ()=0
 With this method you can access the slowForward feature.
virtual const DeviceRegisterslowReverse ()=0
 With this method you can access the slowReverse feature.
virtual const DeviceRegisterforward ()=0
 With this method you can access the forward feature.
virtual const DeviceRegisterreverse ()=0
 With this method you can access the reverse feature.
virtual const DeviceRegisterfastForward ()=0
 With this method you can access the fastForward feature.
virtual const DeviceRegisterrewind ()=0
 With this method you can access the rewind feature.
virtual const DeviceRegisterrecord ()=0
 With this method you can access the record feature.
virtual const DeviceRegisterrecordingSpeed (const int speed)=0
 With this method you can access the recordingSpeed feature.

Detailed Description

This class defines the interface for Vcrs.

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;
   }
 }
Author:
Michael Repplinger

Definition at line 76 of file l1394_vcr.h.


Constructor & Destructor Documentation

L1394::Vcr::Vcr Node parent_node  ) 
 

Definition at line 21 of file l1394_vcr.cpp.

L1394::Vcr::~Vcr  )  [inline, virtual]
 

destructor

Definition at line 85 of file l1394_vcr.h.


Member Function Documentation

L1394::Vcr::fastForward  )  [pure virtual]
 

With this method you can access the fastForward feature.

Returns:
DeviceRegister* : pointer to the DeviceRegister.

Implemented in L1394::AvcVcr.

L1394::Vcr::forward  )  [pure virtual]
 

With this method you can access the forward feature.

Returns:
DeviceRegister* : pointer to the DeviceRegister.

Implemented in L1394::AvcVcr.

virtual DeviceType L1394::Vcr::getDeviceType  )  const [inline, virtual]
 

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.

timeCode L1394::Vcr::getTimeCode  )  [pure virtual]
 

With this method you can get the actual timecode.

Returns:
Timecode : the actual timecode.

Implemented in L1394::AvcVcr.

L1394::Vcr::nextFrame  )  [pure virtual]
 

With this method you can access the nextFrame feature.

If you execute the command, the vcr increase one frame, from actual position.

Returns:
DeviceRegister* : pointer to the DeviceRegister.

Implemented in L1394::AvcVcr.

L1394::Vcr::pause  )  [pure virtual]
 

With this method you can access the pause feature.

Returns:
DeviceRegister* : pointer to the DeviceRegister.

Implemented in L1394::AvcVcr.

L1394::Vcr::play  )  [pure virtual]
 

With this method you can access the play feature.

Returns:
DeviceRegister* : pointer to the DeviceRegister.

Implemented in L1394::AvcVcr.

L1394::Vcr::previousFrame  )  [pure virtual]
 

With this method you can access the nextFrame feature.

If you execute the command, the vcr decrease one frame, from actual position.

Returns:
DeviceRegister* : pointer to the DeviceRegister.

Implemented in L1394::AvcVcr.

L1394::Vcr::record  )  [pure virtual]
 

With this method you can access the record feature.

Returns:
DeviceRegister* : pointer to the DeviceRegister.

Implemented in L1394::AvcVcr.

L1394::Vcr::recordingDate const Timecode  time_begin  )  [pure virtual]
 

With this method you can access the recording date feature.

Returns:
DeviceRegister* : pointer to the DeviceRegister object.

L1394::Vcr::recordingSpeed const int  speed  )  [pure virtual]
 

With this method you can access the recordingSpeed feature.

Parameters:
speed : the speed value.
Returns:
DeviceRegister* : pointer to the DeviceRegister.

Implemented in L1394::AvcVcr.

L1394::Vcr::reverse  )  [pure virtual]
 

With this method you can access the reverse feature.

Returns:
DeviceRegister* : pointer to the DeviceRegister.

Implemented in L1394::AvcVcr.

L1394::Vcr::rewind  )  [pure virtual]
 

With this method you can access the rewind feature.

Returns:
DeviceRegister* : pointer to the DeviceRegister.

Implemented in L1394::AvcVcr.

L1394::Vcr::search const   Timecode  )  [pure virtual]
 

This method stop the tape at a specific position.

Returns:
DeviceRegister* : pointer to the DeviceRegister.

Implemented in L1394::AvcVcr.

L1394::Vcr::slowForward  )  [pure virtual]
 

With this method you can access the slowForward feature.

Returns:
DeviceRegister* : pointer to the DeviceRegister.

Implemented in L1394::AvcVcr.

L1394::Vcr::slowReverse  )  [pure virtual]
 

With this method you can access the slowReverse feature.

Returns:
DeviceRegister* : pointer to the DeviceRegister.

Implemented in L1394::AvcVcr.

L1394::Vcr::transportState  )  [pure virtual]
 

With this method you can get the actual status of a vcr.

Returns:
DeviceRegister* : pointer to the DeviceRegister object.

Implemented in L1394::AvcVcr.


The documentation for this class was generated from the following files:
Generated on Wed Aug 24 00:36:45 2005 for L1394 by doxygen 1.4.2
L1394 library (NMM) grahics.cs.uni-sb.de/~repplix/l1394_home/