ContRap-Core
|
Class Statement represents system commands, which should not be overloaded by the user. More...
#include <command.h>
Public Types | |
enum | StatementType { ERROR, ABORT, BREAK, RETURN, INCLUDE, EXTENDS, TYPE, QUIT, UNLOAD, CLEAR, HELP } |
Enumerates system commands. More... | |
Public Member Functions | |
Statement (StatementType type, const DPtr &argument=DPtr::bottom) | |
Class constructor. | |
virtual | ~Statement () |
Virtual destructor. | |
virtual StatementType | get_statement_type () const |
Returns the enumerated type of the statement. | |
virtual CommandType | get_command_type () const |
Returns the enumerated type of the command. | |
virtual std::string | to_string () const |
Converts the object to a non-formatted string. | |
Protected Attributes | |
StatementType | type |
Statement type. |
crp::Statement::Statement | ( | StatementType | type, |
const DPtr & | argument = DPtr::bottom |
||
) |
Class constructor.
type | Type of the statement |
first | First argument of the statement |
virtual crp::Statement::~Statement | ( | ) | [inline, virtual] |
Virtual destructor.
virtual CommandType crp::Statement::get_command_type | ( | ) | const [inline, virtual] |
virtual StatementType crp::Statement::get_statement_type | ( | ) | const [inline, virtual] |
Returns the enumerated type of the statement.
virtual std::string crp::Statement::to_string | ( | ) | const [virtual] |
Converts the object to a non-formatted string.
This method is thought to be used for debugging purposes only.
Reimplemented from crp::Command.
StatementType crp::Statement::type [protected] |
Statement type.