ICommandParser Class Referenceabstract

Base abstract class for command parserCommand parsers aim at parsing a list of commands from a specific input. More...

Inheritance diagram for ICommandParser:
CommandFileParser CommandLineOptionParser

Public Member Functions

virtual void initialize ()=0
 Initialize parser.
 
virtual void uninitialize ()=0
 Unitialize parser.
 
virtual std::vector< std::shared_ptr< ICommand > > getCommandList () const =0
 Retrieve the list of commands. More...
 
virtual PlayerReturnCode parse ()=0
 Retrieve the list of commands. More...
 

Detailed Description

Base abstract class for command parser

Command parsers aim at parsing a list of commands from a specific input.

Author
cgarraud (INRIA)
Date
2016-01-27

Member Function Documentation

virtual std::vector<std::shared_ptr<ICommand> > getCommandList ( ) const
pure virtual

Retrieve the list of commands.

Precondition
This method should be called after the parse() method

Implemented in CommandFileParser, and CommandLineOptionParser.

virtual PlayerReturnCode parse ( )
pure virtual

Retrieve the list of commands.

Precondition
This method should be called after the initialize() method

Implemented in CommandFileParser, and CommandLineOptionParser.