31 #ifndef GENAPI_IPORTRECORDER_H 32 #define GENAPI_IPORTRECORDER_H 37 # pragma warning ( push ) 38 # pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY 116 return ref::m_Ptr->Replay(pPortRecorder,
Invalidate);
125 return ref::m_Ptr->StartRecording(pPortRecorder);
134 return ref::m_Ptr->StopRecording();
148 # pragma warning ( pop ) 151 #endif // ifndef GENAPI_IPORTRECORDER_H
virtual void StopRecording()
stops recording
interface GENAPI_DECL_ABSTRACT IPortReplay
Interface for replaying write commands on a port.
interface GENAPI_DECL_ABSTRACT IPort
Interface for ports.
virtual void StopRecording()=0
stops recording
virtual void StartRecording(IPortWriteList *pPortRecorder)
starts logging all WriteRegister commands to a list
interface GENAPI_DECL_ABSTRACT bool Invalidate
virtual void SetCookie(const int64_t Value)=0
Sets a cookie in case the port implementation want to cache a command list.
#define ACCESS_EXCEPTION
Fires a access exception, e.g. throw ACCESS_EXCEPTION("Not everybody")
interface GENAPI_DECL_ABSTRACT IPortRecorder
Interface for recording write commands on a port.
interface GENAPI_DECL_ABSTRACT int64_t Address
virtual void Replay(IPortWriteList *pPortRecorder, bool Invalidate=true)
sends the commands to the camera.
interface GENAPI_DECL_ABSTRACT int64_t int64_t Length
virtual void Replay(IPort *pPort)=0
Replays the write command to the given port interface.
virtual int64_t GetCookie()=0
Gets the cookie a port implementation may have set for caching a command list.
Definition of interface IPort.
virtual void Write(const void *pBuffer, int64_t Address, int64_t Length)=0
Writes a chunk of bytes to the port.
interface GENAPI_DECL_ABSTRACT IPortWriteList
Part of the generic device API.
CPortRecorderRefT< IPortRecorder > CPortRecorderRef
Reference to an IPortRecorder pointer.