Photomechanics API
Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.LegacyMftCommandRunner Class Reference

Provides methods to send commands and receive messages from turntable. More...

Inheritance diagram for Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.LegacyMftCommandRunner:
[legend]

Public Member Functions

 LegacyMftCommandRunner (MessagesTransport transport)
 Construct command runner on top of the provided messages transport. More...
 
override String ToString ()
 
LegacyMftCommandBase RunCommand (LegacyMftCommandBase command)
 Run command of desired type. More...
 
void Dispose ()
 

Properties

MessagesTransport Transport [get]
 Underlying messages transport. More...
 
Boolean IsDisposed [get]
 
- Properties inherited from Photomechanics.Photo3DStudio.Common.Interfaces.IDisposableExtended
Boolean IsDisposed [get]
 Determines whether the object is being disposed or already disposed and no longer functional. More...
 

Events

TypedEventHandler< IDisposableExtendedDisposed
 
- Events inherited from Photomechanics.Photo3DStudio.Common.Interfaces.IDisposableExtended
TypedEventHandler< IDisposableExtendedDisposed
 Occurs when object is disposed. More...
 

Detailed Description

Provides methods to send commands and receive messages from turntable.

API for handling turn table commands.

When command is sent to turn table through provided transport, it is added to internal commands list. When message is received, it's command header is compared to each of that commands and message content is dispatched to corresponding command.

When command is sent to turn table (through transport), it is added to internal commands list. When message is received, it's command header is compared to each of that commands and message content is dispatched to corresponding command.

Constructor & Destructor Documentation

◆ LegacyMftCommandRunner()

Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.LegacyMftCommandRunner.LegacyMftCommandRunner ( MessagesTransport  transport)

Construct command runner on top of the provided messages transport.

Member Function Documentation

◆ RunCommand()

LegacyMftCommandBase Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.LegacyMftCommandRunner.RunCommand ( LegacyMftCommandBase  command)

Run command of desired type.

Returns
The same command as provided.

Property Documentation

◆ Transport

MessagesTransport Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.LegacyMftCommandRunner.Transport
get

Underlying messages transport.