Conscience Core
Public Member Functions | Static Public Member Functions | List of all members
conscience_core::bridging::commands::CscCommandAutoParseMetadata Class Reference

#include <CscCommandAutoParse.h>

Public Member Functions

 CscCommandAutoParseMetadata (const CommandTypeId &commandId, function< ptr< CscCommand >(CscCommandParseContext &params)> createCommandFunction)
 
function< ptr< CscCommand >CscCommandParseContext &params)> getCreateCommandFunction () const
 

Static Public Member Functions

static optional< const CscCommandAutoParseMetadata * > getForCommandId (const CommandTypeId &commandId)
 
static vector< CommandTypeIdgetSupportedCommandIds ()
 
static const CscCommandAutoParseMetadataregisterCommand (const CommandTypeId &commandId, const string &classPrefix, function< ptr< CscCommand >(CscCommandParseContext &params)> createCommandFunction)
 
static void unregisterCommand (const CommandTypeId &commandId)
 
static vector< string > getCommandFunctionNames ()
 

Constructor & Destructor Documentation

◆ CscCommandAutoParseMetadata()

conscience_core::bridging::commands::CscCommandAutoParseMetadata::CscCommandAutoParseMetadata ( const CommandTypeId commandId,
function< ptr< CscCommand >(CscCommandParseContext &params)>  createCommandFunction 
)

Member Function Documentation

◆ getCommandFunctionNames()

vector< string > conscience_core::bridging::commands::CscCommandAutoParseMetadata::getCommandFunctionNames ( )
static

◆ getCreateCommandFunction()

function< ptr< CscCommand >CscCommandParseContext &params)> conscience_core::bridging::commands::CscCommandAutoParseMetadata::getCreateCommandFunction ( ) const

◆ getForCommandId()

optional< const CscCommandAutoParseMetadata * > conscience_core::bridging::commands::CscCommandAutoParseMetadata::getForCommandId ( const CommandTypeId commandId)
static

returns empty if no autoparse metadata has been registerd

◆ getSupportedCommandIds()

vector< CommandTypeId > conscience_core::bridging::commands::CscCommandAutoParseMetadata::getSupportedCommandIds ( )
static

◆ registerCommand()

const CscCommandAutoParseMetadata * conscience_core::bridging::commands::CscCommandAutoParseMetadata::registerCommand ( const CommandTypeId commandId,
const string &  classPrefix,
function< ptr< CscCommand >(CscCommandParseContext &params)>  createCommandFunction 
)
static

◆ unregisterCommand()

void conscience_core::bridging::commands::CscCommandAutoParseMetadata::unregisterCommand ( const CommandTypeId commandId)
static

The documentation for this class was generated from the following files: