1#ifndef Cpl_TShell_ContextApi_x_h_
2#define Cpl_TShell_ContextApi_x_h_
42 virtual
bool writeFrame( const
char* text ) noexcept = 0;
45 virtual
bool writeFrame( const
char* text,
size_t maxBytes ) noexcept = 0;
75 virtual
bool oobRead(
void* buffer,
int numBytes,
int& bytesRead ) noexcept = 0;
This template class implements a THREAD SAFE Ring Buffer.
Definition RingBufferMT.h:33
This class defines the interface for a TShell command.
Definition Command.h:32
This Private Namespace class defines a "Context" for a TShell command.
Definition Context_.h:32
virtual Cpl::Text::String & getTokenBuffer2() noexcept=0
Same as getTokenBuffer(), except provides a second/separate token buffer.
virtual bool oobRead(void *buffer, int numBytes, int &bytesRead) noexcept=0
This method allows a command access to the input stream, i.e.
virtual bool writeFrame(const char *text) noexcept=0
This method encodes and outputs the specified message/text. The method returns false if there was Out...
virtual Command * findCommand(const char *verb, size_t verbLength) noexcept=0
Lookup a command by its verb. Returns a nullptr if the command is not found.
virtual Cpl::Container::SList< Command > & getCommands() noexcept=0
This method returns the list of implemented commands.
virtual Security::Permission_T getUserPermissionLevel() const noexcept=0
This method returns the 'logged user' permission level.
virtual Cpl::Text::String & getTokenBuffer() noexcept=0
A shared/common working buffer.
virtual Security::Permission_T setUserPermissionLevel(Security::Permission_T newPermissionLevel) noexcept=0
This method is used to updated the 'logged user' permission level.
virtual Cpl::Text::String & getOutputBuffer() noexcept=0
This method returns a working buffer for a command to format its output prior to 'writing the frame'.
This class defines the interface a TShell Command Processor.
Definition ProcessorApi.h:33
This abstract defines the interface for validating a 'user login' for TShell.
Definition Security.h:31
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20