OcaCommandSet#
This document describes the device side implementation of OcaCommandSet. This class is documented in the AES70 standard as:
A command set. Child of OcaProgram.
Overview#
- ClassID: 1.5.2.1
- Header:
aes70/device/OcaCommandSet.hpp
- Namespace:
aes70::device
- Inheritance: aes70::device::OcaProgram, aes70::device::OcaDataset, aes70::device::OcaRoot, aes70::device::object
Class Declaration#
The device side implementation has the following signature.
namespace aes70::device
{
template <class Implementation>
class OcaCommandSet : public OcaProgram<Implementation>
{
};
}
The template argument Implementation
may implement the following methods.
Note
The signatures given here are just one possibility and that most methods are optional. Implement only those methods which make sense in the context of your device. See the documentation in Implementing AES70 Classes for more details.
class MyOcaCommandSetImplementation
{
// Methods defined by OcaCommandSet
OcaList<OcaCommand> GetCommands();
void SetCommands(OcaList<OcaCommand> Commands);
OcaCommand GetCommand(OcaUint16 Index);
void SetCommand(OcaUint16 Index, OcaCommand Command);
void InsertCommand(OcaUint16 Index, OcaCommand Command);
void DeleteCommand(OcaUint16 Index);
void Clear();
// Methods defined by OcaProgram
OcaList<OcaProgramRunMode> GetSupportedRunModes();
void SetSupportedRunModes(OcaList<OcaProgramRunMode> RunModes);
// Methods defined by OcaDataset
std::tuple<OcaUint64,OcaIOSessionHandle> OpenRead(OcaLockState RequestedLockState);
std::tuple<OcaUint64,OcaIOSessionHandle> OpenWrite(OcaLockState RequestedLockState);
void Close(OcaIOSessionHandle Handle);
std::tuple<OcaBoolean,OcaLongBlob> Read(OcaIOSessionHandle Handle, OcaUint64 Position, OcaUint64 PartSize);
void Write(OcaIOSessionHandle Handle, OcaUint64 Position, OcaLongBlob Part);
void Clear(OcaIOSessionHandle Handle);
OcaONo GetOwner();
OcaString GetName();
void SetName(OcaString Name);
OcaString GetType();
void SetType(OcaString Type);
OcaBoolean GetReadOnly();
void SetReadOnly(OcaBoolean ReadOnly);
OcaTime GetLastModificationTime();
std::tuple<OcaUint64,OcaUint64> GetDatasetSizes();
// Methods defined by OcaRoot
OcaBoolean GetLockable();
void SetLockNoReadWrite();
void Unlock();
OcaString GetRole();
void SetLockNoWrite();
OcaLockState GetLockState();
};