Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::GUIConsoleCommandParser Class Referencefinal

#include <GUIConsoleCommandParser.h>

+ Inheritance diagram for Divide::GUIConsoleCommandParser:

Public Member Functions

 GUIConsoleCommandParser (PlatformContext &context)
 
bool processCommand (const string &commandString) override
 If we need a parser , just override this.
 
- Public Member Functions inherited from Divide::CommandParser
 CommandParser () noexcept=default
 
virtual ~CommandParser ()=default
 
virtual bool processCommand (const string &commandString)=0
 If we need a parser , just override this.
 
- Public Member Functions inherited from Divide::PlatformContextComponent
 PlatformContextComponent (PlatformContext &context) noexcept
 
virtual ~PlatformContextComponent ()=default
 
PlatformContextcontext () noexcept
 
const PlatformContextcontext () const noexcept
 
- Public Member Functions inherited from Divide::NonCopyable
 NonCopyable (const NonCopyable &)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 
 NonCopyable (NonCopyable &&)=default
 
NonCopyableoperator= (NonCopyable &&)=default
 

Private Types

using CommandMap = hashMap< U64, DELEGATE_STD< void, string > >
 

Private Member Functions

void handleSayCommand (const string &args)
 
void handleQuitCommand (const string &args)
 
void handleHelpCommand (const string &args)
 
void handleEditParamCommand (const string &args)
 
void handlePlaySoundCommand (const string &args)
 
void handleNavMeshCommand (const string &args)
 
void handleShaderRecompileCommand (const string &args)
 
void handleFOVCommand (const string &args)
 
void handleInvalidCommand (const string &args)
 

Private Attributes

hashMap< U64, const char * > _commandHelp
 Help text for every command.
 
Handle< AudioDescriptor_sound {INVALID_HANDLE<AudioDescriptor>}
 used for sound playback
 

Additional Inherited Members

- Protected Member Functions inherited from Divide::NonCopyable
 NonCopyable ()=default
 
 ~NonCopyable ()=default
 
- Protected Attributes inherited from Divide::CommandParser
hashMap< U64, DELEGATE< void, string > > _commands
 
- Protected Attributes inherited from Divide::PlatformContextComponent
PlatformContext_context
 

Detailed Description

Definition at line 46 of file GUIConsoleCommandParser.h.

Member Typedef Documentation

◆ CommandMap

Constructor & Destructor Documentation

◆ GUIConsoleCommandParser()

Divide::GUIConsoleCommandParser::GUIConsoleCommandParser ( PlatformContext context)

Definition at line 24 of file GUIConsoleCommandParser.cpp.

Member Function Documentation

◆ handleEditParamCommand()

void Divide::GUIConsoleCommandParser::handleEditParamCommand ( const string args)
private

Definition at line 111 of file GUIConsoleCommandParser.cpp.

◆ handleFOVCommand()

void Divide::GUIConsoleCommandParser::handleFOVCommand ( const string args)
private

Definition at line 194 of file GUIConsoleCommandParser.cpp.

◆ handleHelpCommand()

void Divide::GUIConsoleCommandParser::handleHelpCommand ( const string args)
private

Definition at line 93 of file GUIConsoleCommandParser.cpp.

◆ handleInvalidCommand()

void Divide::GUIConsoleCommandParser::handleInvalidCommand ( const string args)
private

Definition at line 205 of file GUIConsoleCommandParser.cpp.

◆ handleNavMeshCommand()

void Divide::GUIConsoleCommandParser::handleNavMeshCommand ( const string args)
private

Definition at line 154 of file GUIConsoleCommandParser.cpp.

◆ handlePlaySoundCommand()

void Divide::GUIConsoleCommandParser::handlePlaySoundCommand ( const string args)
private

Definition at line 120 of file GUIConsoleCommandParser.cpp.

◆ handleQuitCommand()

void Divide::GUIConsoleCommandParser::handleQuitCommand ( const string args)
private

Definition at line 84 of file GUIConsoleCommandParser.cpp.

◆ handleSayCommand()

void Divide::GUIConsoleCommandParser::handleSayCommand ( const string args)
private

Definition at line 80 of file GUIConsoleCommandParser.cpp.

◆ handleShaderRecompileCommand()

void Divide::GUIConsoleCommandParser::handleShaderRecompileCommand ( const string args)
private

Definition at line 190 of file GUIConsoleCommandParser.cpp.

◆ processCommand()

bool Divide::GUIConsoleCommandParser::processCommand ( const string commandString)
overridevirtual

If we need a parser , just override this.

Implements Divide::CommandParser.

Definition at line 49 of file GUIConsoleCommandParser.cpp.

Member Data Documentation

◆ _commandHelp

hashMap<U64, const char*> Divide::GUIConsoleCommandParser::_commandHelp
private

Help text for every command.

Definition at line 67 of file GUIConsoleCommandParser.h.

◆ _sound

Handle<AudioDescriptor> Divide::GUIConsoleCommandParser::_sound {INVALID_HANDLE<AudioDescriptor>}
private

used for sound playback

Definition at line 69 of file GUIConsoleCommandParser.h.


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