Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions | Private Attributes
Interaction::CommandResult Class Reference

Public Types

enum  Code { OK , CanNotInterpret , Error }
 

Public Member Functions

 CommandResult (Code resultCode=OK)
 
 CommandResult (CommandError *error)
 
virtual ~CommandResult ()
 
void addError (CommandError *error)
 
Code code () const
 
const QList< CommandError * > & errors () const
 
void setCode (Code code)
 

Private Attributes

QList< CommandError * > errors_
 
Code outcomeCode
 

Member Enumeration Documentation

◆ Code

Enumerator
OK 
CanNotInterpret 
Error 

Constructor & Destructor Documentation

◆ CommandResult() [1/2]

Interaction::CommandResult::CommandResult ( Code  resultCode = OK)

◆ CommandResult() [2/2]

Interaction::CommandResult::CommandResult ( CommandError error)

◆ ~CommandResult()

Interaction::CommandResult::~CommandResult ( )
virtual

Member Function Documentation

◆ addError()

void Interaction::CommandResult::addError ( CommandError error)

◆ code()

CommandResult::Code Interaction::CommandResult::code ( ) const
inline

◆ errors()

const QList< CommandError * > & Interaction::CommandResult::errors ( ) const
inline

◆ setCode()

void Interaction::CommandResult::setCode ( Code  code)

Member Data Documentation

◆ errors_

QList<CommandError*> Interaction::CommandResult::errors_
private

◆ outcomeCode

Code Interaction::CommandResult::outcomeCode
private